Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example: invalid:nomail in ATTENDEE #130

Open
Tracked by #443
jdh13 opened this issue Apr 2, 2014 · 4 comments
Open
Tracked by #443

Add example: invalid:nomail in ATTENDEE #130

jdh13 opened this issue Apr 2, 2014 · 4 comments
Labels
good first issue hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/ help wanted

Comments

@jdh13
Copy link

jdh13 commented Apr 2, 2014

hello,
when i read a file containing:
ATTENDEE;CN="John Doe":invalid:nomail

the only thing i get is:
'ATTENDEE': 'invalid:nomail'

Is it normal? how can i get CN ?

thanks in advance

@atlithorn
Copy link

Same complaint here:

ical="""BEGIN;VCALENDAR
BEGIN:VEVENT
.....
ATTENDEE;CN=Bjarki;PARTSTAT=ACCEPTED;SCHEDULE-STATUS=2.0:urn:uuid:users-19
END:VEVENT
END:VCALENDAR"""
vcal = icalendar.Calendar.from_ical(ical)
for vevent in vcal.walk("VEVENT"):
    print vevent["ATTENDEE"]

prints: urn:uuid:users-19
PARTSTAT, CN and everything else is discarded but if you do this

print vevent.to_ical()

prints all the data, nothing discarded, so the parameters are all there, just not sure where they're hiding ;)

Update: found it under params. So the following works:

print vevent["ATTENDEE"].params

prints :Parameters({'SCHEDULE-STATUS': '2.0', 'CN': 'Bjarki', 'PARTSTAT': 'ACCEPTED'})

@mlazzje
Copy link

mlazzje commented Feb 10, 2016

print vevent["ATTENDEE"].params

It doesn't work for me, I got this error.

AttributeError: 'list' object has no attribute 'params'

I would like to retrieve the RSVP param for each ATTENDEE

@derBroBro
Copy link

@mlazzje I searched for the same and found the following solution:
vevent.get['attendee'][0].params['rsvp'] (Source #182).
I know you ask 2.5 Years ago but maybe it is helpfull for other comming from google like me.

@niccokunzmann
Copy link
Member

I think, this issue can be closed once we have a tested example in the documentation, see #443.

@niccokunzmann niccokunzmann changed the title invalid:nomail in ATTENDEE Add example: invalid:nomail in ATTENDEE Aug 30, 2023
@niccokunzmann niccokunzmann added good first issue hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/ labels Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/ help wanted
Projects
None yet
Development

No branches or pull requests

6 participants