hi all,
in a restcontroller I have a class variable for the cache ...
-------------------------------
import logging
from minierp.lib.base import *
from minierp.model.form_schema import Articolo
from psycopg2.extras import RealDictCursor
import decimal
log = logging.getLogger(__name__)
class ArticoliController(BaseController):
"""REST Controller styled on the Atom Publishing Protocol"""
# To properly map this controller, ensure your config/routing.py
file has
# a resource setup:
# map.resource('articolo', 'articoli')
mycache = cache.get_cache('articoli')
---------------------------------
the problem is that I can't use pydoc on the controller:
----------------------------------------
problem in minierp/controllers/ordini.py - <type
'exceptions.TypeError'>: No object (name: Cache) has been registered
for this thread
-----------------------------------------
anyone can help me ?
tanks in advance ...
P.S. sorry for the english ;-))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-devel" 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/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---