Hallo Together

I try to setup my tg application to a Production System. When i start  
my application i get always the following error.

Traceback (most recent call last):
  File "start-family.py", line 24, in ?
    from family.controllers import Root
  File "/home2/user1/webapps/family/family/controllers/__init__.py",  
line 1, in ?
    from family.controllers.root import Root
  File "/home2/user1/webapps/family/family/controllers/root.py", line  
5, in ?
    from family.widgets import widgets
  File "/home2/user1/webapps/family/family/widgets/widgets.py", line  
44, in ?
    widget_navigation1 = NavigationWidget1("NavigationMain")
   File "<string>", line 1, in <lambda>
   File "/home2/immothep/lib/python2.4/ToscaWidgets-0.1a2dev_r3417- 
py2.4.egg/toscawidgets/util.py", line 124, in wrapped
     base.__dict__[post_name](self, *args, **kw)
   File "/home2/immothep/lib/python2.4/ToscaWidgets-0.1a2dev_r3417- 
py2.4.egg/toscawidgets/core.py", line 357, in post_init
     self._collect_resources()
   File "/home2/immothep/lib/python2.4/ToscaWidgets-0.1a2dev_r3417- 
py2.4.egg/toscawidgets/core.py", line 351, in _collect_resources
     oset.add_all(chain(*[c._resources for c in self.javascript]))
AttributeError: 'module' object has no attribute '_resources'

My Widget look like this.

class NavigationWidget1(Widget):

    params = ["identityon"]

    log.debug("Try Debugging...")
    rb_menu = JSLink(modname="family", filename='static/javascript/ 
rb_menu.js')
    rb_menu_interface = JSLink(modname="family", filename='static/ 
javascript/interface.js')
    rb_script = JSSource("""
    $('#nav').rb_menu({
                triggerEvent: 'click',
                loadHideDelay: 1000,
                hideOnLoad: false,
                autoHide: true,
                transition:    'bounceout'
                }
                );
    """, location = js_location.bodybottom)
#// transitions: easein, easeout, easeboth, bouncein, bounceout,
#//              bounceboth, elasticin, elasticout, elasticboth
#transition:    'easein',

    javascript = [jquery, rb_menu_interface, rb_menu, rb_script]
    template = "genshi:family.templates.navigation"


widget_navigation1 = NavigationWidget1("NavigationMain")

I have no idea from where the _resources should come or what the  
problem is. On my development machine is everything ok, maybe its a  
change on toscawidgets since my last update.

Can you help me please?

Thanks alot in Advance.

Ivo Looser

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to