Hi all,

Does someone know why exceptions.AttributeError occurred each time
during accessing any PostgreSQL table WITHOUT "description" field
inside (BTW everything is fine with my code during reaching table WITH
inner "description" field)?

Top of exception page is below:
-- BEGIN --
Python          /usr/lib/python2.5/site-packages/web/utils.py in __getattr__,
line 53
Web     GET http://localhost:8080/desktop/email
Traceback (innermost first)

    * /usr/lib/python2.5/site-packages/web/utils.py in __getattr__
        46. AttributeError: 'a'
        47.
        48. """
        49. def __getattr__(self, key):
        50. try:
        51. return self[key]
        52. except KeyError, k:
        53. raise AttributeError, k ...
        54.
        55. def __setattr__(self, key, value):
        56. self[key] = value
        57.
        58. def __delattr__(self, key):
        59. try:
      ▼ Local vars
      Variable  Value
      k
      KeyError('description',)
      key
      'description'
      self
      <Storage {'id': 3, 'email': '[EMAIL PROTECTED]'}>
    * /usr/lib/python2.5/site-packages/web/template.py in h_getattr
       592. raise SecurityError, 'tried to get ' + attr
       593. try:
       594. if thing in self.builtins:
       595. raise SecurityError, 'tried to getattr on ' + repr(thing)
       596. except TypeError:
       597. pass # raised when testing an unhashable object
       598. try:
       599. return getattr(thing, attr) ...
       600. except AttributeError:
       601. if isinstance(thing, list) and attr == 'join':
       602. return lambda s: s.join(thing)
       603. else:
       604. raise
       605.
      ▼ Local vars
      Variable  Value
      attr
      'description'
      i
      ('getattr', 'thing', ('var', 'name', 'item', 'lineno', 5),
'attr', 'description', 'lineno', 5)
      self
      <web.template.Fill instance at 0x83fa8ec>
      thing
      <Storage {'id': 3, 'email': '[EMAIL PROTECTED]'}>
--- END ---

Hard-coded "description" somewhere?

My env: web.py-0.22 & PostgreSQL 8.1.3 & psycopg2-2.0.6 & Python 2.5.

Any thoughts?

-+-->
WBR,
Vitaliy Yermolenko.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to