Ticket #122 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Document3D - Error message when we revise object

Reported by: pjoulaud Owned by:
Priority: major Milestone:
Component: models & controllers Version:
Keywords: Cc:

Description

openPLM 1.1 dev 0 SVN-1113

I try to revise a Document3D object (see URL hereafter) and I get the following error message :

Environment:

Request Method: POST
Request URL: http://troisd/object/Document3D/DOC_00010/b/revisions/
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.comments',
 'django.contrib.humanize',
 'djcelery',
 'haystack',
 'south',
 'openPLM.plmapp',
 'openPLM.pdfgen',
 'openPLM.office',
 'openPLM.document3D']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.csrf.middleware.CsrfMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'openPLM.plmapp.middleware.locale.ProfileLocaleMiddleware')


Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response
  100.                     response = callback(request, *callback_args, **callback_kwargs)
File "/var/django/openPLM/trunk/openPLM/plmapp/base_views.py" in _wrapped_view_func
  90.         return view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/contrib/auth/decorators.py" in _wrapped_view
  25.                 return view_func(request, *args, **kwargs)
File "/var/django/openPLM/trunk/openPLM/plmapp/base_views.py" in wrapper
  205.                 return f(request, *args, **kwargs)
File "/var/django/openPLM/trunk/openPLM/plmapp/views/main.py" in display_object_revisions
  350.         return revise_document(obj, ctx, request)
File "/var/django/openPLM/trunk/openPLM/plmapp/views/main.py" in revise_document
  426.                 obj.revise(add_form.cleaned_data["revision"], selected_parts)
File "/var/django/openPLM/trunk/openPLM/document3D/models.py" in revise
  239.         rev = super(Document3DController, self).revise(new_revision,selected_parts) 
File "/var/django/openPLM/trunk/openPLM/plmapp/controllers/document.py" in revise
  365.         rev = super(DocumentController, self).revise(new_revision)
File "/var/django/openPLM/trunk/openPLM/plmapp/controllers/plmobject.py" in revise
  319.                                      self._user, data)
File "/var/django/openPLM/trunk/openPLM/plmapp/controllers/plmobject.py" in create
  119.             if not obj.check_in_group(sponsor, False):

Exception Type: AttributeError at /object/Document3D/DOC_00010/b/revisions/
Exception Value: 'Document3D' object has no attribute 'check_in_group'

Then I tried to create a Document3D and got the following error message :

Environment:

Request Method: POST
Request URL: http://troisd/object/create/
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.comments',
 'django.contrib.humanize',
 'djcelery',
 'haystack',
 'south',
 'openPLM.plmapp',
 'openPLM.pdfgen',
 'openPLM.office',
 'openPLM.document3D']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.csrf.middleware.CsrfMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'openPLM.plmapp.middleware.locale.ProfileLocaleMiddleware')


Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response
  100.                     response = callback(request, *callback_args, **callback_kwargs)
File "/var/django/openPLM/trunk/openPLM/plmapp/base_views.py" in _wrapped_view_func
  90.         return view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/contrib/auth/decorators.py" in _wrapped_view
  25.                 return view_func(request, *args, **kwargs)
File "/var/django/openPLM/trunk/openPLM/plmapp/base_views.py" in wrapper
  205.                 return f(request, *args, **kwargs)
File "/var/django/openPLM/trunk/openPLM/plmapp/views/main.py" in create_object
  1249.             ctrl = ctrl_cls.create_from_form(creation_form, request.user)
File "/var/django/openPLM/trunk/openPLM/plmapp/controllers/plmobject.py" in create_from_form
  151.                     block_mails, no_index)
File "/var/django/openPLM/trunk/openPLM/plmapp/controllers/plmobject.py" in create
  119.             if not obj.check_in_group(sponsor, False):

Exception Type: AttributeError at /object/create/
Exception Value: 'Document3D' object has no attribute 'check_in_group'

Change History

comment:1 Changed 7 years ago by pcosquer

fixed (rev [1114])

comment:2 Changed 7 years ago by pcosquer

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.