All of lore.kernel.org
 help / color / mirror / Atom feed
* fwymore/layerdetail-6591
@ 2014-10-01 18:54 Wymore, Farrell
  2014-10-02 10:20 ` fwymore/layerdetail-6591 Barros Pena, Belen
  2014-10-03 10:30 ` fwymore/layerdetail-6591 Damian, Alexandru
  0 siblings, 2 replies; 7+ messages in thread
From: Wymore, Farrell @ 2014-10-01 18:54 UTC (permalink / raw)
  To: BARROS PENA, BELEN, DAMIAN, ALEXANDRU; +Cc: toaster

[-- Attachment #1: Type: text/plain, Size: 441 bytes --]

Hi Belen,

I tried this code against Alex' database. All the displays looked fine.
I didn't see a problem until I tried to delete the layer from the project.
Then I noticed a bug in the callback. I believe the amended branch
corrects this problem.

Here is a question for Alex:  does orm_projectlayer.layercommit_id == orm_layer.id?
Are these the same id or are these ids refer to different objects? Thanks.


-          fw

-

[-- Attachment #2: Type: text/html, Size: 6581 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: fwymore/layerdetail-6591
  2014-10-01 18:54 fwymore/layerdetail-6591 Wymore, Farrell
@ 2014-10-02 10:20 ` Barros Pena, Belen
  2014-10-02 19:25   ` fwymore/layerdetail-6591 Wymore, Farrell
  2014-10-03 10:30 ` fwymore/layerdetail-6591 Damian, Alexandru
  1 sibling, 1 reply; 7+ messages in thread
From: Barros Pena, Belen @ 2014-10-02 10:20 UTC (permalink / raw)
  To: Wymore, Farrell W (Wind River), Damian,  Alexandru; +Cc: toaster

Hi Farrell,

Just gave this commit

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fwymore/la
yerdetail-6591&id=c3780f55e57203da129583238124b35c4f10bbe6

a go, but now I get an error when I try to create a project:

********

Environment:


Request Method: GET
Request URL: http://0.0.0.0:8000/toastergui/project/2/

Django Version: 1.6
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.humanize',
'orm',
'toastermain',
'south',
'toastergui',
'bldviewer',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response
  201.                 response = middleware_method(request, response)
File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/middleware.
py"
in process_response
  38.                     request.session.save()
File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backends/db
.py"
in save
  57.
session_data=self.encode(self._get_session(no_load=must_create)),
File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backends/ba
se.py"
in encode
  87.         serialized = self.serializer().dumps(session_dict)
File "/usr/local/lib/python2.7/dist-packages/django/core/signing.py" in
dumps
  88.         return json.dumps(obj, separators=(',',
':')).encode('latin-1')
File "/usr/lib/python2.7/json/__init__.py" in dumps
  238.         **kw).encode(obj)
File "/usr/lib/python2.7/json/encoder.py" in encode
  201.         chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py" in iterencode
  264.         return _iterencode(o, 0)
File "/usr/lib/python2.7/json/encoder.py" in default
  178.         raise TypeError(repr(o) + " is not JSON serializable")

Exception Type: TypeError at /toastergui/project/2/
Exception Value: <Project: Project object> is not JSON serializable

*********


When I try to visit the layer details page, I get this:

*********

Environment:


Request Method: GET
Request URL: http://0.0.0.0:8000/toastergui/layer/1/

Django Version: 1.6
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.humanize',
'orm',
'toastermain',
'south',
'toastergui',
'bldviewer',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')


Template error:
In template 
/home/yocto/poky/bitbake/lib/toaster/toastergui/templates/layer-details.htm
l,
error at line 77
   Reverse for 'xhr_layeredit' with arguments '('', 1)' and keyword
arguments '{}' not found. 1 pattern(s) tried:
['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']
   67 : }


   68 :


   69 : function onEditAjaxError( jqXHR, textstatus, error ) {


   70 :     alert("XHR errored:\n" + error + "\n(" + textstatus + ")" );


   71 : }


   72 :


   73 : function postEditAjaxRequest( reqdata ) {


   74 :     var ajax = $.ajax({


   75 :             type:"POST",


   76 :             data: $.param( reqdata ),


   77 :             url:" {% url 'xhr_layeredit'  project.id layer.id%} ",


   78 :             headers: { 'X-CSRFToken': $.cookie( "csrftoken" )},


   79 :             success: onEditAjaxSuccess,


   80 :             error: onEditAjaxError,


   81 :         })


   82 : }


   83 :


   84 : $(document).ready( function( ) {


   85 :     setEventHandlers( );


   86 :


   87 :     /* Provide XHR calls for the "build" buttons.*/


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response
  114.                     response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/home/yocto/poky/bitbake/lib/toaster/toastergui/views.py" in
layerdetails
  2100.         return render( request, template, context )
File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py"
in render
  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py"
in render_to_string
  169.         return t.render(context_instance)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
render
  140.             return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
_render
  134.         return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
render
  840.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
in render_node
  78.             return node.render(context)
File 
"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
in render
  123.         return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
_render
  134.         return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
render
  840.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
in render_node
  78.             return node.render(context)
File 
"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
in render
  62.             result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
render
  840.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
in render_node
  78.             return node.render(context)
File 
"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
in render
  447.                         six.reraise(*exc_info)
File 
"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
in render
  433.             url = reverse(view_name, args=args, kwargs=kwargs,
current_app=context.current_app)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
in reverse
  509.     return iri_to_uri(resolver._reverse_with_prefix(view,
prefix, *args, **kwargs))
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
in _reverse_with_prefix
  429.                              (lookup_view_s, args, kwargs,
len(patterns), patterns))

Exception Type: NoReverseMatch at /toastergui/layer/1/
Exception Value: Reverse for 'xhr_layeredit' with arguments '('', 1)'
and keyword arguments '{}' not found. 1 pattern(s) tried:
['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']


********

On 01/10/2014 19:54, "Wymore, Farrell" <Farrell.Wymore@windriver.com>
wrote:

>Hi Belen,
> 
>I tried this code against Alex¹ database. All the displays looked fine.
>
>I didn¹t see a problem until I tried to delete the layer from the project.
>
>Then I noticed a bug in the callback. I believe the amended branch
>corrects this problem.
> 
>Here is a question for Alex:  does orm_projectlayer.layercommit_id ==
>orm_layer.id?
>Are these the same id or are these ids refer to different objects? Thanks.
> 
>-         
>fw
>-         
> 
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: fwymore/layerdetail-6591
  2014-10-02 10:20 ` fwymore/layerdetail-6591 Barros Pena, Belen
@ 2014-10-02 19:25   ` Wymore, Farrell
  2014-10-03 10:39     ` fwymore/layerdetail-6591 Barros Pena, Belen
  0 siblings, 1 reply; 7+ messages in thread
From: Wymore, Farrell @ 2014-10-02 19:25 UTC (permalink / raw)
  To: BARROS PENA, BELEN, DAMIAN, ALEXANDRU; +Cc: toaster

Hi Belen,

I think this branch is finally squared away. There were a number of bogus ids
being passed around. I pushed an amended branch. Thanks and I hope this 
one works out.

    - fw


-----Original Message-----
From: Barros Pena, Belen [mailto:belen.barros.pena@intel.com] 
Sent: Thursday, October 02, 2014 3:21 AM
To: Wymore, Farrell; DAMIAN, ALEXANDRU
Cc: Reyna, David; toaster@yoctoproject.org
Subject: Re: fwymore/layerdetail-6591

Hi Farrell,

Just gave this commit

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fwymore/la
yerdetail-6591&id=c3780f55e57203da129583238124b35c4f10bbe6

a go, but now I get an error when I try to create a project:

********

Environment:


Request Method: GET
Request URL: http://0.0.0.0:8000/toastergui/project/2/

Django Version: 1.6
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.humanize',
'orm',
'toastermain',
'south',
'toastergui',
'bldviewer',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response
  201.                 response = middleware_method(request, response)
File
"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/middleware.
py"
in process_response
  38.                     request.session.save()
File
"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backends/db
.py"
in save
  57.
session_data=self.encode(self._get_session(no_load=must_create)),
File
"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backends/ba
se.py"
in encode
  87.         serialized = self.serializer().dumps(session_dict)
File "/usr/local/lib/python2.7/dist-packages/django/core/signing.py" in dumps
  88.         return json.dumps(obj, separators=(',',
':')).encode('latin-1')
File "/usr/lib/python2.7/json/__init__.py" in dumps
  238.         **kw).encode(obj)
File "/usr/lib/python2.7/json/encoder.py" in encode
  201.         chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py" in iterencode
  264.         return _iterencode(o, 0)
File "/usr/lib/python2.7/json/encoder.py" in default
  178.         raise TypeError(repr(o) + " is not JSON serializable")

Exception Type: TypeError at /toastergui/project/2/ Exception Value: <Project: Project object> is not JSON serializable

*********


When I try to visit the layer details page, I get this:

*********

Environment:


Request Method: GET
Request URL: http://0.0.0.0:8000/toastergui/layer/1/

Django Version: 1.6
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.humanize',
'orm',
'toastermain',
'south',
'toastergui',
'bldviewer',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')


Template error:
In template
/home/yocto/poky/bitbake/lib/toaster/toastergui/templates/layer-details.htm
l,
error at line 77
   Reverse for 'xhr_layeredit' with arguments '('', 1)' and keyword arguments '{}' not found. 1 pattern(s) tried:
['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']
   67 : }


   68 :


   69 : function onEditAjaxError( jqXHR, textstatus, error ) {


   70 :     alert("XHR errored:\n" + error + "\n(" + textstatus + ")" );


   71 : }


   72 :


   73 : function postEditAjaxRequest( reqdata ) {


   74 :     var ajax = $.ajax({


   75 :             type:"POST",


   76 :             data: $.param( reqdata ),


   77 :             url:" {% url 'xhr_layeredit'  project.id layer.id%} ",


   78 :             headers: { 'X-CSRFToken': $.cookie( "csrftoken" )},


   79 :             success: onEditAjaxSuccess,


   80 :             error: onEditAjaxError,


   81 :         })


   82 : }


   83 :


   84 : $(document).ready( function( ) {


   85 :     setEventHandlers( );


   86 :


   87 :     /* Provide XHR calls for the "build" buttons.*/


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response
  114.                     response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/home/yocto/poky/bitbake/lib/toaster/toastergui/views.py" in
layerdetails
  2100.         return render( request, template, context )
File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py"
in render
  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py"
in render_to_string
  169.         return t.render(context_instance)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
render
  140.             return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
_render
  134.         return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
render
  840.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
in render_node
  78.             return node.render(context)
File 
"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
in render
  123.         return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
_render
  134.         return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
render
  840.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
in render_node
  78.             return node.render(context)
File 
"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
in render
  62.             result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
render
  840.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
in render_node
  78.             return node.render(context)
File 
"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
in render
  447.                         six.reraise(*exc_info)
File 
"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
in render
  433.             url = reverse(view_name, args=args, kwargs=kwargs,
current_app=context.current_app)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
in reverse
  509.     return iri_to_uri(resolver._reverse_with_prefix(view,
prefix, *args, **kwargs))
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
in _reverse_with_prefix
  429.                              (lookup_view_s, args, kwargs,
len(patterns), patterns))

Exception Type: NoReverseMatch at /toastergui/layer/1/
Exception Value: Reverse for 'xhr_layeredit' with arguments '('', 1)'
and keyword arguments '{}' not found. 1 pattern(s) tried:
['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']


********

On 01/10/2014 19:54, "Wymore, Farrell" <Farrell.Wymore@windriver.com>
wrote:

>Hi Belen,
> 
>I tried this code against Alex¹ database. All the displays looked fine.
>
>I didn¹t see a problem until I tried to delete the layer from the project.
>
>Then I noticed a bug in the callback. I believe the amended branch
>corrects this problem.
> 
>Here is a question for Alex:  does orm_projectlayer.layercommit_id ==
>orm_layer.id?
>Are these the same id or are these ids refer to different objects? Thanks.
> 
>-         
>fw
>-         
> 
>




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: fwymore/layerdetail-6591
  2014-10-01 18:54 fwymore/layerdetail-6591 Wymore, Farrell
  2014-10-02 10:20 ` fwymore/layerdetail-6591 Barros Pena, Belen
@ 2014-10-03 10:30 ` Damian, Alexandru
  1 sibling, 0 replies; 7+ messages in thread
From: Damian, Alexandru @ 2014-10-03 10:30 UTC (permalink / raw)
  To: Wymore, Farrell W (Wind River); +Cc: toaster

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

Hi,

Nope, orm_projectlayer.layercommit_id == orm_layer_version.id

Alex

On Wed, Oct 1, 2014 at 7:54 PM, Wymore, Farrell W (Wind River) <
farrell.wymore@windriver.com> wrote:

>  Hi Belen,
>
>
>
> I tried this code against Alex’ database. All the displays looked fine.
>
> I didn’t see a problem until I tried to delete the layer from the project.
>
> Then I noticed a bug in the callback. I believe the amended branch
>
> corrects this problem.
>
>
>
> Here is a question for Alex:  does orm_projectlayer.layercommit_id ==
> orm_layer.id?
>
> Are these the same id or are these ids refer to different objects? Thanks.
>
>
>
> -          fw
>
> -
>



-- 
Alex Damian
Yocto Project
SSG / OTC

[-- Attachment #2: Type: text/html, Size: 2954 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: fwymore/layerdetail-6591
  2014-10-02 19:25   ` fwymore/layerdetail-6591 Wymore, Farrell
@ 2014-10-03 10:39     ` Barros Pena, Belen
  2014-10-03 12:53       ` fwymore/layerdetail-6591 Wymore, Farrell
  0 siblings, 1 reply; 7+ messages in thread
From: Barros Pena, Belen @ 2014-10-03 10:39 UTC (permalink / raw)
  To: Wymore, Farrell W (Wind River), Damian,  Alexandru; +Cc: toaster

On 02/10/2014 20:25, "Wymore, Farrell" <Farrell.Wymore@windriver.com>
wrote:

>Hi Belen,
>
>I think this branch is finally squared away. There were a number of bogus
>ids
>being passed around. I pushed an amended branch. Thanks and I hope this
>one works out.

No joy :( I still get the same errors when trying to visit a project page
and a layer details page.

Sorry

Belén

>
>    - fw
>
>
>-----Original Message-----
>From: Barros Pena, Belen [mailto:belen.barros.pena@intel.com]
>Sent: Thursday, October 02, 2014 3:21 AM
>To: Wymore, Farrell; DAMIAN, ALEXANDRU
>Cc: Reyna, David; toaster@yoctoproject.org
>Subject: Re: fwymore/layerdetail-6591
>
>Hi Farrell,
>
>Just gave this commit
>
>http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fwymore/l
>a
>yerdetail-6591&id=c3780f55e57203da129583238124b35c4f10bbe6
>
>a go, but now I get an error when I try to create a project:
>
>********
>
>Environment:
>
>
>Request Method: GET
>Request URL: http://0.0.0.0:8000/toastergui/project/2/
>
>Django Version: 1.6
>Python Version: 2.7.3
>Installed Applications:
>('django.contrib.auth',
>'django.contrib.contenttypes',
>'django.contrib.messages',
>'django.contrib.sessions',
>'django.contrib.admin',
>'django.contrib.staticfiles',
>'django.contrib.humanize',
>'orm',
>'toastermain',
>'south',
>'toastergui',
>'bldviewer',
>'bldcontrol')
>Installed Middleware:
>('django.middleware.common.CommonMiddleware',
>'django.contrib.sessions.middleware.SessionMiddleware',
>'django.middleware.csrf.CsrfViewMiddleware',
>'django.contrib.auth.middleware.AuthenticationMiddleware',
>'django.contrib.messages.middleware.MessageMiddleware')
>
>
>Traceback:
>File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
>in get_response
>  201.                 response = middleware_method(request, response)
>File
>"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/middleware
>.
>py"
>in process_response
>  38.                     request.session.save()
>File
>"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backends/d
>b
>.py"
>in save
>  57.
>session_data=self.encode(self._get_session(no_load=must_create)),
>File
>"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backends/b
>a
>se.py"
>in encode
>  87.         serialized = self.serializer().dumps(session_dict)
>File "/usr/local/lib/python2.7/dist-packages/django/core/signing.py" in
>dumps
>  88.         return json.dumps(obj, separators=(',',
>':')).encode('latin-1')
>File "/usr/lib/python2.7/json/__init__.py" in dumps
>  238.         **kw).encode(obj)
>File "/usr/lib/python2.7/json/encoder.py" in encode
>  201.         chunks = self.iterencode(o, _one_shot=True)
>File "/usr/lib/python2.7/json/encoder.py" in iterencode
>  264.         return _iterencode(o, 0)
>File "/usr/lib/python2.7/json/encoder.py" in default
>  178.         raise TypeError(repr(o) + " is not JSON serializable")
>
>Exception Type: TypeError at /toastergui/project/2/ Exception Value:
><Project: Project object> is not JSON serializable
>
>*********
>
>
>When I try to visit the layer details page, I get this:
>
>*********
>
>Environment:
>
>
>Request Method: GET
>Request URL: http://0.0.0.0:8000/toastergui/layer/1/
>
>Django Version: 1.6
>Python Version: 2.7.3
>Installed Applications:
>('django.contrib.auth',
>'django.contrib.contenttypes',
>'django.contrib.messages',
>'django.contrib.sessions',
>'django.contrib.admin',
>'django.contrib.staticfiles',
>'django.contrib.humanize',
>'orm',
>'toastermain',
>'south',
>'toastergui',
>'bldviewer',
>'bldcontrol')
>Installed Middleware:
>('django.middleware.common.CommonMiddleware',
>'django.contrib.sessions.middleware.SessionMiddleware',
>'django.middleware.csrf.CsrfViewMiddleware',
>'django.contrib.auth.middleware.AuthenticationMiddleware',
>'django.contrib.messages.middleware.MessageMiddleware')
>
>
>Template error:
>In template
>/home/yocto/poky/bitbake/lib/toaster/toastergui/templates/layer-details.ht
>m
>l,
>error at line 77
>   Reverse for 'xhr_layeredit' with arguments '('', 1)' and keyword
>arguments '{}' not found. 1 pattern(s) tried:
>['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']
>   67 : }
>
>
>   68 :
>
>
>   69 : function onEditAjaxError( jqXHR, textstatus, error ) {
>
>
>   70 :     alert("XHR errored:\n" + error + "\n(" + textstatus + ")" );
>
>
>   71 : }
>
>
>   72 :
>
>
>   73 : function postEditAjaxRequest( reqdata ) {
>
>
>   74 :     var ajax = $.ajax({
>
>
>   75 :             type:"POST",
>
>
>   76 :             data: $.param( reqdata ),
>
>
>   77 :             url:" {% url 'xhr_layeredit'  project.id layer.id%} ",
>
>
>   78 :             headers: { 'X-CSRFToken': $.cookie( "csrftoken" )},
>
>
>   79 :             success: onEditAjaxSuccess,
>
>
>   80 :             error: onEditAjaxError,
>
>
>   81 :         })
>
>
>   82 : }
>
>
>   83 :
>
>
>   84 : $(document).ready( function( ) {
>
>
>   85 :     setEventHandlers( );
>
>
>   86 :
>
>
>   87 :     /* Provide XHR calls for the "build" buttons.*/
>
>
>Traceback:
>File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
>in get_response
>  114.                     response = wrapped_callback(request,
>*callback_args, **callback_kwargs)
>File "/home/yocto/poky/bitbake/lib/toaster/toastergui/views.py" in
>layerdetails
>  2100.         return render( request, template, context )
>File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py"
>in render
>  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
>File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py"
>in render_to_string
>  169.         return t.render(context_instance)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
>render
>  140.             return self._render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
>_render
>  134.         return self.nodelist.render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
>render
>  840.                 bit = self.render_node(node, context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
>in render_node
>  78.             return node.render(context)
>File
>"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
>in render
>  123.         return compiled_parent._render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
>_render
>  134.         return self.nodelist.render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
>render
>  840.                 bit = self.render_node(node, context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
>in render_node
>  78.             return node.render(context)
>File
>"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
>in render
>  62.             result = block.nodelist.render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in
>render
>  840.                 bit = self.render_node(node, context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
>in render_node
>  78.             return node.render(context)
>File
>"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
>in render
>  447.                         six.reraise(*exc_info)
>File
>"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
>in render
>  433.             url = reverse(view_name, args=args, kwargs=kwargs,
>current_app=context.current_app)
>File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
>in reverse
>  509.     return iri_to_uri(resolver._reverse_with_prefix(view,
>prefix, *args, **kwargs))
>File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
>in _reverse_with_prefix
>  429.                              (lookup_view_s, args, kwargs,
>len(patterns), patterns))
>
>Exception Type: NoReverseMatch at /toastergui/layer/1/
>Exception Value: Reverse for 'xhr_layeredit' with arguments '('', 1)'
>and keyword arguments '{}' not found. 1 pattern(s) tried:
>['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']
>
>
>********
>
>On 01/10/2014 19:54, "Wymore, Farrell" <Farrell.Wymore@windriver.com>
>wrote:
>
>>Hi Belen,
>>
>>I tried this code against Alex¹ database. All the displays looked fine.
>>
>>I didn¹t see a problem until I tried to delete the layer from the
>>project.
>>
>>Then I noticed a bug in the callback. I believe the amended branch
>>corrects this problem.
>>
>>Here is a question for Alex:  does orm_projectlayer.layercommit_id ==
>>orm_layer.id?
>>Are these the same id or are these ids refer to different objects?
>>Thanks.
>>
>>-
>>fw
>>-
>>
>>
>
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: fwymore/layerdetail-6591
  2014-10-03 10:39     ` fwymore/layerdetail-6591 Barros Pena, Belen
@ 2014-10-03 12:53       ` Wymore, Farrell
  2014-10-03 13:19         ` fwymore/layerdetail-6591 Damian, Alexandru
  0 siblings, 1 reply; 7+ messages in thread
From: Wymore, Farrell @ 2014-10-03 12:53 UTC (permalink / raw)
  To: BARROS PENA, BELEN, DAMIAN, ALEXANDRU; +Cc: toaster

Hmm...I don't understand this. These 2 pages should be completely different - no interaction between them. 
The only thing I can think of is that browser may have cached the javascript functions from one page and
tried to used them in the other page - some of the functions may have the same name. I'll try to verify.

    - fw


-----Original Message-----
From: Barros Pena, Belen [mailto:belen.barros.pena@intel.com] 
Sent: Friday, October 03, 2014 3:40 AM
To: Wymore, Farrell; DAMIAN, ALEXANDRU
Cc: Reyna, David; toaster@yoctoproject.org
Subject: Re: fwymore/layerdetail-6591

On 02/10/2014 20:25, "Wymore, Farrell" <Farrell.Wymore@windriver.com>
wrote:

>Hi Belen,
>
>I think this branch is finally squared away. There were a number of 
>bogus ids being passed around. I pushed an amended branch. Thanks and I 
>hope this one works out.

No joy :( I still get the same errors when trying to visit a project page and a layer details page.

Sorry

Belén

>
>    - fw
>
>
>-----Original Message-----
>From: Barros Pena, Belen [mailto:belen.barros.pena@intel.com]
>Sent: Thursday, October 02, 2014 3:21 AM
>To: Wymore, Farrell; DAMIAN, ALEXANDRU
>Cc: Reyna, David; toaster@yoctoproject.org
>Subject: Re: fwymore/layerdetail-6591
>
>Hi Farrell,
>
>Just gave this commit
>
>http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fwymor
>e/l
>a
>yerdetail-6591&id=c3780f55e57203da129583238124b35c4f10bbe6
>
>a go, but now I get an error when I try to create a project:
>
>********
>
>Environment:
>
>
>Request Method: GET
>Request URL: http://0.0.0.0:8000/toastergui/project/2/
>
>Django Version: 1.6
>Python Version: 2.7.3
>Installed Applications:
>('django.contrib.auth',
>'django.contrib.contenttypes',
>'django.contrib.messages',
>'django.contrib.sessions',
>'django.contrib.admin',
>'django.contrib.staticfiles',
>'django.contrib.humanize',
>'orm',
>'toastermain',
>'south',
>'toastergui',
>'bldviewer',
>'bldcontrol')
>Installed Middleware:
>('django.middleware.common.CommonMiddleware',
>'django.contrib.sessions.middleware.SessionMiddleware',
>'django.middleware.csrf.CsrfViewMiddleware',
>'django.contrib.auth.middleware.AuthenticationMiddleware',
>'django.contrib.messages.middleware.MessageMiddleware')
>
>
>Traceback:
>File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
>in get_response
>  201.                 response = middleware_method(request, response)
>File
>"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/middlew
>are
>.
>py"
>in process_response
>  38.                     request.session.save()
>File
>"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backend
>s/d
>b
>.py"
>in save
>  57.
>session_data=self.encode(self._get_session(no_load=must_create)),
>File
>"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backend
>s/b
>a
>se.py"
>in encode
>  87.         serialized = self.serializer().dumps(session_dict)
>File "/usr/local/lib/python2.7/dist-packages/django/core/signing.py" in 
>dumps
>  88.         return json.dumps(obj, separators=(',',
>':')).encode('latin-1')
>File "/usr/lib/python2.7/json/__init__.py" in dumps
>  238.         **kw).encode(obj)
>File "/usr/lib/python2.7/json/encoder.py" in encode
>  201.         chunks = self.iterencode(o, _one_shot=True)
>File "/usr/lib/python2.7/json/encoder.py" in iterencode
>  264.         return _iterencode(o, 0)
>File "/usr/lib/python2.7/json/encoder.py" in default
>  178.         raise TypeError(repr(o) + " is not JSON serializable")
>
>Exception Type: TypeError at /toastergui/project/2/ Exception Value:
><Project: Project object> is not JSON serializable
>
>*********
>
>
>When I try to visit the layer details page, I get this:
>
>*********
>
>Environment:
>
>
>Request Method: GET
>Request URL: http://0.0.0.0:8000/toastergui/layer/1/
>
>Django Version: 1.6
>Python Version: 2.7.3
>Installed Applications:
>('django.contrib.auth',
>'django.contrib.contenttypes',
>'django.contrib.messages',
>'django.contrib.sessions',
>'django.contrib.admin',
>'django.contrib.staticfiles',
>'django.contrib.humanize',
>'orm',
>'toastermain',
>'south',
>'toastergui',
>'bldviewer',
>'bldcontrol')
>Installed Middleware:
>('django.middleware.common.CommonMiddleware',
>'django.contrib.sessions.middleware.SessionMiddleware',
>'django.middleware.csrf.CsrfViewMiddleware',
>'django.contrib.auth.middleware.AuthenticationMiddleware',
>'django.contrib.messages.middleware.MessageMiddleware')
>
>
>Template error:
>In template
>/home/yocto/poky/bitbake/lib/toaster/toastergui/templates/layer-details
>.ht
>m
>l,
>error at line 77
>   Reverse for 'xhr_layeredit' with arguments '('', 1)' and keyword 
>arguments '{}' not found. 1 pattern(s) tried:
>['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']
>   67 : }
>
>
>   68 :
>
>
>   69 : function onEditAjaxError( jqXHR, textstatus, error ) {
>
>
>   70 :     alert("XHR errored:\n" + error + "\n(" + textstatus + ")" );
>
>
>   71 : }
>
>
>   72 :
>
>
>   73 : function postEditAjaxRequest( reqdata ) {
>
>
>   74 :     var ajax = $.ajax({
>
>
>   75 :             type:"POST",
>
>
>   76 :             data: $.param( reqdata ),
>
>
>   77 :             url:" {% url 'xhr_layeredit'  project.id layer.id%} ",
>
>
>   78 :             headers: { 'X-CSRFToken': $.cookie( "csrftoken" )},
>
>
>   79 :             success: onEditAjaxSuccess,
>
>
>   80 :             error: onEditAjaxError,
>
>
>   81 :         })
>
>
>   82 : }
>
>
>   83 :
>
>
>   84 : $(document).ready( function( ) {
>
>
>   85 :     setEventHandlers( );
>
>
>   86 :
>
>
>   87 :     /* Provide XHR calls for the "build" buttons.*/
>
>
>Traceback:
>File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
>in get_response
>  114.                     response = wrapped_callback(request,
>*callback_args, **callback_kwargs)
>File "/home/yocto/poky/bitbake/lib/toaster/toastergui/views.py" in 
>layerdetails
>  2100.         return render( request, template, context )
>File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py"
>in render
>  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
>File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py"
>in render_to_string
>  169.         return t.render(context_instance)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" 
>in render
>  140.             return self._render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" 
>in _render
>  134.         return self.nodelist.render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" 
>in render
>  840.                 bit = self.render_node(node, context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
>in render_node
>  78.             return node.render(context)
>File
>"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
>in render
>  123.         return compiled_parent._render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" 
>in _render
>  134.         return self.nodelist.render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" 
>in render
>  840.                 bit = self.render_node(node, context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
>in render_node
>  78.             return node.render(context)
>File
>"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
>in render
>  62.             result = block.nodelist.render(context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" 
>in render
>  840.                 bit = self.render_node(node, context)
>File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
>in render_node
>  78.             return node.render(context)
>File
>"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
>in render
>  447.                         six.reraise(*exc_info)
>File
>"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
>in render
>  433.             url = reverse(view_name, args=args, kwargs=kwargs,
>current_app=context.current_app)
>File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
>in reverse
>  509.     return iri_to_uri(resolver._reverse_with_prefix(view,
>prefix, *args, **kwargs))
>File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
>in _reverse_with_prefix
>  429.                              (lookup_view_s, args, kwargs,
>len(patterns), patterns))
>
>Exception Type: NoReverseMatch at /toastergui/layer/1/ Exception Value: 
>Reverse for 'xhr_layeredit' with arguments '('', 1)'
>and keyword arguments '{}' not found. 1 pattern(s) tried:
>['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']
>
>
>********
>
>On 01/10/2014 19:54, "Wymore, Farrell" <Farrell.Wymore@windriver.com>
>wrote:
>
>>Hi Belen,
>>
>>I tried this code against Alex¹ database. All the displays looked fine.
>>
>>I didn¹t see a problem until I tried to delete the layer from the 
>>project.
>>
>>Then I noticed a bug in the callback. I believe the amended branch 
>>corrects this problem.
>>
>>Here is a question for Alex:  does orm_projectlayer.layercommit_id == 
>>orm_layer.id?
>>Are these the same id or are these ids refer to different objects?
>>Thanks.
>>
>>-
>>fw
>>-
>>
>>
>
>




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: fwymore/layerdetail-6591
  2014-10-03 12:53       ` fwymore/layerdetail-6591 Wymore, Farrell
@ 2014-10-03 13:19         ` Damian, Alexandru
  0 siblings, 0 replies; 7+ messages in thread
From: Damian, Alexandru @ 2014-10-03 13:19 UTC (permalink / raw)
  To: Wymore, Farrell W (Wind River); +Cc: toaster

[-- Attachment #1: Type: text/plain, Size: 10636 bytes --]

Can you please rebase against toaster_mater, again, please ?

I got a feeling that this bug was recently solved in that branch.

On Fri, Oct 3, 2014 at 1:53 PM, Wymore, Farrell W (Wind River) <
farrell.wymore@windriver.com> wrote:

> Hmm...I don't understand this. These 2 pages should be completely
> different - no interaction between them.
> The only thing I can think of is that browser may have cached the
> javascript functions from one page and
> tried to used them in the other page - some of the functions may have the
> same name. I'll try to verify.
>
>     - fw
>
>
> -----Original Message-----
> From: Barros Pena, Belen [mailto:belen.barros.pena@intel.com]
> Sent: Friday, October 03, 2014 3:40 AM
> To: Wymore, Farrell; DAMIAN, ALEXANDRU
> Cc: Reyna, David; toaster@yoctoproject.org
> Subject: Re: fwymore/layerdetail-6591
>
> On 02/10/2014 20:25, "Wymore, Farrell" <Farrell.Wymore@windriver.com>
> wrote:
>
> >Hi Belen,
> >
> >I think this branch is finally squared away. There were a number of
> >bogus ids being passed around. I pushed an amended branch. Thanks and I
> >hope this one works out.
>
> No joy :( I still get the same errors when trying to visit a project page
> and a layer details page.
>
> Sorry
>
> Belén
>
> >
> >    - fw
> >
> >
> >-----Original Message-----
> >From: Barros Pena, Belen [mailto:belen.barros.pena@intel.com]
> >Sent: Thursday, October 02, 2014 3:21 AM
> >To: Wymore, Farrell; DAMIAN, ALEXANDRU
> >Cc: Reyna, David; toaster@yoctoproject.org
> >Subject: Re: fwymore/layerdetail-6591
> >
> >Hi Farrell,
> >
> >Just gave this commit
> >
> >http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fwymor
> >e/l
> >a
> >yerdetail-6591&id=c3780f55e57203da129583238124b35c4f10bbe6
> >
> >a go, but now I get an error when I try to create a project:
> >
> >********
> >
> >Environment:
> >
> >
> >Request Method: GET
> >Request URL: http://0.0.0.0:8000/toastergui/project/2/
> >
> >Django Version: 1.6
> >Python Version: 2.7.3
> >Installed Applications:
> >('django.contrib.auth',
> >'django.contrib.contenttypes',
> >'django.contrib.messages',
> >'django.contrib.sessions',
> >'django.contrib.admin',
> >'django.contrib.staticfiles',
> >'django.contrib.humanize',
> >'orm',
> >'toastermain',
> >'south',
> >'toastergui',
> >'bldviewer',
> >'bldcontrol')
> >Installed Middleware:
> >('django.middleware.common.CommonMiddleware',
> >'django.contrib.sessions.middleware.SessionMiddleware',
> >'django.middleware.csrf.CsrfViewMiddleware',
> >'django.contrib.auth.middleware.AuthenticationMiddleware',
> >'django.contrib.messages.middleware.MessageMiddleware')
> >
> >
> >Traceback:
> >File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
> >in get_response
> >  201.                 response = middleware_method(request, response)
> >File
> >"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/middlew
> >are
> >.
> >py"
> >in process_response
> >  38.                     request.session.save()
> >File
> >"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backend
> >s/d
> >b
> >.py"
> >in save
> >  57.
> >session_data=self.encode(self._get_session(no_load=must_create)),
> >File
> >"/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backend
> >s/b
> >a
> >se.py"
> >in encode
> >  87.         serialized = self.serializer().dumps(session_dict)
> >File "/usr/local/lib/python2.7/dist-packages/django/core/signing.py" in
> >dumps
> >  88.         return json.dumps(obj, separators=(',',
> >':')).encode('latin-1')
> >File "/usr/lib/python2.7/json/__init__.py" in dumps
> >  238.         **kw).encode(obj)
> >File "/usr/lib/python2.7/json/encoder.py" in encode
> >  201.         chunks = self.iterencode(o, _one_shot=True)
> >File "/usr/lib/python2.7/json/encoder.py" in iterencode
> >  264.         return _iterencode(o, 0)
> >File "/usr/lib/python2.7/json/encoder.py" in default
> >  178.         raise TypeError(repr(o) + " is not JSON serializable")
> >
> >Exception Type: TypeError at /toastergui/project/2/ Exception Value:
> ><Project: Project object> is not JSON serializable
> >
> >*********
> >
> >
> >When I try to visit the layer details page, I get this:
> >
> >*********
> >
> >Environment:
> >
> >
> >Request Method: GET
> >Request URL: http://0.0.0.0:8000/toastergui/layer/1/
> >
> >Django Version: 1.6
> >Python Version: 2.7.3
> >Installed Applications:
> >('django.contrib.auth',
> >'django.contrib.contenttypes',
> >'django.contrib.messages',
> >'django.contrib.sessions',
> >'django.contrib.admin',
> >'django.contrib.staticfiles',
> >'django.contrib.humanize',
> >'orm',
> >'toastermain',
> >'south',
> >'toastergui',
> >'bldviewer',
> >'bldcontrol')
> >Installed Middleware:
> >('django.middleware.common.CommonMiddleware',
> >'django.contrib.sessions.middleware.SessionMiddleware',
> >'django.middleware.csrf.CsrfViewMiddleware',
> >'django.contrib.auth.middleware.AuthenticationMiddleware',
> >'django.contrib.messages.middleware.MessageMiddleware')
> >
> >
> >Template error:
> >In template
> >/home/yocto/poky/bitbake/lib/toaster/toastergui/templates/layer-details
> >.ht
> >m
> >l,
> >error at line 77
> >   Reverse for 'xhr_layeredit' with arguments '('', 1)' and keyword
> >arguments '{}' not found. 1 pattern(s) tried:
> >['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']
> >   67 : }
> >
> >
> >   68 :
> >
> >
> >   69 : function onEditAjaxError( jqXHR, textstatus, error ) {
> >
> >
> >   70 :     alert("XHR errored:\n" + error + "\n(" + textstatus + ")" );
> >
> >
> >   71 : }
> >
> >
> >   72 :
> >
> >
> >   73 : function postEditAjaxRequest( reqdata ) {
> >
> >
> >   74 :     var ajax = $.ajax({
> >
> >
> >   75 :             type:"POST",
> >
> >
> >   76 :             data: $.param( reqdata ),
> >
> >
> >   77 :             url:" {% url 'xhr_layeredit'  project.id layer.id%}
> ",
> >
> >
> >   78 :             headers: { 'X-CSRFToken': $.cookie( "csrftoken" )},
> >
> >
> >   79 :             success: onEditAjaxSuccess,
> >
> >
> >   80 :             error: onEditAjaxError,
> >
> >
> >   81 :         })
> >
> >
> >   82 : }
> >
> >
> >   83 :
> >
> >
> >   84 : $(document).ready( function( ) {
> >
> >
> >   85 :     setEventHandlers( );
> >
> >
> >   86 :
> >
> >
> >   87 :     /* Provide XHR calls for the "build" buttons.*/
> >
> >
> >Traceback:
> >File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
> >in get_response
> >  114.                     response = wrapped_callback(request,
> >*callback_args, **callback_kwargs)
> >File "/home/yocto/poky/bitbake/lib/toaster/toastergui/views.py" in
> >layerdetails
> >  2100.         return render( request, template, context )
> >File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py"
> >in render
> >  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
> >File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py"
> >in render_to_string
> >  169.         return t.render(context_instance)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/base.py"
> >in render
> >  140.             return self._render(context)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/base.py"
> >in _render
> >  134.         return self.nodelist.render(context)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/base.py"
> >in render
> >  840.                 bit = self.render_node(node, context)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
> >in render_node
> >  78.             return node.render(context)
> >File
> >"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
> >in render
> >  123.         return compiled_parent._render(context)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/base.py"
> >in _render
> >  134.         return self.nodelist.render(context)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/base.py"
> >in render
> >  840.                 bit = self.render_node(node, context)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
> >in render_node
> >  78.             return node.render(context)
> >File
> >"/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py"
> >in render
> >  62.             result = block.nodelist.render(context)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/base.py"
> >in render
> >  840.                 bit = self.render_node(node, context)
> >File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py"
> >in render_node
> >  78.             return node.render(context)
> >File
> >"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
> >in render
> >  447.                         six.reraise(*exc_info)
> >File
> >"/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py"
> >in render
> >  433.             url = reverse(view_name, args=args, kwargs=kwargs,
> >current_app=context.current_app)
> >File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
> >in reverse
> >  509.     return iri_to_uri(resolver._reverse_with_prefix(view,
> >prefix, *args, **kwargs))
> >File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
> >in _reverse_with_prefix
> >  429.                              (lookup_view_s, args, kwargs,
> >len(patterns), patterns))
> >
> >Exception Type: NoReverseMatch at /toastergui/layer/1/ Exception Value:
> >Reverse for 'xhr_layeredit' with arguments '('', 1)'
> >and keyword arguments '{}' not found. 1 pattern(s) tried:
> >['toastergui/xhr_layeredit/(?P<pid>\\d+)/layer/(?P<lid>\\d+)/$']
> >
> >
> >********
> >
> >On 01/10/2014 19:54, "Wymore, Farrell" <Farrell.Wymore@windriver.com>
> >wrote:
> >
> >>Hi Belen,
> >>
> >>I tried this code against Alex¹ database. All the displays looked fine.
> >>
> >>I didn¹t see a problem until I tried to delete the layer from the
> >>project.
> >>
> >>Then I noticed a bug in the callback. I believe the amended branch
> >>corrects this problem.
> >>
> >>Here is a question for Alex:  does orm_projectlayer.layercommit_id ==
> >>orm_layer.id?
> >>Are these the same id or are these ids refer to different objects?
> >>Thanks.
> >>
> >>-
> >>fw
> >>-
> >>
> >>
> >
> >
>
>
>


-- 
Alex Damian
Yocto Project
SSG / OTC

[-- Attachment #2: Type: text/html, Size: 14731 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-10-03 13:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-01 18:54 fwymore/layerdetail-6591 Wymore, Farrell
2014-10-02 10:20 ` fwymore/layerdetail-6591 Barros Pena, Belen
2014-10-02 19:25   ` fwymore/layerdetail-6591 Wymore, Farrell
2014-10-03 10:39     ` fwymore/layerdetail-6591 Barros Pena, Belen
2014-10-03 12:53       ` fwymore/layerdetail-6591 Wymore, Farrell
2014-10-03 13:19         ` fwymore/layerdetail-6591 Damian, Alexandru
2014-10-03 10:30 ` fwymore/layerdetail-6591 Damian, Alexandru

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.