Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » NFA error

any ideas what am i doing wrong?

Environment:

Request Method: GET
Request URL: http://stream.kiberpipa.org:9000/intranet/wiki/show/Start/
Django Version: 0.97-newforms-admin-SVN-7511
Python Version: 2.4.4
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.flatpages',
'intranet.org',
'intranet.web',
'django.contrib.comments',
'intranet.tags',
'intranet.thumbnail',
'django.contrib.admin',
'django.contrib.markup',
'django_evolution',
'sphene.sphwiki',
'sphene.community']
Installed Middleware:
('intranet.psyco.PsycoMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'intranet.middleware.requirelogin.RequireLoginMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'intranet.stats.StatsMiddleware')


Traceback:
File "/home/redduck666/666fs/newforms-admin/django/core/handlers/base.py" in get_response
77. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/home/redduck666/i/svn/intranet/rd666/intranet/stats.py" in process_view
20. response = view_func(request, *view_args, **view_kwargs)

Exception Type: TypeError at /intranet/wiki/show/Start/
Exception Value: showSnip() takes exactly 3 non-keyword arguments (1 given)


weird ..
have you modified url configuration or something ? maybe you could output view_args to see what content it has ? - are you modifieing the arguments in any way in your middleware ?
Hey, we have Signatures !!! Great, isn't it ? ;)
weird ..
have you modified url configuration or something ? maybe you could output view_args to see what content it has ? - are you modifieing the arguments in any way in your middleware ?
i haven't modified the urls.py, AFAIK the relevant lines are:

snip = r'(?P<snipName>[\w/:\-.]+?)'
(r'^show/' + snip + r'/$', 'showSnip'),


() ##view_args
{'snipName': u'Start'} ###view_kwargs

those are the values of those two variables just before the view_func(request, *view_args, **view_kwargs) call.


and i am not sure if the args are modified by middleware, i'll check, thanks
ah ok .. makes sense ..

it seems you haven't added the SCT specific middlewares:

    'sphene.community.middleware.ThreadLocals',
    'sphene.community.middleware.GroupMiddleware',


in addition when including the urls.py you need to add { 'groupName': 'example' } .. or use the SPH_HOST_MIDDLEWARE_URLCONF_MAP settings variable.. (and use { 'groupName': None } as the communitydraft/community/urlconfs/community_urls.py does)

Hey, we have Signatures !!! Great, isn't it ? ;)
/me impressed :-)


thank you very much
i've hit another trouble :-(, i found another person with same trouble on this board, but it wasn't resolved AFAIK :-(. i tried dropping the database and running syncdb, still the same thing. i'm running the django's `runserver'.
Environment:

Request Method: GET
Request URL: http://stream.kiberpipa.org:9000/intranet/wiki/edit/Start/
Django Version: 0.97-newforms-admin-SVN-7511
Python Version: 2.4.4
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.flatpages',
 'intranet.org',
 'intranet.web',
 'django.contrib.comments',
 'intranet.tags',
 'intranet.thumbnail',
 'django.contrib.admin',
 'django.contrib.markup',
 'django_evolution',
 'sphene.sphwiki',
 'sphene.community']
Installed Middleware:
('sphene.community.middleware.ThreadLocals',
 'sphene.community.middleware.GroupMiddleware',
 'intranet.psyco.PsycoMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'intranet.middleware.requirelogin.RequireLoginMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
 'intranet.stats.StatsMiddleware')


Traceback:
File "/home/redduck666/666fs/newforms-admin/django/core/handlers/base.py" in get_response
  77.                 response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/home/redduck666/i/svn/intranet/rd666/intranet/stats.py" in process_view
  22.         response = view_func(request, *view_args, **view_kwargs)
File "/home/redduck666/django/communitytools/sphenecoll/sphene/sphwiki/views.py" in editSnip
  353.                                                    { 'form': form,
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render
  176.         return self.nodelist.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render
  751.                 bits.append(self.render_node(node, context))
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render_node
  764.         return node.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/loader_tags.py" in render
  93.         return compiled_parent.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render
  176.         return self.nodelist.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render
  751.                 bits.append(self.render_node(node, context))
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render_node
  764.         return node.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/loader_tags.py" in render
  93.         return compiled_parent.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render
  176.         return self.nodelist.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render
  751.                 bits.append(self.render_node(node, context))
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render_node
  764.         return node.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/loader_tags.py" in render
  24.         result = self.nodelist.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render
  751.                 bits.append(self.render_node(node, context))
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render_node
  764.         return node.render(context)
File "/home/redduck666/666fs/newforms-admin/django/template/__init__.py" in render
  785.             output = force_unicode(self.filter_expression.resolve(context))
File "/home/redduck666/666fs/newforms-admin/django/utils/encoding.py" in force_unicode
  51.                 s = unicode(s)
File "/home/redduck666/666fs/newforms-admin/django/newforms/forms.py" in __unicode__
  94.         return self.as_table()
File "/home/redduck666/666fs/newforms-admin/django/newforms/forms.py" in as_table
  177.         return self._html_output(u'<tr><th>%(label)s</th><td>%(errors)s%(field)s%(help_text)s</td></tr>', u'<tr><td colspan="2">%s</td></tr>', '</td></tr>', u'<br />%s', False)
File "/home/redduck666/666fs/newforms-admin/django/newforms/forms.py" in _html_output
  159.                 output.append(normal_row % {'errors': force_unicode(bf_errors), 'label': force_unicode(label), 'field': unicode(bf), 'help_text': help_text})
File "/home/redduck666/666fs/newforms-admin/django/newforms/forms.py" in __unicode__
  311.         return self.as_widget()
File "/home/redduck666/666fs/newforms-admin/django/newforms/forms.py" in as_widget
  339.         return widget.render(self.html_name, data, attrs=attrs)
File "/home/redduck666/django/communitytools/sphenecoll/sphene/community/widgets.py" in render
  21.             js = """
File "/home/redduck666/django/communitytools/sphenecoll/sphene/community/sphutils.py" in sph_reverse
  198.     return reverse( viewname, urlconf, args, kwargs )
File "/home/redduck666/666fs/newforms-admin/django/core/urlresolvers.py" in reverse
  297.     return iri_to_uri(u'/' + get_resolver(urlconf).reverse(viewname, *args, **kwargs))
File "/home/redduck666/666fs/newforms-admin/django/core/urlresolvers.py" in reverse
  284.         raise NoReverseMatch

Exception Type: NoReverseMatch at /intranet/wiki/edit/Start/
Exception Value: 


--- Last Edited by redduck666 at 2008-05-04 14:20:06 ---
do you have the urls.py from the sphene.community application included in your urlconf ?

it seems it can't find:
url(r'^tags/json/autocompletion/$', 'tags_json_autocompletion', name = 'sph_tags_json_autocompletion'),


which is defined in sphene/community/urls.py
Hey, we have Signatures !!! Great, isn't it ? ;)
ah, thanks :-)

Please login to post a reply.



Powered by Sphene Community Tools