[railroad-dev] AT_GENERATE_METHOD is not defined

Nate Aune natea at jazkarta.com
Thu Oct 14 21:23:52 MEST 2004


Hi Jan,

Thanks for your reply on the AT_GENERATE_METHOD error.
 
> I'm currently using AT1.3-rc1 and the Railroad products from the SVN
> trunks (I will check again with AT1.3-final) and I can run the
> PloneRailroad products just fine with either having ATRepresentations
> installed or not installed.

Did it work with AT 1.3-final?
 
> In the issue22 you mentioned doing a grep for AT_GENERATE_METHOD and
> finding it imported from ATRepresentations. Questions:
> 
> 1) Did you have ATRepresentations installed?

I have it in my Products directory, but haven't installed it in the Plone
site because as of yet, I haven't even been able to restart Zope.
 
> 2) What version of Railroad and PloneRailroad did you use at the time
> of issueing the grep?

Railroad 0.2
PloneRailroad 0.2.1

But I have also tried it with the svn trunk of these products.
 
> 3) Could you try to import AT_GENERATE_METHOD explicitly from
> Products.Archetypes.public (or ClassGen for that matter) in
> PloneRailroadService.py and PloneRailroadProxyMixin.py?

I looked at Archetypes/public.py and there is a line:
from Products.Archetypes.ClassGen import AT_GENERATE_METHOD

I also explicitly added this line in the two files you mentioned, but it is
still giving the error:

from Products.Archetypes.ClassGen import AT_GENERATE_METHOD
ImportError: cannot import name AT_GENERATE_METHOD

Nate




More information about the railroad-dev mailing list