Discussion:
[nagare-users:605] Components as class data - ⇝ CallbackLookupError: 39892850
Terrence Brannon
2015-05-06 22:10:17 UTC
Permalink
In this code <https://gist.github.com/metaperl/48cb69901b10a256960e> I am
getting a CallbackLookupError.

Specifically, when I click "Set Global
Delimiter": https://gist.github.com/metaperl/48cb69901b10a256960e#file-gistfile1-py-L508


which is rendered in line 568
- https://gist.github.com/metaperl/48cb69901b10a256960e#file-gistfile1-py-L568

The problem started occuring when I attempted to make
BodyTableColumnValueDelimiter class data for the BodyTable class. This was
a logical choice as there was only one instance of it needed across all
BodyTable instances. Moving over the instance of
BodyTableColumnValueDelimiter worked fine as did moving over it's editor.
However trying to make the component class data is when this error started
occurring.

This is not really my main question. My main question has to do with the
fact that although committing this mini-form on line 568 does bind the
value in BodyTableColumnValueDelimiter from it's editor as the echo-prints
show:
https://gist.github.com/metaperl/48cb69901b10a256960e#file-gistfile1-py-L497

When I attempt to commit the entire form to
database: https://gist.github.com/metaperl/48cb69901b10a256960e#file-gistfile1-py-L660
the column delimiter object is reset to '' instead of the value set in the
form..
--
You received this message because you are subscribed to the Google Groups "Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nagare-users+***@googlegroups.com.
To post to this group, send email to nagare-***@googlegroups.com.
Visit this group at http://groups.google.com/group/nagare-users.
For more options, visit https://groups.google.com/d/optout.
Terrence Brannon
2015-05-06 22:16:23 UTC
Permalink
The entire thing is working fine. I just moved all 3 class attributes into
being attributes of the instance and it works fine:

class BodyTable(AddParser, ValueTyped, Tagged):
"""A BodyTable parser is the most basic class in its inheritance
hierarchy."""


def __init__(self):
super(BodyTable, self).__init__()
self.column_name = ''
self.column_width = 0
* self.column_delimiter_object = BodyTableColumnDelimiter()*
* self.column_delimiter_editor = BodyTableColumnDelimiterEditor(*
* self.column_delimiter_object)*
* self.column_delimiter_comp = component.Component(*
* self.column_delimiter_editor)*
Post by Terrence Brannon
In this code <https://gist.github.com/metaperl/48cb69901b10a256960e> I am
getting a CallbackLookupError.
https://gist.github.com/metaperl/48cb69901b10a256960e#file-gistfile1-py-L508
which is rendered in line 568 -
https://gist.github.com/metaperl/48cb69901b10a256960e#file-gistfile1-py-L568
The problem started occuring when I attempted to make
BodyTableColumnValueDelimiter class data for the BodyTable class. This was
a logical choice as there was only one instance of it needed across all
BodyTable instances. Moving over the instance of
BodyTableColumnValueDelimiter worked fine as did moving over it's editor.
However trying to make the component class data is when this error started
occurring.
This is not really my main question. My main question has to do with the
fact that although committing this mini-form on line 568 does bind the
value in BodyTableColumnValueDelimiter from it's editor as the echo-prints
https://gist.github.com/metaperl/48cb69901b10a256960e#file-gistfile1-py-L497
https://gist.github.com/metaperl/48cb69901b10a256960e#file-gistfile1-py-L660
the column delimiter object is reset to '' instead of the value set in the
form..
--
You received this message because you are subscribed to the Google Groups "Nagare users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nagare-users+***@googlegroups.com.
To post to this group, send email to nagare-***@googlegroups.com.
Visit this group at http://groups.google.com/group/nagare-users.
For more options, visit https://groups.google.com/d/optout.
Loading...