Re: [Zope-DB] regarding zope
[EMAIL PROTECTED] wrote at 2006-7-6 10:16 +0530: > ... >I add python script to my project and make some changes >But those changes are not working. What is "your project"? What types of "python script" are you speaking of? There are at least 4 types of Python Scripts: * standard Python source files, imported as modules and packages * "Script (Python)": Python functions in persistent Zope objects * "FSPythonScript": similar to "Script (Python)" but stored on the file system * "ExternalMethod": persistent object reading in a function from a source file in an "Extensions" directory. If you change something, you should see the change -- at least after a restart. If you do not, then this means that actually a different object is used (and not the one you have changed). If you anwser the questions above, I may be able to give you some hints how you can find out which object is really used. -- Dieter ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
AW: [Zope-DB] regarding zope
If you rename your python script, and then add a new one with the changed content, Does this help? I remember we had once a problem with Zope 2.6, but it is long time since them - now using Zope 2.7/2.8 And we are using Filesystem Directory View and keep our scripts in the filesystem (CVS likes that) So the rules for updating may be different there Note that "has no effect" could also be caused on the client side as the browsers (user agens) usually do caching too, So you may get the same result again in spite of having changed scripts on the server side. Peter -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Donnerstag, 6. Juli 2006 06:47 An: [EMAIL PROTECTED] Cc: zope-db@zope.org Betreff: Re: [Zope-DB] regarding zope Hi All, Hi Dieter, Thank u for ur reply. I restarted zope somany times but there is no affect. I add python script to my project and make some changes But those changes are not working. Even if Comment some of those functions,they are working. I cleared cache using zope control panel. Tell me is there any thing else to make it work my project Its very urgent Thanks and Regards DNIS > [EMAIL PROTECTED] wrote at 2006-7-5 18:56 +0530: >>i am developing a project using Zope 2.7.6-final, python 2.3.5 on debian >>linux. >>Wheneever i make changes in python script or any thing regarding project. >>it is not get effected. > > Are you sure, your Zope is running in "debug mode"? > > Otherwise, a restart is necessary that Zope sees a change. > > > > -- > Dieter > > ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] regarding zope
Hi All, Hi Dieter, Thank u for ur reply. I restarted zope somany times but there is no affect. I add python script to my project and make some changes But those changes are not working. Even if Comment some of those functions,they are working. I cleared cache using zope control panel. Tell me is there any thing else to make it work my project Its very urgent Thanks and Regards DNIS > [EMAIL PROTECTED] wrote at 2006-7-5 18:56 +0530: >>i am developing a project using Zope 2.7.6-final, python 2.3.5 on debian >>linux. >>Wheneever i make changes in python script or any thing regarding project. >>it is not get effected. > > Are you sure, your Zope is running in "debug mode"? > > Otherwise, a restart is necessary that Zope sees a change. > > > > -- > Dieter > > ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] regarding zope
[EMAIL PROTECTED] wrote at 2006-7-5 18:56 +0530: >i am developing a project using Zope 2.7.6-final, python 2.3.5 on debian >linux. >Wheneever i make changes in python script or any thing regarding project. >it is not get effected. Are you sure, your Zope is running in "debug mode"? Otherwise, a restart is necessary that Zope sees a change. -- Dieter ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] regarding zope
--On 5. Juli 2006 18:56:23 +0530 [EMAIL PROTECTED] wrote: Hi all i am developing a project using Zope 2.7.6-final, python 2.3.5 on debian linux. Wheneever i make changes in python script or any thing regarding project. it is not get effected. What means "not get effected"? When you can scripts through the ZMI then the changes are directly effective. Caching issues? -aj P.S. you're on the wrong list. Please use zope@zope.org instead...no idea why you are using the DB list? pgpWvPEkKRvgj.pgp Description: PGP signature ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
[Zope-DB] regarding zope
Hi all i am developing a project using Zope 2.7.6-final, python 2.3.5 on debian linux. Wheneever i make changes in python script or any thing regarding project. it is not get effected. Tell me the solution for the above problem. Sendme it urgent Thanks and REgard DNIS ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] regarding zope database
"<-bhavana ->" <[EMAIL PROTECTED]> wrote at 2006-1-30 10:27 +0700: > ... >How to communicate with zope database? You use Zope (or scripts using the Zope codebase). >the documents that we post in Plone >have id, ya? There are lots of "id"s around. The "id" used in Plone is not a universal id, but unique only locally in the container. Therefore, you cannot use it to identify and fetch an object. Modern Plone versions (2.1.x) have documents based on AT. There have a universal unique id which can be resolved via the "uid_catalog" into the object. Someone else already recommended to read the "catalog" section of the Zope Book (online 2.7 edition). Follow this advice! All persitent objects already have a "persitent id". It is not used at application level (as it is meaningless there). The persistent id is the id used by the Zope database. When you know the peristent id of an object, you can load it from ZODB *BUT* it will behave very differently from how you are acoustomed to. That's because you are *NOT* working with raw objects in Zope/Plone but with acquisition wrappers. A ZODB load gives you instead the raw object, which, among other, does not have a location, nor an URL nor a parent -- Dieter ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
[Zope-DB] regarding zope database
hi all.. How to communicate with zope database? the documents that we post in Plone have id, ya? it is store in data.fs. how to extract those ids with query? Plz help on this regard. many thankx, bs ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db