Re: [Zope-dev] Two glaring omissions
On Thu, 16 Nov 2000 19:51:24 -0500, Tres Seaver [EMAIL PROTECTED] wrote: Toby Dickenson [EMAIL PROTECTED] wrote: On Tue, 14 Nov 2000 15:39:59 -0500, Shane Hathaway [EMAIL PROTECTED] wrote: 2. The ability to rename properties after instances of the classes have been created (and have the data in those fields preserved) This is also more difficult than it sounds. You'd have to either scan through the entire ZODB and modify class instances or associate properties with a magical, unchanging ID. The latter solution is dead wrong, but the first is actually kind of interesting. If there were a separate index for each object type in the ZODB, it would be possible. In fact, when ZODB is running from a relational database, there is indeed a way to do that. Hmmm... Or if your ZClass has a python base class, then a __setstate__ method could be added to do the same thing incrementally. Like all changes to a Python base class, this requires restarting the server. Correct in theory, but broken in practice: if you make your ZClass persistent (i.e., you leave checked the "Include standard Zope persistent object base classes?" checkbox on the "Add ZClass form), then Persistent will be the first base class in the list, and *your* '__setstate__' will never be called! Some more theory thats not backed up by any practical experience in this area: Would it be sufficent to create a base class that derives from Persistent and then uncheck the box? or does that checkbox get involved in some other magic? Toby Dickenson [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] Two glaring omissions
On Mon, 20 Nov 2000, Toby Dickenson wrote: On Thu, 16 Nov 2000 19:51:24 -0500, Tres Seaver [EMAIL PROTECTED] wrote: snip Correct in theory, but broken in practice: if you make your ZClass persistent (i.e., you leave checked the "Include standard Zope persistent object base classes?" checkbox on the "Add ZClass form), then Persistent will be the first base class in the list, and *your* '__setstate__' will never be called! Some more theory thats not backed up by any practical experience in this area: Would it be sufficent to create a base class that derives from Persistent and then uncheck the box? or does that checkbox get involved in some other magic? Actually, I was mistaken. I was spelunking through the ZClass code (.../lib/python/ZClasses/*.py) this weekend, working on my filesystem dumper; *all* ZClasses declare ZClasses.ZClass.PersistentClass as the first class in their base class list; this class derives only from ExtensionClass.Base, and not from Persistence.Persistent; I don't any longer know *why* my ZClasses' '__setstate__' would not be called! The 'zope_object' flag passed to 'manage_addZClass' causes OFS.SimpleItem.Item to be *appended* to the base class list (so it should have no effect on the '__setstate__' lookup). Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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] Conflict Errors
Hi, Whenever there's a lot of writes and the occasional read going on, we get the following error: 2000-11-19T16:03:44 INFO(0) Z2 CONFLICT Competing writes at, /aFolder/anObject Traceback (innermost last): File D:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 175, in publ ish File D:\Program Files\Zope\lib\python\Zope\__init__.py, line 235, in commit File D:\Program Files\Zope\lib\python\ZODB\Transaction.py, line 251, in commit File D:\Program Files\Zope\lib\python\ZODB\Connection.py, line 267, in commit ConflictError:y Can anyone shed any light on: -what this means -how bad it is -how we can make it stop happening cheers, Chris ___ 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] Zope Book Question: 'context' doesn't work in PythonMethods
On Mon, 20 Nov 2000, Shane Hathaway wrote: They are using an unreleased version of the Python Methods product. AFAIK the only thing holding up the release of the new Python Methods is the renaming. (I believe the version in question is available from the public CVS repository, as the Products/DC/PythonMethod module.) (Ken) [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] Conflict Errors
It happens when more than one thread tries to modify the same object in storage at the same time. It's Zope's equivalent of record-locking... It's normal. There's no corruption or anything, it's telling you that it avoided a write that might have caused problems. Zope tries three times to retry the write. If the object is still locked by another database connection after three writes, it propogates the exception up to the app level. That's the error you see. Careful application coding can reduce the chance of conflict errors. I've seen conflict errors pop up a lot when the catalog is used for whatever reason, especially with catalogaware. I bet it happens on a catalog write for you. I think this may have something to do with the current BTree implementation's propensity to write child-parent relationships all the way up and down the tree every time a node changes. I know your next questions are going to be "why?" and "how do I fix it?" and "why don't you fix it?". Chris Petrilli did some work on the catalog for 2.2.3 that might have a positive impact. The catalog is (I think) being actively worked on if you can nail it down some, it'd probably be helpful to figure out when the conflicterror occurs and pass it along to Chris in the collector. Besides that, I don't have any specific hints for you, besides waiting for the new BTree implementation. The answer to "when?": I have no idea. HTH, C - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 20, 2000 10:46 AM Subject: [Zope-dev] Conflict Errors Hi, Whenever there's a lot of writes and the occasional read going on, we get the following error: 2000-11-19T16:03:44 INFO(0) Z2 CONFLICT Competing writes at, /aFolder/anObject Traceback (innermost last): File D:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 175, in publ ish File D:\Program Files\Zope\lib\python\Zope\__init__.py, line 235, in commit File D:\Program Files\Zope\lib\python\ZODB\Transaction.py, line 251, in commit File D:\Program Files\Zope\lib\python\ZODB\Connection.py, line 267, in commit ConflictError:y Can anyone shed any light on: -what this means -how bad it is -how we can make it stop happening cheers, Chris ___ 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 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] A way to check what products are installed?
Quick hack: dtml-with "Control_Panel.Products" dtml-in "objectIds()" dtml-var sequence-item /dtml-in /dtml-with -- Andy McKay, Developer. ActiveState. - Original Message - From: "Morten W. Petersen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 19, 2000 9:36 PM Subject: [Zope-dev] A way to check what products are installed? Is there a clean way to do this (preferrably from both Python and DTML) ? Thanks. -Morten ___ 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 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] The Calendar Tag
Hi, How can give me more information about product "The Calendar Tag"? Is may be to use "The Calendar Tag" with MS-Outlook? cu Shahram ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] The Calendar Tag
On Mon, 20 Nov 2000, Kaeidinejad, Shahram wrote: How can give me more information about product "The Calendar Tag"? Is may be to use "The Calendar Tag" with MS-Outlook? The CalendarTag's purpose is to render calendars in html (or dtml ;-) documents. The webmaster only has to code the rendering of one cell (day), and the CalendarTag does the rest. Since MS-Outlook isn't a web browser I doubt you can use it, however in a day cell you can do whatever you want, so maybe you can send mails whenever someone sees this day, and receive the mails in Outlook. Maybe someone else has got a better idea. bye, and good luck. Jerome Alet ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Inserting LONGs with DCOracle
do something like: from DCOracle import * conn=Connect( "%s/%s@%s" % (user,pw,srv) ) h=conn.prepare("insert into table_x (x,y,z) values :p1, p2:, :p3") long_str = 'a'*8000 h.execute(1,2,long_str) assuming column z is declared as LONG hth peter. On Fri, 17 Nov 2000, Dorothea Kuehn wrote: :Hi, :If I try to insert an ca.5000 char string with DCOracle(1.3.2) into a LONG :column in Oracle (8i) I keep getting ORA-1704 'string literal too :long'-Errors. : :Ok, I read here :http://osi.oracle.com/~tkyte/Misc/LargeStrings.html :that it will work (a) with bind variables or (b) that I have to use :ODBC,OCI or alike. : :Questions: (a) Can I use bind variables with DCOracle? How? :(b) I thought DCOracle is using OCI, so why the heck this isn't working? :Any workarounds? : :thanks for help, :dekay : :___ :Zope maillist - [EMAIL PROTECTED] :http://lists.zope.org/mailman/listinfo/zope :** No cross posts or HTML encoding! ** :(Related lists - : http://lists.zope.org/mailman/listinfo/zope-announce : http://lists.zope.org/mailman/listinfo/zope-dev ) : -- _ peter sabaini, mailto: [EMAIL PROTECTED] - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] ZMailIn - alternatives?
Vince What specifically is the problem. As author of the ZMailIn Products prehaps I can help you solve your problem. -Andy Hi Zope, I tried to install ZMailIn but due to several x-envelope-to-header problems from different providers I think it'll not become a viable way of getting articles into the system. Is there any alternative to ZMailIn? Cheers, Vince ''' ô¿ô - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
FWIW, there used to be the replace product that worked great for me with Zope 2.1.6. Pity I upgraded ;) Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Re-2: [Zope] Search and replace
On 20 Nov 2000 [EMAIL PROTECTED] wrote: Hello Stefan, which replace product do you mean? Arno http://www.zope.org/Members/cguardia/replace but be warned, it does NOT work with Zope 2.2.x (breaks your Folder.py) Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] snappier zope.org/how to make sites as snappy
At 02:28 20.11.2000, you wrote: i've increased the cache numbers in Control_Panel. i've also increased the thread numbers. i've moved graphics to be served by apache. not the best idea to serve graphics by apache. The setup in our company seems nice to me and looks like this: squid in http-accelerated mode - see the various squid-related HowTo's (listening on port 80 and sending requests to port 81) - apache for ssl-functionality - configured as in Howto "Apache+ZServer+SSL" (listening on port 81 and on port 443 (ssl)) - ZServer (listening on port 8080) BTW: we do not use the FTP-Server feature of Zope, since it sometimes kills all Zope servers - tested on 2 different machines with different flavours of Linux :-( Don't forget to tell squid that it can cache your pages a while (we use 1hour=3600secs): standard_html_header should start with something like this: dtml-call "RESPONSE.setHeader('Expires', _.DateTime(_.DateTime().timeTime() + 3600).toZone('GMT').rfc822())" dtml-call "RESPONSE.setHeader('Last-Modified', bobobase_modification_time().toZone('GMT').rfc822())" html... (the dtml-source is from "Howto: Caching with mod_proxy", but Apache didn't work right for us: it stored broken images in its cache, so we use squid in front of apache as proxy, and apache for ssl-redirects.) the setup as described above works great for us: Zope (and PostgreSQL behind it) doesn't have much to do, since all graphics and html-outputs are stored in squid for 1 hour. (except with shift-reload, of course) Hope that helps, Martin PS: no line-breaks used here because of code samples. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] getitem problem
Matt wrote: dtml-var "_.getitem('staticProperties.container_metatype',1)" ^ Here's your problem. The string supplied to getitem() can't contain dots since it should be the id of a single object Given that you're passing a 1 as getitem's second attribute, the following is probably better code: dtml-var container_metatype or: dtml-with staticProperties dtml-var container_metatype /dtml-with cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] RE: ANNOUNCE Zope 2.2.3 release...
Brian Lloyd wrote: I think that is reasonable - in practice I have found that many people tend not to upgrade until something is declared "final", but your point is taken and a little feedback is better than none. I'll make Monday's release 2.2.4 b1. Please! No! Don't go down the same route as ZPatterns... How long before we end up with 2.2.4 a3 and 2.2.4 b1 with no-one really knowing what's going on? Taking what is effectively another point onto the version number doesn't really help. I can only think of 2.1.7 that was withdrawn, and as long as 2.2.4 comes along pretty swiftly, there shouldn't really be a problem, should there? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] get me in contact with others
Hi, In regard of the problem i stated last time(two persons can't access the page simultaneously with different login id's ). Is it possible to avoid Zope error which occurs instead give our message ?. If you know anybody who are using Gadfly database kindly put me in contact with them. Thanks, jacintha. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] problem creating properties via python methods
Try moving your manage_addDTMLDocument: dtml-with Test dtml-call "manage_addDTMLDocument('hello', REQUEST['new_name'])" dtml-with hello dtml-call "manage_addProperty( id='company_name', value=REQUEST['new_name'], type='text', REQUEST=REQUEST)" dtml-call "manage_addProperty( id='message', value=REQUEST['new_message'], type='text', REQUEST=REQUEST)" dtml-call "manage_addProperty( id='contact_phone', value=REQUEST['new_phone'], type='text', REQUEST=REQUEST)" /dtml-with /dtml-with dtml-call "RESPONSE.redirect('manage_main?update_menu=1')" cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
From: Martin Winkler [mailto:[EMAIL PROTECTED]] Another thought: If Zope would offer s/r, then a bunch of programmers would stick in their bad behaviour _not_ implementing dtml-var's, because "it's easy and effortless to replace everything from 'Copyright 2000' to 'Copyright 2001'". But think of it: Maybe this string is correct somewhere and SHOULD stay the same. So s/r is at least inefficient, because you'd have to check every file whether Zope should replace or not. try and do this correctly: dtml-in customers The customer is: dtml-var customer /dtml-in Search: "customer" Replace: "buyer" U ... can of worms Max M ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Web mail with POP3
If all you need is POP3 mail, you might want to check out http://www.zope.org/Members/dshaw/POPMailProduct. Doug Aleksander Salwa wrote: I need to build a web mail product with pop3 back-end. There is WorldPilot, but AFAIK it has no pop3 support. I'm thinking about taking web inteface/application design from WorldPilot and writing code to talk to pop3 server (probably based on POPMail product). Is this a good approach, or someone already has wrote something like this for Zope ? [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
On Sun, 19 Nov 2000 15:03:46 -0500 you wrote: Is there any way to do a 'search and replace' in a Zope folder (and it's subfolders)? Ha! Funny you'd mention this in this way. I've thought that a search and replace could be used on www.zope.org to help force Zope documenters to use "it's" correctly by replacing each occurrence with "it is" in all documents. Think it'd work? --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
Martin Winkler wrote: the object-oriented approach is great for not having to search/replace anymore. I really do not know any situation where s/r is still needed. The people who fill in content in our company have ZClass-Interfaces, and they only insert actual content. I understand the beauty of object oriented programming and that it also has some application for content and user interface elements. But what happens when the random, free form content that your users are inserting contains errors or has to be globally changed? Maybe the manufacturers of Spam send your company a lawyer's letter saying that use of the word 'Spam' on your website infringes on their trademark and your boss tells you to change every instance of 'Spam' to 'processed meat product' including all of your heavily trafficked Squishdot discussions, but not where Spam was used to refer to the Monty Python skit. What would you do in that situation? Would you have made the word 'Spam' a variable simply because it was used in more than one location? Regards Lee Hunter Hum Communications Ltd. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problems using M18
Hello, I just gived Mozilla M18 a try and noticed that Back Button of the browser doesn't work in zopüe management screen. Netscape 4.75 (and for sure other browsers) works well. Is this more a Mozilla or more a Zope problem. I expect the first but may be someone could write a more qualified bug report than me because I'm a bloody zope beginner and may be knowledge of some details might help the Mozilla developer. Kind regards Andreas. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] how-to list all the zclasses constructors ?
Hello, I need to have a simple list choice for adding ZClasses instances instead of using manage_workspace (because the users are really *end* users and speaks french). We are using Yihaw and extending it with news Zclasses. So we have a Zclass, a my_addForm in french , my_add methods and a my_factory. All works fine when i call that directly from DTML giving the method name in **hard coding**, and works fine when i use manage_workspace (it propose all my new factories in the Add list but in english with zope interface). What i want is getting the list of factories (automatically) in my personnalized page (instead of hard coding it). I guess it should be simple to generate the list of constructors and proposing the associated methods, but i just can't figure how to do that ;- Any tip and/or explanation would be welcome, and i'll summarize all that in an how-to (in complement of the Adding Zclasses instances programatically) Thanks in advance. -- Didier Georgieff DDAF du Bas-Rhin - Cellule SIG 2, rue des Mineurs 67070 Strasbourg Cedex tél : 03.88.25.20.33 - fax : 03.88.25.20.01 email : [EMAIL PROTECTED] SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr GéoWeb http://sertit10.u-strasbg.fr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Retrieving the week number from strftime()
Ok this is not the quickest of responses ;) I found an old thread about week numbers, where you suggested dividing the dayOfYear by 7 That only works if the year starts on the first day of week What surprised me is that the normal python method wasn't mentined anywhere in the thread I think simpler is: ZopeTime().strftime('%U') # Sunday as firtst day ZopeTime().strftime('%W') # Monday as firtst day Gives you current week as a two diggit number /Jacob Lundqvist torsdag 03 augusti 2000 04:21 skrev du: I suspect there is no 'standard' definition of week number. E.g. if the year begins on a Wednesday, is the following Monday part of week 1 or week 2? Once you decide, you can design a calculation starting with "some_date_object.dayOfYear()" which will give you the day number in the range 1 to 365 (or 366). The simplest algorithm would be to say days 1-7 are week 1, 8-14 are week 2, etc. In that case ((some_date_object.dayOfYear() - 1) / 7) + 1 (or in dtml) dtml-var "((some_date_object.dayOfYear() - 1) / 7) + 1" will compute a week number (in the range 1 to 53). If your weeks must begin on Sundays, or Mondays, or whatever, you'll have to first request the dow() from the first day of the relevant year, and do a calculation based on how far into the week the first calendar day of the year falls. If you want help with that, describe the algorithm you want to use. Good luck. Arjan Scherpenisse [EMAIL PROTECTED] writes: Hello, i want to retrieve the number of the week from a DateTime object. Is there any way to do this? I've looked through DateTime.py but i couldnt find anything usefull, is there some algorithm to get this? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
At 14:59 20.11.2000, Lee Hunter wrote: Maybe the manufacturers of Spam send your company a lawyer's letter saying that use of the word 'Spam' on your website infringes on their trademark [...] Now I got it. Well, nobody expected a lawyer's letter or the Spanish Inquisition... But then, the s/r is getting really complex, since you also wrote about possible Squishdot discussions with the "bad" word. Maybe this s/r feature could be implemented in ZCatalog, so it would be possible to search in each and every ZCatalog-aware thing that we have on our website (not just dtml-docs and methods). On the other hand situations like these should not occur too often, so I personally would prefer the XML-Export, favourite-editor-semi-manual-replace and XML-Import again. I just wanted to express that this feature may be too hard to program for the (IMHO) rare cases that we really need it, but IF there are developers who'd like to implement such a nice s/r possibility, I'd be glad to install it - just in case lawyers, the Spanish Inquisition or Santa Claus are knocking at my door complaining that "spam", "witch" or "christmas" is trademarked by them :-) Martin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problems using M18
Andreas Tille wrote: I just gived Mozilla M18 a try and noticed that Back Button of the browser doesn't work in zopüe management screen. Netscape 4.75 (and Actually, that seems to be a problem with M18 and Frames in general. Sometimes it works, sometimes it doesn't. I'm guessing this is already in Bugzilla somewhere . . . You'd best search there first. :) -CJ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] RE: ANNOUNCE Zope 2.2.3 release...
How long before we end up with 2.2.4 a3 and 2.2.4 b1 with no-one really knowing what's going on? Taking what is effectively another point onto the version number doesn't really help. I can only think of 2.1.7 that was withdrawn, and as long as 2.2.4 comes along pretty swiftly, there shouldn't really be a problem, should there? Well, some people perceive it to be problem (and I can't really blame them). What we _really_ need is some regression testing infrastructure. We have started taking some baby steps in that direction with the inclusion of PyUnit, but it will take some time and resources to get a meaningful amount of tests. Hopefully the recent Good Things happening here at DC will mean that the necessary resources will become available to make that happen. In the meantime, since Brian is a poor regression test rig, I plan to have a (generally very short - like a week) beta period for third-dot releases. One beta should usually do it, and it will allow at least for more coverage than I can easily contrive from my desktop as a sanity check. When the test infrastructure is more mature we could revisit this though. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Problems using M18
This is known bug 59387 with mozilla. It is related to the usage of frames. http://bugzilla.mozilla.org/show_bug.cgi?id=59387 Troy -Original Message- From: Andreas Tille [mailto:[EMAIL PROTECTED]] Sent: Monday, November 20, 2000 8:06 AM To: Zope user list Subject: [Zope] Problems using M18 Hello, I just gived Mozilla M18 a try and noticed that Back Button of the browser doesn't work in zopüe management screen. Netscape 4.75 (and for sure other browsers) works well. Is this more a Mozilla or more a Zope problem. I expect the first but may be someone could write a more qualified bug report than me because I'm a bloody zope beginner and may be knowledge of some details might help the Mozilla developer. Kind regards Andreas. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
Martin Winkler wrote I just wanted to express that this feature may be too hard to program for the (IMHO) rare cases that we really need it, but IF there I had understood that Python and Zope excelled at string manipulation. That's why I am surprised that it would be difficult to scan a folder full of documents to find a word and replace it with another (with the option of ignoring anything in pointed brackets). I'm not a programmer so I probably don't appreciate the complexities of the task, however in this case it seems like the object-oriented database is a hindrance rather than a help. If it was just a batch of html files I could search and replace through them with just about any piece of software on my desktop. I wouldn't know whether this is the sort of tool that is generally useful, but in my work I use search and replace all the time (if only to fix my endless confusion over 'its' and 'it's') Cheers Lee Hunter Hum Communications Ltd. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
Lee Hunter wrote: Martin Winkler wrote I just wanted to express that this feature may be too hard to program for the (IMHO) rare cases that we really need it, but IF there its not that hard to program, if you want just want to replace, previewing is a bit difficult, because your asking for a multi-doc preview (how?) ideally two external methods. one recurses through folders collect objects of a particular meta_type the second external method calls the first to get a collection of objects for a particular meta_type and performs string manipulations on the raw() representation of the method. kapil ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
I have been following this thread with mild amusement. Those of you who don't think that there is any need for a search and replace are being, at the least, disingenuous. Have you never needed to replace a dtml var that is on a hundred or more pages with another one, but replace it only on some of the pages??? The lack of a search and replace, a find that actually "finds" a string on a page (instead of just the page) and other standard editor features are the reasons why Zope is being phased out of this companies (15,000 person worldwide company, the worlds largest web hosting and fiber optic network) web tool set. Don't get me wrong, I think Zope is the greatest thing since sliced bread. But, if Zope is to become anything other than a bastion for open source zealots (myself included), a real editor is a necessity not a nicety! Zope had the opportunity to sweep this company ( it could have ended up on hundreds if not thousands of servers) but the lack of a professional interface doomed it. DR Lee Hunter wrote: Martin Winkler wrote I just wanted to express that this feature may be too hard to program for the (IMHO) rare cases that we really need it, but IF there I had understood that Python and Zope excelled at string manipulation. That's why I am surprised that it would be difficult to scan a folder full of documents to find a word and replace it with another (with the option of ignoring anything in pointed brackets). I'm not a programmer so I probably don't appreciate the complexities of the task, however in this case it seems like the object-oriented database is a hindrance rather than a help. If it was just a batch of html files I could search and replace through them with just about any piece of software on my desktop. I wouldn't know whether this is the sort of tool that is generally useful, but in my work I use search and replace all the time (if only to fix my endless confusion over 'its' and 'it's') Cheers Lee Hunter Hum Communications Ltd. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Image Maps
* CURTIS David [EMAIL PROTECTED] [001120 16:46]: I am looking for information on Image Maps using Zope. I know that you need to use a CGI script to get the results that you need. The search engine displays some products that seem similar, but not exactly. Is there a better way? I'd recommend doing imagemaps on the client side, and leave zope out of it. No CGIs, no page reloads to find out the target url. try http://www.december.com/html/demo/imagemap.html for an example. seb. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
Hi Robin, ZCVSMixin works with ZClasses. It's a little cumbersome at the moment due to the Container/Contained problem and others: http://dev.zope.org/Wikis/DevSite/Proposals/SynchronizationMechanismZCVSMixin But it does manage ZClass method and properties on the filesystem. You do need to keep your head screwed on right to use it successfully with ZClasses right now hopefully it will be more 'bullet proof' in the future. -steve "Robin" == Robin Becker [EMAIL PROTECTED] writes: Robin In article [EMAIL PROTECTED], Daniel Robin Rusch [EMAIL PROTECTED] writes I have been following this thread with mild amusement. Those of you who don't think that there is any need for a search and replace are being, at the least, disingenuous. Have you never needed to replace a dtml var that is on a hundred or more pages with another one, but replace it only on some of the pages??? The lack of a search and replace, a find that actually "finds" a string on a page (instead of just the page) and other standard editor features are the reasons why Zope is being phased out of this companies (15,000 person worldwide company, the worlds largest web hosting and fiber optic network) web tool set. Robin ... I also would like to be able to search dtml-method Robin code that I put under ZClasses in my products. I can now Robin after a bit of messiness with certain 'reserved' names (eg Robin filtered_meta_types) get out all of the code in my product Robin using ftp, but getting modified versions back is a Robin problem. A source export/import to filesystem would be Robin useful and allow all of the traditional tools to be used at Robin least. -- Robin Becker Robin ___ Zope Robin maillist - [EMAIL PROTECTED] Robin http://lists.zope.org/mailman/listinfo/zope ** No cross Robin posts or HTML encoding! ** (Related lists - Robin http://lists.zope.org/mailman/listinfo/zope-announce Robin http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
ideally two external methods. one recurses through folders collect objects of a particular meta_type the second external method calls the first to get a collection of objects for a particular meta_type and performs string manipulations on the raw() representation of the method. I think a better implementation would be to add a 'Replacable' interface, otherwise you have to assume too much about the internal representation of lots of different classes of object. --jfarr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FTP crashing zope (was: snappier zope.org/how to make sites as snappy)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Martin Winkler Sent: Monday, November 20, 2000 6:45 AM To: [EMAIL PROTECTED] Subject: Re: [Zope] snappier zope.org/how to make sites as snappy BTW: we do not use the FTP-Server feature of Zope, since it sometimes kills all Zope servers - tested on 2 different machines with different flavours of Linux :-( Someone suggested to me that when they used passive mode it would not crash, vs. using normal mode it would sometimes. I could have those reversed, but the bottom line was that they've been using one of the modes for some time without any problems, whereas the other mode would crash Zope "at random". Does that shed any light on fixing this serious problem? ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] jcNTUserFolder on 2.2.x
Is there an updated version or product similar to jcNTUserFolder (allowing NT authenitcation in Zope) that works in Zope 2.2.x? Or am I going to have to upgrade jcNTUserFolder? TIA. -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope / DCOracle / ZOracleDA / Oracle 7.3.3 crash/respawn problem
Zopatistas! ;) I am using the most recent versions of (Linux) DCOracle and ZOracleDA to connect my Zope (2.1.6) installation to a copy of Oracle 7.3.3 running on another (Solaris) machine. The Oracle database is rock solid, but I have been having a problem with Zope, one I need to fix. Basically, Zope is occasionally crashing when an SQL query is made. (with valid or invalid syntax.. it doesn't matter) This happens several times a day and makes the website unavailable for two or three minutes while Zope restarts. Obviously, this will not do for a production website. I have noticed that some other people have had this problem and posted to the list in the past. Please, if you know the solution to this..and have a moment, let me know what you did, or think I should do. Compilation tips, or a stable combination of ZOracleDA/DCOracle that I can use... Reliability is very important to this project. Thank you, Chris Beaumont [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How exactly do I restart zope?
NYNewMedia writes: How exactly do I restart zope? Under Unix, "./stop; ./start" in the Zope installation directory. Under Windows: "Shutdown" from Zope's Control Panel (to stop Zope) "start" (in Zope's installation directory) to start Zope. There is a way to start Zope at NT service. I am not an expert for this. Look at the upcoming Zope book (http://www.zope.org/members/michel/ZB) (or something similar). Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Permission problems...
Curtis Maloney writes: I really can't understand this... I am logged in as my normal Manager role user, editing away on my site. In the management section, no problems... I can edit, add and delete to my hearts content. However, when I try the normal view, one a certain page I get permission problems... It won't let me log in with _any_ users, even tho my permissions seem set correctly. The object in question is, in fact, standard_html_header, of all things. With the way the objects are set up, it's only rendering the same objects as from the previous page, with a little extra processing due to submitted form values. This is definitely not enough information. Either your permissions are strange (you ruled this out) or "standard_html_header" contains something strange that maybe triggers a Zope bug (2.1.6. contained such bug, when you e.g. used 'ZopeFind' or 'ZopeFindAndApply'). We may help you, if you post your "standard_html_header". Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] RE : [Zope] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML
Kelvin Cheong writes: dtml-in "category_method(id='1')" size=100 start=query_start id=dtml-var idseq=dtml-var seqvid=dtml-var vid where can i find out more about these properties, i.e. the seq...vid... and so on..? The argument to "dtml-in" is a sequence of objects. "dtml-in" iterates over the objects. In each iteration, "dtml-in" exports the current objects attributes into the namespace. Thus, "seq", "vid", ... are probably attributes of your objects. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] len() of unsized object error
Peter Bengtsson writes: If found this TypeError description in many places in the mailing list archive, but no solution to my sendmail problem. The problem was, that "dtml-sendmail" was incompatible with a debugging tool from Shane (I forgot its name, but the list archive will tell it to you). Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Question about security
Joaldo Junior writes: Does anyone can inform if is there any kind of function, which a common user can change your password by the same way a superuser can do in ACL_User? Look at the built-in Zope API reference: User object. The User object has methods to read and change the information associated with a user. These methods are (of cause) protected such that only users with high priviledges can execute them. You will need to set a proxy role for the DTML object that calls them, in order to allow less priviledged users to call them. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] how-to list all the zclasses constructors ?
Didier Georgieff writes: I guess it should be simple to generate the list of constructors and proposing the associated methods, but i just can't figure how to do that ;- I answer with a general remark: Whenever you see that the Zope management interface does something you are interested in, you can learn how it is done by looking at the DTML source that built the respective management page. In your case, this is "OFS/main.dtml": SELECT NAME=":method" ONCHANGE="location.href='dtml-URL1;/'+this.options[this.selectedIndex].value" dtml-in filtered_meta_types mapping sort=name OPTION value="dtml.url_quote-action;"dtml-name; /dtml-in /SELECT "filtered_meta_types" is a list of registered meta type objects. A meta type object has attributes "name", the meta type, and "action", the associated constructor. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Version Lock/save/discard Problem
Hi, I created a version in my zope root in which I've been working for some days. I created some objects on my root folder when working on my version which caused root to became locked. Now I want to save/commit my version. I go to the save/discard form and the save form post looks to work okay, i.e, I have a undo log of this commit and If I try to save again Zope tells me there is nothing else to save in the current version. But... when I try to delete my version I get a VersionLockError, and my root folder is still being locked. Same goes to Discard, i.e, apparentely zope do the save/discard but the locked files/folders continues there. I've tryed with superuser, and even on the Control Panel Version manage, with no luck. I'm using zope222. I'm using latest release of ZEO. I do a pack to my Data.fs on a daily basis. Anyone had this problem, any help? Thanx, Júlio Dinis Silva _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Permission problems...
On Tuesday 21 November 2000 10:06, Dieter Maurer wrote: Curtis Maloney writes: I really can't understand this... I am logged in as my normal Manager role user, editing away on my site. In the management section, no problems... I can edit, add and delete to my hearts content. However, when I try the normal view, one a certain page I get permission problems... It won't let me log in with _any_ users, even tho my permissions seem set correctly. The object in question is, in fact, standard_html_header, of all things. With the way the objects are set up, it's only rendering the same objects as from the previous page, with a little extra processing due to submitted form values. This is definitely not enough information. No, you're right.. it's not enough information Either your permissions are strange (you ruled this out) or "standard_html_header" contains something strange that maybe triggers a Zope bug (2.1.6. contained such bug, when you e.g. used 'ZopeFind' or 'ZopeFindAndApply'). As it turns out, I found the problem to be something wholy unrelated to standard_html_header. To be honest, I don't entirely understand the fault, but it's gone away now. Sorry for not posting a retraction to this question. We may help you, if you post your "standard_html_header". Dieter Curtis. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZClass/DTML Document transparency
Hi all, I have a folder (foo) which contains a set of DTML Documents, and instances of a ZClass. From another DTML document, I enumerate the contents of this folder, using a DTML-IN tag: dtml-in expr="bar.foo.objectValues()" sort="order" ... /dtml-in My problem is with ..., namely dealing with both DTML documents and ZClasses. In the case of DTML Documents, the following works fine: dtml-var sequence-item In the case of ZClasses, I have to use something like this: dtml-with sequence-item dtml-var index_html /dtml-with So I'm using this: dtml-if expr="_['sequence-var-meta_type'] == 'DTML Document'" dtml-var sequence-itemdtml-else dtml-with sequence-item dtml-var index_html /dtml-with/dtml-if But this is rather ugly, and it's the sort of thing one shouldn't have to do in an oo system. So, is there a better way? -Randy
[Zope] What is 'Experimental LoginManager support' in PTK?
In the 2nd step of creating a portal site, there's a 'Database' option list. One can choose 'Zope Database' or 'Experimental LoginManager support'. If I pick the latter, I'll end up with such error: Error Type: NameError Error Value: Invalid/nonexistent ZClass 'MembershipZ/LoginMember' Does the 'experimental' mean 'unfunctional'? How can I make it work? Dirksen __ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to create a run-time zclass instance?
How to create a run-time zclass instance, which stays in the memory, not in the zodb? __ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK won't let me add objects
Hi, I'm working on a site based on the PTK DemoPortal. PTK is a great product, so I was happy to see a new release announced recently and took the opportunity (yesterday) to update my PTK installation from CVS. Well, now the Zope management interface won't let me add anything inside the Portal except Document, Link, News Item, Portal File, Portal Folder, and Portal Image. I'm NOT talking about the Portal interface - just the plain old Zope "Available Objects" button. Was this done on purpose? If so, why on earth would you want to prevent anyone from adding so much as a humble DTML method?? We're not talking about the end-user interface here. For now I'm going to revert to an old version of PTK, bugfixes be damned. I can't get any work done in this version. -- .paul winkler.. slinkP arts: music, sound, illustration, design, etc. web page: http://www.slinkp.com A member of ARMS: http://www.reacharms.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PoPy
On Mon, 30 Oct 2000 10:43:16 +1030 (CST) you wrote: ImportError: ./PoPymodule.so: Undefined symbol "sem_wait" Take a look at the man page for sem_wait(). Take the library/libraries listed there and put them on the configure line for PoPy. In my case (Solaris 2.6), I added "--with-libs=-lposix4". It'd be nice if PoPy would do this on its own. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] User Class
Greetings. I'm a bit of a Zope and Python newbie, so please forgive me if I get some of the lingo wrong. I would like to build a user class in python where I can store information like "First Name", "Last Name" etc. I would also like to store the userid and password in the instances of this class, and authenticate against them. It seems as though I should inherit from the Zope user class, but I'm not sure exactly how to go about doing that. Thanks so much in advance! Keith R. Alperin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] security problems .. should be fairly easy...
I know I am posting quite a lot of questions to the list lately, sorry about that, it's just that I can save myself hours of trial-and-error coding when I get quick answers from list, so I hope you don't mind. It seems to be the fastest way to learn. I have a news page ZClass and a news article ZClass, both of which have several DTML methods. All methods apart from index_html should require a particular user role, "UAAdmin", to be held by the current user (thee mathods are all for editing anf manging the news page and articles). The index_html methods (which display the news article) should be available for anonymous access. I have been stuck with this for over a week now, I have tried all sort of combinations of permissions, defined permissions and user roles, but I can't figure it out and I can't find any examples in any of the Zope documentation about how to manage permissions for class methods. Does anyone know where I could find such documentation or examples if there are any? The whole thing's very confusing, but here's what I've worked out so far. Maybe someone could put me right and/or fill in the gaps? I think what I need to do is got the Define Permissions tab for each method, and for the View permission dropdown I should select View for the index_html method, and some other permission X for every other method. This other permission X should only be granted to the UAAdmin role. The question is, what is X to put in the dropdown, and how to assign it to UAAdmin. How would I go about creating a new permission, perhaps "Manage news pages", and how could I then assign that to UAAdmin? Would it then appear in the drop-down? Is this the right approach? How would I finish this off? Am I barking up the wrong tree? Any suggestions or advice would be most welcome. Thanks for your patience with newbies like me!! Alex == Alex Bowyer IT Contractor, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] tag for knowing how many have logged under the same URL (present time)
Hi, Kindly let me know how can we find out how many have logged (present time)into zope under the same URl.If there is an dtml-tag for this kindly give me that. bye, jacintha ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Javascript dtml tags
Hi, Is there a way to include dtml tags with a javascript ? If there is please let me know. Best Regards, Kini. __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )