GAM Calendar Functions

2,100 views
Skip to first unread message

Roberto Ullfig

unread,
Dec 22, 2011, 3:11:29 PM12/22/11
to google-ap...@googlegroups.com
I just installed GAM version 2.1.3 and am unable to run simple
calendar commands:

# gam user rul...@uic.edu show calendars
rul...@uic.edu's Calendar List
Name: rul...@uic.edu
Traceback (most recent call last):
File "/usr/local/gam/gam.py", line 3129, in ?
showCalendars(users)
File "/usr/local/gam/gam.py", line 457, in showCalendars
print ' ID: %s' %
urllib.unquote(str(a_calendar.id.text).rpartition('/')[2])
AttributeError: 'str' object has no attribute 'rpartition'

Thanks in advance!

--
Roberto Ullfig - ACCC - rul...@uic.edu

Jay Lee

unread,
Dec 22, 2011, 3:15:18 PM12/22/11
to google-ap...@googlegroups.com
What version of Python are you using? Try running:

python --version

Jay


--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to
google-ap...@googlegroups.com
To unsubscribe from this group, send email to
google-apps-man...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Roberto Ullfig

unread,
Dec 22, 2011, 3:20:36 PM12/22/11
to google-ap...@googlegroups.com
# python -V
Python 2.4.3

Does this version of GAM use the new Calendar API released on Dec 14?

http://googleappsdeveloper.blogspot.com/2011/12/calendar-api-v3-2-legged-oauth-java.html

Jay Lee

unread,
Dec 22, 2011, 3:28:05 PM12/22/11
to google-ap...@googlegroups.com
Hi Roberto,

  GAM requires Python 2.5, 2.6 or 2.7. It won't work with Python 2.4 or older. The error you are seeing is due to using 2.4.

  GAM is not using the new version of the API yet.

Jay

Roberto Ullfig

unread,
Dec 22, 2011, 3:37:55 PM12/22/11
to google-ap...@googlegroups.com
Thanks!

This may be a bit off topic but what exactly is the difference between
a Resource Calendar and a Secondary Calendar. I can't see any
differences except how they are created and the email address domain.
Was Google intending to add new features to Resource Calendars in the
future?

Roberto Ullfig

unread,
Dec 22, 2011, 3:45:37 PM12/22/11
to google-ap...@googlegroups.com
Never mind. I see now that Resource Calendars are not owned by a
particular user.

Jay Lee

unread,
Dec 22, 2011, 3:47:56 PM12/22/11
to google-ap...@googlegroups.com
Right, since they're not tied to any user, there's no worries about them going away when the user does. Also, resource calendars show up to the right when you're booking an event. If you're doing conference rooms, you can see which rooms are available at your desired event time.

Jay

Roberto Ullfig

unread,
Dec 22, 2011, 4:08:57 PM12/22/11
to google-ap...@googlegroups.com
Since calendar support in GAM is based on the old API, Administrators
can't see other user's calendars? I'm getting this error message when
trying to do so:

gdata.service.RequestError: {'status': 403, 'body': 'You are not
authorized to act as cab...@uic.edu', 'reason': 'Forbidden'}

Any idea on a timetable for using the recently release API's
functionality. I'll have to write my own code if it's too far away.

Lee Schneider

unread,
Mar 12, 2013, 6:54:30 PM3/12/13
to google-ap...@googlegroups.com
Jason,

Be advised, one down side to implementing shared calendars as resources is that those added calendars will pollute the list of resources users see if they select "add: rooms, etc." when scheduling meetings.

You can save users the hassle of adding the views of the shared calendars by using GAM (easiest is way is via powershell script). 


Lee Schneider
VP, Technical Services
ArcSource Consulting Inc.
cell: 510.397.9733


On Tue, Mar 12, 2013 at 9:10 AM, Jason P. <jasqw...@domail.maricopa.edu> wrote:
Is there any hope for progress on this issue?  I also am getting the "Error: Forbidden - You are not authorized to act as..." message when trying to add institution wide secondary calendars to users in our domain.

As a general Google Apps question, I made the mistake of setting this calendar up as a secondary calendar rather than a resource calendar... is there a clean way to either transition this public calendar to a resource calendar in terms of ownership?

Also will doing it over as a resource calendar make it available to all users to add to their calendars?  It has been frustrating that there is no way to expose a secondary calendar to everyone to be able to find it, select it, and add it to their calendars...they have to know the web address to add it.

Thanks - Jason P.

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jason Pociask

unread,
Mar 12, 2013, 7:04:37 PM3/12/13
to google-ap...@googlegroups.com
On Tue, Mar 12, 2013 at 3:54 PM, Lee Schneider <l...@arcsource.com> wrote:

You can save users the hassle of adding the views of the shared calendars by using GAM (easiest is way is via powershell script). 
------------------

That's what I've been doing, but a lot of them just error off as described when GAM tries to apply the calendar to them.

We have way too many rooms to set them up as resources, we use Resource25 for room scheduling at the college campus level.

I'll have to get my IdM programmer to add the calendar API call when we provision new users, seems like the best way around this limitation, whatever it's underlying cause.

It would be nice if there was a way to upgrade a secondary calendar to a resource type calendar.  The only way I can think to do it now is to create a resource calendar, export/import the content over to it, and then drop the existing secondary calendar and add the new one on like 16,000 user accounts.

Jason
Reply all
Reply to author
Forward
0 new messages