s6465456 / google-apps-shell

Automatically exported from code.google.com/p/google-apps-shell
0 stars 0 forks source link

Create_Group fails with permission argument #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create the Sales Group in the example documentation

What is the expected output? What do you see instead?
-- Expect to see a Sales Group created, instead: "AttributeError: 'str' object 
has no attribute 'length'" when evaluating permission argument.

What version of the product are you using? On what operating system?
1.1.7 on OS X 10.6.6.

Please provide any additional information below.
Read functions work fine. 

Original issue reported on code.google.com by simonhal...@gmail.com on 3 Mar 2011 at 12:13

GoogleCodeExporter commented 9 years ago
Same issue here using gas in CLI under Ubuntu 11.04 (Python 2.7.1)

Traceback (most recent call last):
  File "/home/feag/Google/gasi/gas.py", line 935, in <module>
    __main__()
  File "/home/feag/Google/gasi/gas.py", line 932, in __main__
    execute(args[1:])
  File "/home/feag/Google/gasi/gas.py", line 923, in execute
    whitelist_functions[call_function](credential, **dictionary)
  File "/home/feag/Google/gasi/gas.py", line 685, in create_group
    assert permission.length>0, 'Invalid permission argument.'
AttributeError: 'str' object has no attribute 'length'

Original comment by fernando...@deimos-space.com on 1 Jun 2011 at 1:56

GoogleCodeExporter commented 9 years ago
Any followup? This is would be very useful if it worked.

Original comment by tibb...@rchk.edu.hk on 20 Jul 2011 at 6:58

GoogleCodeExporter commented 9 years ago
I am also running OSX 10.7.3, 1.7GHx Core i5, 4GB RAM, 128GB SSD

Exception in Tkinter callback
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 1410, in __call__
  File "/gasi/mac_app/gasi.app/Contents/Resources/gasi.py", line 429, in RunExecute
  File "/gasi/mac_app/gasi.app/Contents/Resources/gasi.py", line 450, in RunCommands
  File "gas.pyc", line 923, in execute
  File "gas.pyc", line 685, in create_group
AttributeError: 'str' object has no attribute 'length'

Original comment by simonell...@mountsbay.org on 9 Mar 2012 at 3:49

GoogleCodeExporter commented 9 years ago
Same here: OSX Mavericks 10.9.1 on MacMini Server Late 2012.
running python with sudo has no effect.

Original comment by meks...@meksone.com on 5 Feb 2014 at 11:37