Hi Bruno, thank so much for your movuca
i tried this version: rochacbruno-Movuca-ed8c8dc but got error:
run : http://localhost:8000/ movuca
/setup/install<http://localhost:8000/sns/setup/install>
---> it shows: bootstrap
run : http://localhost:8000/ movuca
/home/index<http://localhost:8000/sns/home/index> -->
got error ticket: <type 'exceptions.AttributeError'> 'Access' object has
no attribute 'user_groups'
Function argument list
(self=<applications.sns.modules.handlers.home.Home object>)
Code listing
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
for hook in hooks:
self.__getattribute__(hook)()
def allowed_content_types(self):
if self.db.auth:
allowed_types = self.db.auth.user_groups.values()
query = (self.db.ContentType.access_control.contains("public"))
for content_type in allowed_types:
query |=
(self.db.ContentType.access_control.contains(content_type))
return self.db(query).select()
how to fix this?
On Thursday, April 12, 2012 2:15:32 AM UTC+9, rochacbruno wrote:
>
> have you done it first?
>
> - http://localhost:8000/appname/setup/install
>
> ??
>
> It is needed to populate the config db
>
>
>
> On Wed, Apr 11, 2012 at 2:07 PM, Gour <[email protected]> wrote:
>
>> On Wed, 11 Apr 2012 13:09:17 -0300
>> Bruno Rocha <[email protected]> wrote:
>>
>> > Movu.ca is a general purpose CMS with focus on social network
>> > features (as likes, shares, users and connections...)
>>
>> Tried to install according to:
>> https://github.com/rochacbruno/Movuca#readme but got error ticket:
>>
>> <type 'exceptions.AttributeError'> 'NoneType' object has no attribute
>> 'uri'
>>
>> Traceback (most recent call last):
>> File "/home/gour/repos/external/web2py/gluon/restricted.py", line
>> 205, in restricted exec ccode in environment
>> File
>> "/home/gour/repos/external/web2py/applications/demo/controllers/home.py",
>> line 33, in <module> File
>> "/home/gour/repos/external/web2py/gluon/globals.py", line 175, in
>> <lambda> self._caller = lambda f: f() File
>> "/home/gour/repos/external/web2py/applications/demo/controllers/home.py",
>> line 17, in index home = Home(['featured', 'featured_members', 'ads'])
>> File "applications/demo/modules/handlers/base.py", line 30, in __init__
>> self.start() File "applications/demo/modules/handlers/home.py", line
>> 11, in start self.db = DataBase([User, ContentType, Category, Article,
>> Ads]) File "applications/demo/modules/movuca.py", line 31, in __init__
>> DAL.__init__(self, self.config.db.uri, AttributeError: 'NoneType'
>> object has no attribute 'uri'
>>
>>
>> Sincerely,
>> Gour
>>
>> --
>> O best of the Kuru dynasty, without sacrifice one can never
>> live happily on this planet or in this life: what then of the next?
>>
>> http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
>>
>
>
>
> --
>
> Bruno Rocha
> [http://rochacbruno.com.br]
>
>