← Back to team overview

ubuntu-bengali-manual team mailing list archive

[Bug 510198] Re: Editing the Ubuntu-ie information gave an error to screen when saved

 

** Changed in: loco-directory
       Status: Triaged => Fix Committed

** Changed in: loco-directory
     Assignee: (unassigned) => Thomas Bechtold (thomasbechtold)

-- 
Editing the Ubuntu-ie information gave an error to screen when saved
https://bugs.launchpad.net/bugs/510198
You received this bug notification because you are a member of Ubuntu
Bengali Manual, which is subscribed to loco-directory.

Status in LoCo Directory: Fix Committed

Bug description:
When I logged in and clicked on the Ubuntu-ie Team information, Added information to the page and clicked saved. I get an error to the screen. 


InterfaceError at /teams/ubuntu-ie/edit

Error binding parameter 1 - probably unsupported type.

Request Method: 	POST
Request URL: 	http://growingupfree.org:8000/teams/ubuntu-ie/edit
Exception Type: 	InterfaceError
Exception Value: 	

Error binding parameter 1 - probably unsupported type.

Exception Location: 	/usr/lib/pymodules/python2.6/django/db/backends/sqlite3/base.py in execute, line 193
Python Executable: 	/usr/bin/python
Python Version: 	2.6.4
Python Path: 	['/home/mhall/projects/loco-directory/loco_directory', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']
Server time: 	Wed, 20 Jan 2010 15:56:05 +0000


#  /usr/lib/pymodules/python2.6/django/core/handlers/base.py in get_response

  85. # Apply view middleware
  86. for middleware_method in self._view_middleware:
  87. response = middleware_method(request, callback, callback_args, callback_kwargs)
  88. if response:
  89. return response
  90.
  91. try:

  92. response = callback(request, *callback_args, **callback_kwargs) ...

  93. except Exception, e:
  94. # If the view raised an exception, run it through exception
  95. # middleware, and if the exception middleware returns a
  96. # response, use that. Otherwise, reraise the exception.
  97. for middleware_method in self._exception_middleware:
  98. response = middleware_method(request, e)

▶ Local vars
Variable 	Value
callback 	
<django.contrib.auth.decorators._CheckLogin object at 0x9016fac>
callback_args 	
()
callback_kwargs 	
{'team_slug': u'ubuntu-ie'}
e 	
InterfaceError('Error binding parameter 1 - probably unsupported type.',)
exc_info 	
(<class 'pysqlite2.dbapi2.InterfaceError'>, InterfaceError('Error binding parameter 1 - probably unsupported type.',), <traceback object at 0xa157cac>)
exceptions 	
<module 'django.core.exceptions' from '/usr/lib/pymodules/python2.6/django/core/exceptions.pyc'>
middleware_method 	
<bound method AuthenticationMiddleware.process_request of <django.contrib.auth.middleware.AuthenticationMiddleware object at 0x8e5254c>>
receivers 	
[(<function _rollback_on_exception at 0x8bfb4c4>, None)]
request 	
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'forum_url': [u'http://ubuntuforums.org/forumdisplay.php?f=195'], u'city': [u''], u'mugshot_url': [u'https://edge.launchpad.net/api/beta/~ubuntu-ie/mugshot'], u'wiki_url': [u'https://wiki.ubuntu.com/IrishTeam/'], u'country': [u'Ireland'], u'spr': [u''], u'irc_chan': [u'#ubuntu-ie'], u'provides_support': [u'on'], u'approved_date': [u''], u'web_url': [u'http://www.ubuntu-ie.org/'], u'ml_url': [u'https://lists.ubuntu.com/mailman/listinfo/ubuntu-ie'], u'email': [u'']}>, COOKIES:{'sessionid': 'd93961e1a94dccbd03df28540cafc7ed'}, META:{'CONTENT_LENGTH': '409', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'loco_directory.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HISTCONTROL': 'ignoreboth', 'HOME': '/home/mhall', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=d93961e1a94dccbd03df28540cafc7ed', 'HTTP_HOST': 'growingupfree.org:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://growingupfree.org:8000/teams/ubuntu-ie/edit', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8pre) Gecko/20100117 Ubuntu/9.10 (karmic) Shiretoko/3.5.8pre', 'LANG': 'en_US.UTF-8', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'LOGNAME': 'mhall', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'MAIL': '/var/mail/mhall', 'OLDPWD': '/home/mhall/projects/loco-directory', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'PATH_INFO': u'/teams/ubuntu-ie/edit', 'PWD': '/home/mhall/projects/loco-directory/loco_directory', 'QUERY_STRING': '', 'REMOTE_ADDR': '84.203.67.113', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'rrcs-24-227-64-126.se.biz.rr.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.4', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_AUTH_SOCK': '/var/run/screen/S-mhall/byobu.ssh-agent', 'SSH_CLIENT': '173.65.27.166 49318 22', 'SSH_CONNECTION': '173.65.27.166 49318 24.227.64.126 22', 'SSH_TTY': '/dev/pts/0', 'STY': '1545.pts-0.quinnco', 'TERM': 'screen-bce', 'TERMCAP': 'SC|screen-bce|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#54:co#144:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:po=\\E[5i:pf=\\E[4i:k0=\\E[10~:k1=\\EOP:k;=\\E[21~:\\\n\t:F1=\\E[23~:F3=\\EO2P:F4=\\EO2Q:F5=\\EO2R:F6=\\EO2S:\\\n\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=\x7f:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'UTC', 'USER': 'mhall', 'WINDOW': '1', 'XDG_SESSION_COOKIE': 'f7bd209dac6d0ff52638e57a4a5e49c9-1263653802.676173-286252189', '_': '/usr/bin/python', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb788e0c0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x90ede6c>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
resolver 	
<RegexURLResolver loco_directory.urls (None:None) ^/>
response 	
None
self 	
<django.core.handlers.wsgi.WSGIHandler object at 0x8dad4ec>
settings 	
<django.conf.LazySettings object at 0x8acea2c>
urlconf 	
'loco_directory.urls'
urlresolvers 	
<module 'django.core.urlresolvers' from '/usr/lib/pymodules/python2.6/django/core/urlresolvers.pyc'>
# /usr/lib/pymodules/python2.6/django/contrib/auth/decorators.py in __call__

  71.
  72. def __get__(self, obj, cls=None):
  73. view_func = self.view_func.__get__(obj, cls)
  74. return _CheckLogin(view_func, self.test_func, self.login_url, self.redirect_field_name)
  75.
  76. def __call__(self, request, *args, **kwargs):
  77. if self.test_func(request.user):

  78. return self.view_func(request, *args, **kwargs) ...

  79. path = urlquote(request.get_full_path())
  80. tup = self.login_url, self.redirect_field_name, path
  81. return HttpResponseRedirect('%s?%s=%s' % tup)

▶ Local vars
Variable 	Value
args 	
()
kwargs 	
{'team_slug': u'ubuntu-ie'}
request 	
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'forum_url': [u'http://ubuntuforums.org/forumdisplay.php?f=195'], u'city': [u''], u'mugshot_url': [u'https://edge.launchpad.net/api/beta/~ubuntu-ie/mugshot'], u'wiki_url': [u'https://wiki.ubuntu.com/IrishTeam/'], u'country': [u'Ireland'], u'spr': [u''], u'irc_chan': [u'#ubuntu-ie'], u'provides_support': [u'on'], u'approved_date': [u''], u'web_url': [u'http://www.ubuntu-ie.org/'], u'ml_url': [u'https://lists.ubuntu.com/mailman/listinfo/ubuntu-ie'], u'email': [u'']}>, COOKIES:{'sessionid': 'd93961e1a94dccbd03df28540cafc7ed'}, META:{'CONTENT_LENGTH': '409', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'loco_directory.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HISTCONTROL': 'ignoreboth', 'HOME': '/home/mhall', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=d93961e1a94dccbd03df28540cafc7ed', 'HTTP_HOST': 'growingupfree.org:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://growingupfree.org:8000/teams/ubuntu-ie/edit', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8pre) Gecko/20100117 Ubuntu/9.10 (karmic) Shiretoko/3.5.8pre', 'LANG': 'en_US.UTF-8', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'LOGNAME': 'mhall', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'MAIL': '/var/mail/mhall', 'OLDPWD': '/home/mhall/projects/loco-directory', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'PATH_INFO': u'/teams/ubuntu-ie/edit', 'PWD': '/home/mhall/projects/loco-directory/loco_directory', 'QUERY_STRING': '', 'REMOTE_ADDR': '84.203.67.113', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'rrcs-24-227-64-126.se.biz.rr.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.4', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_AUTH_SOCK': '/var/run/screen/S-mhall/byobu.ssh-agent', 'SSH_CLIENT': '173.65.27.166 49318 22', 'SSH_CONNECTION': '173.65.27.166 49318 24.227.64.126 22', 'SSH_TTY': '/dev/pts/0', 'STY': '1545.pts-0.quinnco', 'TERM': 'screen-bce', 'TERMCAP': 'SC|screen-bce|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#54:co#144:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:po=\\E[5i:pf=\\E[4i:k0=\\E[10~:k1=\\EOP:k;=\\E[21~:\\\n\t:F1=\\E[23~:F3=\\EO2P:F4=\\EO2Q:F5=\\EO2R:F6=\\EO2S:\\\n\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=\x7f:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'UTC', 'USER': 'mhall', 'WINDOW': '1', 'XDG_SESSION_COOKIE': 'f7bd209dac6d0ff52638e57a4a5e49c9-1263653802.676173-286252189', '_': '/usr/bin/python', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb788e0c0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x90ede6c>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
self 	
<django.contrib.auth.decorators._CheckLogin object at 0x9016fac>
# /home/mhall/projects/loco-directory/loco_directory/teams/views.py in team_edit

  84. if request.method == "POST":
  85. if is_on_lc:
  86. form = forms.LoCoCouncilForm(data=request.POST, instance=team_object)
  87. else:
  88. form = forms.UpdateTeamForm(data=request.POST, instance=team_object)
  89. if form.is_valid():
  90. form.save()

  91. request.user.message_set.create(message=_('Team details updated')) ...

  92. return redirect( team_object )
  93. else:
  94. request.user.message_set.create(message=_('Team details could not be saved.'))
  95. else:
  96. if is_on_lc:
  97. form = forms.LoCoCouncilForm(instance=team_object)

▶ Local vars
Variable 	Value
form 	
<teams.forms.LoCoCouncilForm object at 0x925814c>
is_contact 	
False
is_on_lc 	
True
request 	
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'forum_url': [u'http://ubuntuforums.org/forumdisplay.php?f=195'], u'city': [u''], u'mugshot_url': [u'https://edge.launchpad.net/api/beta/~ubuntu-ie/mugshot'], u'wiki_url': [u'https://wiki.ubuntu.com/IrishTeam/'], u'country': [u'Ireland'], u'spr': [u''], u'irc_chan': [u'#ubuntu-ie'], u'provides_support': [u'on'], u'approved_date': [u''], u'web_url': [u'http://www.ubuntu-ie.org/'], u'ml_url': [u'https://lists.ubuntu.com/mailman/listinfo/ubuntu-ie'], u'email': [u'']}>, COOKIES:{'sessionid': 'd93961e1a94dccbd03df28540cafc7ed'}, META:{'CONTENT_LENGTH': '409', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'loco_directory.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HISTCONTROL': 'ignoreboth', 'HOME': '/home/mhall', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=d93961e1a94dccbd03df28540cafc7ed', 'HTTP_HOST': 'growingupfree.org:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://growingupfree.org:8000/teams/ubuntu-ie/edit', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8pre) Gecko/20100117 Ubuntu/9.10 (karmic) Shiretoko/3.5.8pre', 'LANG': 'en_US.UTF-8', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'LOGNAME': 'mhall', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'MAIL': '/var/mail/mhall', 'OLDPWD': '/home/mhall/projects/loco-directory', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'PATH_INFO': u'/teams/ubuntu-ie/edit', 'PWD': '/home/mhall/projects/loco-directory/loco_directory', 'QUERY_STRING': '', 'REMOTE_ADDR': '84.203.67.113', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'rrcs-24-227-64-126.se.biz.rr.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.4', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_AUTH_SOCK': '/var/run/screen/S-mhall/byobu.ssh-agent', 'SSH_CLIENT': '173.65.27.166 49318 22', 'SSH_CONNECTION': '173.65.27.166 49318 24.227.64.126 22', 'SSH_TTY': '/dev/pts/0', 'STY': '1545.pts-0.quinnco', 'TERM': 'screen-bce', 'TERMCAP': 'SC|screen-bce|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#54:co#144:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:po=\\E[5i:pf=\\E[4i:k0=\\E[10~:k1=\\EOP:k;=\\E[21~:\\\n\t:F1=\\E[23~:F3=\\EO2P:F4=\\EO2Q:F5=\\EO2R:F6=\\EO2S:\\\n\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=\x7f:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'UTC', 'USER': 'mhall', 'WINDOW': '1', 'XDG_SESSION_COOKIE': 'f7bd209dac6d0ff52638e57a4a5e49c9-1263653802.676173-286252189', '_': '/usr/bin/python', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb788e0c0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x90ede6c>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
team_object 	
<Team: ubuntu-ie>
team_slug 	
u'ubuntu-ie'
# /usr/lib/pymodules/python2.6/django/db/models/fields/related.py in create

 360. raise TypeError, "'%s' instance expected" % self.model._meta.object_name
 361. setattr(obj, rel_field.name, instance)
 362. obj.save()
 363. add.alters_data = True
 364.
 365. def create(self, **kwargs):
 366. kwargs.update({rel_field.name: instance})

 367. return super(RelatedManager, self).create(**kwargs) ...

 368. create.alters_data = True
 369.
 370. def get_or_create(self, **kwargs):
 371. # Update kwargs with the related object that this
 372. # ForeignRelatedObjectsDescriptor knows about.
 373. kwargs.update({rel_field.name: instance})

▶ Local vars
Variable 	Value
RelatedManager 	
<class 'django.db.models.fields.related.RelatedManager'>
instance 	
<User: czajkowski>
kwargs 	
{'message': <django.utils.functional.__proxy__ object at 0x9dd130c>, 'user': <User: czajkowski>}
rel_field 	
<django.db.models.fields.related.ForeignKey object at 0x8de4b2c>
self 	
<django.db.models.fields.related.RelatedManager object at 0xa05344c>
# /usr/lib/pymodules/python2.6/django/db/models/manager.py in create

 119. def get(self, *args, **kwargs):
 120. return self.get_query_set().get(*args, **kwargs)
 121.
 122. def get_or_create(self, **kwargs):
 123. return self.get_query_set().get_or_create(**kwargs)
 124.
 125. def create(self, **kwargs):

 126. return self.get_query_set().create(**kwargs) ...

 127.
 128. def filter(self, *args, **kwargs):
 129. return self.get_query_set().filter(*args, **kwargs)
 130.
 131. def aggregate(self, *args, **kwargs):
 132. return self.get_query_set().aggregate(*args, **kwargs)

▶ Local vars
Variable 	Value
kwargs 	
{'message': <django.utils.functional.__proxy__ object at 0x9dd130c>, 'user': <User: czajkowski>}
self 	
<django.db.models.fields.related.RelatedManager object at 0xa05344c>
# /usr/lib/pymodules/python2.6/django/db/models/query.py in create

 308.
 309. def create(self, **kwargs):
 310. """
 311. Creates a new object with the given kwargs, saving it to the database
 312. and returning the created object.
 313. """
 314. obj = self.model(**kwargs)

 315. obj.save(force_insert=True) ...

 316. return obj
 317.
 318. def get_or_create(self, **kwargs):
 319. """
 320. Looks up an object with the given kwargs, creating one if necessary.
 321. Returns a tuple of (object, created), where created is a boolean

▼ Local vars
Variable 	Value
kwargs 	
{'message': <django.utils.functional.__proxy__ object at 0x9dd130c>, 'user': <User: czajkowski>}
obj 	
Error in formatting: coercing to Unicode: need string or buffer, __proxy__ found
self 	
[]
# /usr/lib/pymodules/python2.6/django/db/models/base.py in save

 403. The 'force_insert' and 'force_update' parameters can be used to insist
 404. that the "save" must be an SQL insert or update (or equivalent for
 405. non-SQL backends), respectively. Normally, they should not be set.
 406. """
 407. if force_insert and force_update:
 408. raise ValueError("Cannot force both insert and updating in "
 409. "model saving.")

 410. self.save_base(force_insert=force_insert, force_update=force_update) ...

 411.
 412. save.alters_data = True
 413.
 414. def save_base(self, raw=False, cls=None, origin=None,
 415. force_insert=False, force_update=False):
 416. """

▼ Local vars
Variable 	Value
force_insert 	
True
force_update 	
False
self 	
Error in formatting: coercing to Unicode: need string or buffer, __proxy__ found
# /usr/lib/pymodules/python2.6/django/db/models/base.py in save_base

 488. field = meta.order_with_respect_to
 489. values.append((meta.get_field_by_name('_order')[0], manager.filter(**{field.name: getattr(self, field.attname)}).count()))
 490. record_exists = False
 491.
 492. update_pk = bool(meta.has_auto_field and not pk_set)
 493. if values:
 494. # Create a new record.

 495. result = manager._insert(values, return_id=update_pk) ...

 496. else:
 497. # Create a new record with defaults for everything.
 498. result = manager._insert([(meta.pk, connection.ops.pk_default_value())], return_id=update_pk, raw_values=True)
 499.
 500. if update_pk:
 501. setattr(self, meta.pk.attname, result)

▶ Local vars
Variable 	Value
cls 	
<class 'django.contrib.auth.models.Message'>
f 	
<django.db.models.fields.TextField object at 0x8de4bac>
force_insert 	
True
force_update 	
False
manager 	
<django.db.models.manager.Manager object at 0x8de4f4c>
meta 	
<Options for Message>
non_pks 	
[<django.db.models.fields.related.ForeignKey object at 0x8de4b2c>, <django.db.models.fields.TextField object at 0x8de4bac>]
org 	
None
origin 	
<class 'django.contrib.auth.models.Message'>
pk_set 	
False
pk_val 	
None
raw 	
False
record_exists 	
False
self 	
Error in formatting: coercing to Unicode: need string or buffer, __proxy__ found
update_pk 	
True
values 	
[(<django.db.models.fields.related.ForeignKey object at 0x8de4b2c>, 8), (<django.db.models.fields.TextField object at 0x8de4bac>, <django.utils.functional.__proxy__ object at 0x9dd130c>)]
# /usr/lib/pymodules/python2.6/django/db/models/manager.py in _insert

 170. def defer(self, *args, **kwargs):
 171. return self.get_query_set().defer(*args, **kwargs)
 172.
 173. def only(self, *args, **kwargs):
 174. return self.get_query_set().only(*args, **kwargs)
 175.
 176. def _insert(self, values, **kwargs):

 177. return insert_query(self.model, values, **kwargs) ...

 178.
 179. def _update(self, values, **kwargs):
 180. return self.get_query_set()._update(values, **kwargs)
 181.
 182. class ManagerDescriptor(object):
 183. # This class ensures managers aren't accessible via model instances.

▶ Local vars
Variable 	Value
kwargs 	
{'return_id': True}
self 	
<django.db.models.manager.Manager object at 0x8de4f4c>
values 	
[(<django.db.models.fields.related.ForeignKey object at 0x8de4b2c>, 8), (<django.db.models.fields.TextField object at 0x8de4bac>, <django.utils.functional.__proxy__ object at 0x9dd130c>)]
# /usr/lib/pymodules/python2.6/django/db/models/query.py in insert_query

1080. """
1081. Inserts a new record for the given model. This provides an interface to
1082. the InsertQuery class and is how Model.save() is implemented. It is not
1083. part of the public API.
1084. """
1085. query = sql.InsertQuery(model, connection)
1086. query.insert_values(values, raw_values)

1087. return query.execute_sql(return_id) ...

▶ Local vars
Variable 	Value
model 	
<class 'django.contrib.auth.models.Message'>
query 	
<django.db.models.sql.subqueries.InsertQuery object at 0xa16e84c>
raw_values 	
False
return_id 	
True
values 	
[(<django.db.models.fields.related.ForeignKey object at 0x8de4b2c>, 8), (<django.db.models.fields.TextField object at 0x8de4bac>, <django.utils.functional.__proxy__ object at 0x9dd130c>)]
# /usr/lib/pymodules/python2.6/django/db/models/sql/subqueries.py in execute_sql

 313. r_fmt, r_params = self.connection.ops.return_insert_id()
 314. result.append(r_fmt % col)
 315. params = params + r_params
 316. return ' '.join(result), params
 317.
 318. def execute_sql(self, return_id=False):
 319. self.return_id = return_id

 320. cursor = super(InsertQuery, self).execute_sql(None) ...

 321. if not (return_id and cursor):
 322. return
 323. if self.connection.features.can_return_id_from_insert:
 324. return self.connection.ops.fetch_returned_insert_id(cursor)
 325. return self.connection.ops.last_insert_id(cursor,
 326. self.model._meta.db_table, self.model._meta.pk.column)

▶ Local vars
Variable 	Value
return_id 	
True
self 	
<django.db.models.sql.subqueries.InsertQuery object at 0xa16e84c>
# /usr/lib/pymodules/python2.6/django/db/models/sql/query.py in execute_sql

2362. raise EmptyResultSet
2363. except EmptyResultSet:
2364. if result_type == MULTI:
2365. return empty_iter()
2366. else:
2367. return
2368. cursor = self.connection.cursor()

2369. cursor.execute(sql, params) ...

2370.
2371. if not result_type:
2372. return cursor
2373. if result_type == SINGLE:
2374. if self.ordering_aliases:
2375. return cursor.fetchone()[:-len(self.ordering_aliases)]

▶ Local vars
Variable 	Value
cursor 	
<django.db.backends.util.CursorDebugWrapper object at 0xa16eccc>
params 	
(8, <django.utils.functional.__proxy__ object at 0x9dd130c>)
result_type 	
None
self 	
<django.db.models.sql.subqueries.InsertQuery object at 0xa16e84c>
sql 	
'INSERT INTO "auth_message" ("user_id", "message") VALUES (%s, %s)'
# /usr/lib/pymodules/python2.6/django/db/backends/util.py in execute

  12. def __init__(self, cursor, db):
  13. self.cursor = cursor
  14. self.db = db # Instance of a BaseDatabaseWrapper subclass
  15.
  16. def execute(self, sql, params=()):
  17. start = time()
  18. try:

  19. return self.cursor.execute(sql, params) ...

  20. finally:
  21. stop = time()
  22. sql = self.db.ops.last_executed_query(self.cursor, sql, params)
  23. self.db.queries.append({
  24. 'sql': sql,
  25. 'time': "%.3f" % (stop - start),

▶ Local vars
Variable 	Value
params 	
(8, <django.utils.functional.__proxy__ object at 0x9dd130c>)
self 	
<django.db.backends.util.CursorDebugWrapper object at 0xa16eccc>
sql 	
u'INSERT INTO "auth_message" ("user_id", "message") VALUES (8, Team details updated)'
start 	
1264002965.871021
stop 	
1264002965.871206
# /usr/lib/pymodules/python2.6/django/db/backends/sqlite3/base.py in execute

 186. """
 187. Django uses "format" style placeholders, but pysqlite2 uses "qmark" style.
 188. This fixes it -- but note that if you want to use a literal "%s" in a query,
 189. you'll need to use "%%s".
 190. """
 191. def execute(self, query, params=()):
 192. query = self.convert_query(query, len(params))

 193. return Database.Cursor.execute(self, query, params) ...

 194.
 195. def executemany(self, query, param_list):
 196. try:
 197. query = self.convert_query(query, len(param_list[0]))
 198. return Database.Cursor.executemany(self, query, param_list)
 199. except (IndexError,TypeError):





References