[Zope-dev] Re: [Zope] Running Python Scripts via the Management Interface
on or about, Monday, February 03, 2003, we have reason to believe that Asad Habib wrote something along the lines of : > Hello. Does anyone know why the following script > stalls when I run it in Zope's Management Interface > using the 'Test' command? > context.manage_addProperty(propertyId, propertyValue, > propertyType) > All it does is add a property to a folder. The script > does function properly and doesn't stall when I access > it from a DTML method. However, it stalls when I run > it directly. Any help would be appreciated. Thanks. it most probably doesn't stall, it just doesn't return anything to the browser , so it has no response to display .. try something like this: context.manage_addProperty(propertyId, propertyValue, propertyType) return "done" :) -- Geir Bækholt[EMAIL PROTECTED] Web Application/HCI-designer Product Operations Funcom Oslo ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] CallProfiler?
Hello Leonardo, Tuesday, October 15, 2002, 2:51:26 AM, you wrote: LRA> I was looking for a recent version of CallProfiler. LRA> It's cannonical page on: LRA> http://www.zope.org/Members/richard/CallProfiler/ LRA> mentions that it's reported not to work in 2.5.x and that it'd be LRA> integrated into Zope 2.6, which makes me believe that the version LRA> available for download won't work with 2.6 either. LRA> What is the status of this wonderful product wrt Zope 2.6? I can give you no official info, as i was just as confused a few days ago, but i can tell about my own experience. Having read somewhere that CP was to be integrated into 2.6 i didn't bring the product files for it over to my 2.6-directory when upgrading from 2.4 to 2.6. This gave me a broken icon in the controlpanel that i could not get rid of, but otherwise everything was working. I could not find anything resembling CP though, so i copied the files over, restarted, and everything worked, just like before. Seems to me there is no CallProfiler integrated in 2.6 (but that might just be not noticing it...) , - it also seems like installing CP under 2.6 works just fine.. :) -- Geir Bækholt web-developer [EMAIL PROTECTED] funcom oslo | webdev-team ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] DateTime.rfc822() bug?
Hello Lennart, Friday, October 11, 2002, 2:00:03 PM, you wrote: LR> RFC 2822 (which is the currently valid one, if I understand correctly) LR> specifies the date format to have four digit zone specifications, ie LR> "GMT+0200", while DateTime.rfc822() happily returns "GMT+2". Not that this LR> seems to be any problem, I'm just looking for an answer if this is how it's LR> supposed to be? i can confirm that this is a bug in DateTime.rfc822(), and that rfc-conformant mailclients choke on it aswell.. i believe it has been reported to the lists before , and i believe i have also seen it in the collector.. (the collector seems to be down , but i found this request on google.. http://mail.python.org/pipermail/zope-collector-monitor/2002-May/000652.html ) Your concerns are valid. i usually solve it by use of a small script(python) somewhat resembling this : # params indate fmtstr = "%a, %d %b %Y %X +0200" return indate.strftime(fmtstr) -- Geir Bækholt [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Problems with Oracle DA and Dates
Hello Dario, Just noticed behaviour similar to this a couple of days ago , but haven't had the time to file a report on it.. - We managed to narrow it down a bit , tho' : In our installation ; Zope silently restarted , quite quickly , and almost unnoticeable to our editors. This was triggered either when we passed one of the oracle-date-objects returned by DCO2 to DateTime(), or when we believed them to be DateTime objects and tried to run DateTime methods on them... I was in a production environment , so i had to fix the errors before going to work on narrowing down the bug. Selecting your dates as strings with TO_CHAR(datefield) in your SQL will be a safeguard against the restarting/crashing/whatever_bad_things_might_happen , but will give you boring strings instead of date-objects.. -ok , it is a stopgap, but my Zope stopped restarting every 2 minutes... Hoop we can get this fixed before the final is released.. :-) Monday, October 01, 2001, 15:06:44, you wrote: DLK> (I apologise in advance for the crosspost, but I think this is a valid DLK> question on both the zope-db and zope-dev lists. If you disagree, flame DLK> away, and I'll never do it again. oh, btw: flame in private mail, please) DLK> Hello! DLK> We have run into a showstopper problem here where it seems (we're not sure DLK> yet) that there is a severe problem using dates returned from the Oracle DA DLK> adapter. Other possible culprits include LocalFS, Transparent Folder, DLK> Formulator and the source release of Zope 2.4.1. DLK> The problem is that Zope either dies, core dumps and dies, or slows down to DLK> a crawl. DLK> We are using the Zope 2.4.1 release, with Transparent folders and LocalFS, DLK> latest, and a sligthly modified Formulator. DLK> There are about 2-6 people working and developing in it during all hours of DLK> the day (24 hours). DLK> Unfortunately nothing shows up in any of the logs, so they are of little DLK> use; I don't even have a traceback so display. We *think* we found sometign DLK> pointing at LocalFS in one of the coredumps, but we are lowly non-unix DLK> programmers, and have no idea if this is accurate info or not. It could just DLK> be un-collected garabage memory. DLK> Is anybody noticing anything similar, or if you have any opinion on what DLK> might be going on, please reply; we are in DS mode here (we are having a DLK> prototype presentation during two weeks, starting tomorrow) and are feeling DLK> a bit desperate. DLK> Sincerely, DLK> /dario -- Geir Bækholt web-developer/zopatista [EMAIL PROTECTED] funcom oslo | webdev-team ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re[2]: [Zope-dev] ZCatalog and Umlaut Problems
on Thursday, May 18, 2000 mindlace wrote : [snip] m> ./start -L 'my_locale' m> Assuming you're using zope 2.1.4 or later. m> I did it with Portuguese (./start -L 'pt_PT'), and all funny portuguese m> characters (çêã etc.) catalog properly. You may need to reindex after m> restarting. m> ~mindlace is it possible to use multiple locales ?? I am currently developing a site in 4 languages (with 2 more to come) , and have experienced similar problems with the catalog.. -- Geir Bækholt web-developer/designer [EMAIL PROTECTED] http://www.funcom.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )