Re: [Zope] Problem with upgrade from Zope 2.6.1 to Zope 2.9.4

2006-09-13 Thread Dieter Maurer
yogeen honnavar wrote at 2006-9-13 00:54 -0700:
> ...
>

Maybe, your ZODB object is called in the wrong way?
Errors like you describe it are a typical symptom for this case.

You might read section "Calling DTML Objects" in

  

to find out more about this problem.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with upgrade from Zope 2.6.1 to Zope 2.9.4

2006-09-13 Thread Jonathan


- Original Message - 
From: "Paul Winkler" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, September 13, 2006 10:33 AM
Subject: Re: [Zope] Problem with upgrade from Zope 2.6.1 to Zope 2.9.4



On Wed, Sep 13, 2006 at 12:54:09AM -0700, yogeen honnavar wrote:

hello AJ,
 thanks for ur response. now i hv another
issue.
   the problem is the older applicaiton which we hv in
zope 2.6.1 uses a function ZopeTime. after migrating
to Zope2.9.4 by moving the Data.fs file. it is found
that the application reports error KeyError for
ZopeTime. can u pls suggest whats wrong ? is ZopeTime
available in 2.9.4. if we change it to "_.DateTime"
its working. but we hv it in many places and we dont
wish to change the code. pls suggest a solution.
   the problematic code is as follows




I created a new dtml method in a zope 2.9.1 instance.
I copied and pasted your problematic code.
Works fine here.



I tried a dtml method in zope 2.9.2 containing:





and it worked fine (i tried it as both an authenticated user and an 
anonymous user, and it worked in both cases)


Maybe you should post the traceback from your error...


Jonathan




___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with upgrade from Zope 2.6.1 to Zope 2.9.4

2006-09-13 Thread Paul Winkler
On Wed, Sep 13, 2006 at 12:54:09AM -0700, yogeen honnavar wrote:
> hello AJ,
>  thanks for ur response. now i hv another
> issue.
>the problem is the older applicaiton which we hv in
> zope 2.6.1 uses a function ZopeTime. after migrating
> to Zope2.9.4 by moving the Data.fs file. it is found
> that the application reports error KeyError for
> ZopeTime. can u pls suggest whats wrong ? is ZopeTime
> available in 2.9.4. if we change it to "_.DateTime"
> its working. but we hv it in many places and we dont
> wish to change the code. pls suggest a solution.
>the problematic code is as follows
> 
> 

I created a new dtml method in a zope 2.9.1 instance.
I copied and pasted your problematic code.
Works fine here.

The only thing I can think of that might be relevant is that ZopeTime
doesn't live in the dtml "_" namespace; instead it's acquired from the
root application.

Was it always that way? I don't know and don't have time to check.
 
-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with upgrade from Zope 2.6.1 to Zope 2.9.4

2006-09-13 Thread Andreas Jung



--On 13. September 2006 00:54:09 -0700 yogeen honnavar <[EMAIL PROTECTED]> 
wrote:



hello AJ,
 thanks for ur response. now i hv another
issue.
   the problem is the older applicaiton which we hv in
zope 2.6.1 uses a function ZopeTime. after migrating
to Zope2.9.4 by moving the Data.fs file. it is found
that the application reports error KeyError for
ZopeTime. can u pls suggest whats wrong ? is ZopeTime
available in 2.9.4. if we change it to "_.DateTime"
its working. but we hv it in many places and we dont
wish to change the code. pls suggest a solution.
   the problematic code is as follows





No idea what happened to "_.ZopeTime()".

-aj

pgpwQ5XHNKVxO.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with upgrade from Zope 2.6.1 to Zope 2.9.4

2006-09-13 Thread yogeen honnavar
hello AJ,
 thanks for ur response. now i hv another
issue.
   the problem is the older applicaiton which we hv in
zope 2.6.1 uses a function ZopeTime. after migrating
to Zope2.9.4 by moving the Data.fs file. it is found
that the application reports error KeyError for
ZopeTime. can u pls suggest whats wrong ? is ZopeTime
available in 2.9.4. if we change it to "_.DateTime"
its working. but we hv it in many places and we dont
wish to change the code. pls suggest a solution.
   the problematic code is as follows



thanks and regards
-yogeen

--- Andreas Jung <[EMAIL PROTECTED]> wrote:

> 
> 
> --On 12. September 2006 04:28:12 -0700 yogeen
> honnavar <[EMAIL PROTECTED]> 
> wrote:
> 
> > >   Module
> Products.PluginIndexes.PathIndex.PathIndex,
> > line 124, in index_object
> > AttributeError: _length
> 
> 
> -> doc/FAQ.txt
> 
> -aj
> 
> -- 
> ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070
> Tübingen - Germany
> Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone
> +49 - 7071 - 793376
> E-Publishing, Python, Zope & Plone development,
> Consulting
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with upgrade from Zope 2.6.1 to Zope 2.9.4

2006-09-12 Thread Andreas Jung



--On 12. September 2006 04:28:12 -0700 yogeen honnavar <[EMAIL PROTECTED]> 
wrote:



>   Module Products.PluginIndexes.PathIndex.PathIndex,
line 124, in index_object
AttributeError: _length



-> doc/FAQ.txt

-aj

--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting


pgpr4JjVoaEGe.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )