Demographics fields clash with basic fields in forms

Bug #1030675 reported by Zainuddin on 2012-07-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
Undecided
Unassigned

Bug Description

I have checked all the usernames and found the duplication and corrected the duplication. But the error is still there. Error msg as follow;

Server Error
An internal server error has occurred. This most likely means that you have found a bug in SchoolTool. Please report it on the issue tracker.

Exception
ValueError: ('Duplicate name', 'password')

Traceback
File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 132, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.7/dist-packages/zope/app/publication/zopepublication.py", line 207, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 107, in mapply
  return debug_call(obj, args)
Extra information: <schooltool.skin.flourish.zcml_content.FlourishPersonAddView_addStudent.html object at 0xb517076c>
File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 113, in debug_call
  return obj(*args)
File "/usr/lib/python2.7/dist-packages/z3c/form/form.py", line 215, in __call__
  self.update()
File "/usr/lib/python2.7/dist-packages/schooltool/basicperson/browser/person.py", line 930, in update
  PersonAddViewBase.update(self)
File "/usr/lib/python2.7/dist-packages/schooltool/basicperson/browser/person.py", line 910, in update
  self.fields += self.getDemoFields()
File "/usr/lib/python2.7/dist-packages/z3c/form/util.py", line 227, in __add__
  return self.__class__(self, other)
File "/usr/lib/python2.7/dist-packages/z3c/form/field.py", line 135, in __init__
  raise ValueError("Duplicate name", name)

Zainuddin (zainuddin) on 2012-07-30
description: updated
summary: Error "duplicate username;password' when try to add "student" or
- "teacher
+ "teacher"
Zainuddin (zainuddin) on 2012-08-01
description: updated

Did you add a demographics field with "password" as the ID?

I think we should add a prefix to demographics fields in the person forms to avoid these clashes.

summary: - Error "duplicate username;password' when try to add "student" or
- "teacher"
+ Demographics fields clash with basic fields in forms

Walla! Problem solved with your kind help and diagnosis. I did use
'password' as one of the IDs in demographics. I deleted that field and the
problem solved.

Thank You, Douglas :)

On Wed, Aug 1, 2012 at 11:47 AM, Douglas Cerna <email address hidden>wrote:

> Did you add a demographics field with "password" as the ID?
>
> I think we should add a prefix to demographics fields in the person
> forms to avoid these clashes.
>
>
> ** Summary changed:
>
> - Error "duplicate username;password' when try to add "student" or
> "teacher"
> + Demographics fields clash with basic fields in forms
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1030675
>
> Title:
> Demographics fields clash with basic fields in forms
>
> Status in SchoolTool:
> New
>
> Bug description:
> I have checked all the usernames and found the duplication and
> corrected the duplication. But the error is still there. Error msg as
> follow;
>
>
> Server Error
> An internal server error has occurred. This most likely means that you
> have found a bug in SchoolTool. Please report it on the issue tracker.
>
> Exception
> ValueError: ('Duplicate name', 'password')
>
> Traceback
> File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line
> 132, in publish
> result = publication.callObject(request, obj)
> File
> "/usr/lib/python2.7/dist-packages/zope/app/publication/zopepublication.py",
> line 207, in callObject
> return mapply(ob, request.getPositionalArguments(), request)
> File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line
> 107, in mapply
> return debug_call(obj, args)
> Extra information:
> <schooltool.skin.flourish.zcml_content.FlourishPersonAddView_addStudent.html
> object at 0xb517076c>
> File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line
> 113, in debug_call
> return obj(*args)
> File "/usr/lib/python2.7/dist-packages/z3c/form/form.py", line 215, in
> __call__
> self.update()
> File
> "/usr/lib/python2.7/dist-packages/schooltool/basicperson/browser/person.py",
> line 930, in update
> PersonAddViewBase.update(self)
> File
> "/usr/lib/python2.7/dist-packages/schooltool/basicperson/browser/person.py",
> line 910, in update
> self.fields += self.getDemoFields()
> File "/usr/lib/python2.7/dist-packages/z3c/form/util.py", line 227, in
> __add__
> return self.__class__(self, other)
> File "/usr/lib/python2.7/dist-packages/z3c/form/field.py", line 135, in
> __init__
> raise ValueError("Duplicate name", name)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/schooltool/+bug/1030675/+subscriptions
>

Changed in schooltool:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers