[Zope-dev] Problem with directories
Hi, I want to create folder everywhere. So, I've built a tree that display a part of a directory. In that directory, I want my guest to create folder as deep as they can build. but, I can't : I'm limited to create folder in the directory where I am. I know that I should use the dtml-with tag ; but I can't dynamically build chained dtml-with tag. If anybody could help me thaks in advance... ___ 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] A few words about revision history
[ I am Zope user, not Zope developer, I send this article first to zope users list but people advised me to discuss it on zope-dev ] The zope Undo mechanics is nice for clearing simple mistakes, but the screens filled with 'manage_edit by ...' does not provide too much information. What I would like is some high level website revision history. Below I discuss some ideas, please comment on them. Before details, main motivation: as the main zopesite manager (call me Stan ;-) ), I give my users permissions to edit parts of the website. But I would like to see their activities from the high level, with reports like 'at day such and such Johny the Spoiler performed change which he named "proofing our department pages" and this change touched the following objects: ...' (looks like info about saving a version enriched with info about objects saved). 1) I would like to disable the ability to edit anything outside some version. I guess that specifying some permissions in configuration would do, but before I spoil sth I would like to ask whether someone performed such a configuration and how was it defined? 2) Would be great, if attempt to edit outside of version prompted You are to edit this website outside any version. Choose to either join .dropdownlist of existingversions[JOIN] create and join new version of name: ...[CREATE] cancel edits[CANCEL] 3) Is it at all possible to check, whether some version is currently empty (no unsaved edits) or not - and if not, what is unsaved? 4) Is it possible (with current zope) to get changes history with manual edits grouped somehow (I'd prefer - instead of having 17 times 'manage_edit by tommy' - to see '17 manage_edit's by tommy') 5) CVS-like tagging mechanizm would be nice. Seems that version control is completely implemented, the only thing left is a method to add a comment at some places of database history - and to provide a method of browsing them. -- www.mk.maxi.pl | Systems built by humans are always subject to human Marcin.Kasperski | error. (Parnas) @softax.com.pl | @bigfoot.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 )
[Zope-dev] Re: MySQL Transaction Support
Good point. It still irks me to have two DA's though. It gets confusing enough with the three different DA's running around now, much less if one of them actually had two valid versions. What if we had two classes like you said, but then in the manage_addForm had a checkbox for Transactions enabled, which would determine which Class got instantiated? Any good reasons why that shouldn't work? Monty Andy Dustman wrote: On Tue, 1 Aug 2000, Monty Taylor wrote: A question would be, what should the commit/rollback mechanism decide to do when the transaction deals with tables of both types. It should raise ProgrammingError, "You're screwed". If you need transactional capabilities, then you just can't mix transactional and non-transactional tables in MySQL. This is also why I think there need to be two Zope DAs for MySQL: Non-transactional and transactional, the latter being a simple subclass of the former with TM support mixed-in. The choice of whether or not to be transactional should be made by the application designer; it's too complicated to make at run-time (i.e. for each query). Even if you can use the API to find the table type, you stil have to figure out what tables are used by the query, and that requires parsing SQL. -- andy dustman | programmer/analyst | comstar.net, inc. telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d "Therefore, sweet knights, if you may doubt your strength or courage, come no further, for death awaits you all, with nasty, big, pointy teeth!" ___ 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] MethodGeddon
Chris Withers wrote: Shane Hathaway wrote: After more pondering I decided to throw out the idea for typed arguments. I was trying to solve a difficult problem with a roundabout, and in the end more difficult solution. I thought that's what the following proposal was all about? :S http://dev.zope.org/Wikis/DevSite/Proposals/DTMLExpressionSyntax The idea being to have the form: dtml-TAGNAME ATTRIBUTE-FORMAT="VALUE" instead where FORMAT is in effect the type... ...or have I got that wrong? Hmm. No, that's not really related. Is it in the fishbowl under another name or should it be in the fishbowl? It would actually fall under the the "Current Projects" section. http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/MethodObjectInterface Hurm, have I duplicated that with this? http://dev.zope.org/Wikis/DevSite/Proposals/GenericMethodInterface If so, how do we squish the two together? Just make sure they both refer to each other for now. How about having a 'Method' base class for _all_ methods, as I suggested in my proposal, which would provide the calling interface as well as some standard 'Method' management tabs? That's the plan. In fact, there is a difference between "templates" and "methods", so the base class might be called "MethodOrTemplate". I like the idea of having a bindings tab and an argument tab. Why is that a bad idea? :-) It's not, really, but the current management interface is restrictive on the number of tabs you should use. Shane ___ 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] ZOracle LOB Questions
Is anyone working on fixing DCOracle? I'll have someone look into if no one else is, but I'd prefer to spend the energy elsewhere if it's already being addressed. (The LOB support would be nice for me as well.) "Matthew T. Kromer" wrote: Alexander Schad wrote: Alex, Oracle 8i broke DCOracle's support for LOBs; DCOracle primarily uses OCI 7 (Oracle 7) calls, and Oracle 8i enforces a restriction that OCI 8 objects cannot be used in the context of an OCI 7 statement. You can use Oracle 8.0 for this, the restriction isn't enforced until Oracle 8.1. Hello! thank you for your answer. but does that mean that i can only use LOBS with Oracle 8.0 ? i'm confused. i need to use LOBs. if i use oracle 8.1 can i use LOBS and if yes which Databse adapter do i need? If your database adapter is 8.0 you can probably use LOBs, if the adapter is 8.1 you probably can't. I never mix and match adatpters vs. databases, though, so your mileage my vary. By this I mean, you could use 8.0 libraries to access an 8.1 database via SQL*NET. I *think* the error is actually being raised at the library level, not the server itself. ___ 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] [Zope] App isolation
I'm fairly sure there's already a Zope COM interface, and I know Zope can do xml-rpc. And SOAP support is coming. So I would suggest building it as an XMLRPC or SOAP server, and then use the Zope client functionality already there to connect to it. I wouldn't do COM because I'm an Open Source bigot. Monty Jacques Exelrud wrote: Not sure if this list is the best place to put such question but here it is... I need to develop what would be a product if only Zope was the target. As it´s not I was thinking what could I do to not need to build such app twice: I came to 2 options both involving building a server of some kind and using Python to connect to this server. 1st Build the app as a COM server (the target OS is Windows) and using Python support build an interface to this COM server as a Zope product 2nd Build the app as a XMLRPC server and using Python support build an interface to this XMLRPC server The second options is better because I´m not attached to any platform but, as I said, that´s not an issue right now. Good options would be having a JVM running "inside" Zope so that jave objects could be accessed by it or SOAP Zope support beeing ready... Any sugestions on any of those or a 3rd option ? Thanks in advance, Jacques ___ 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] ZOracle LOB Questions
Monty Taylor wrote: Is anyone working on fixing DCOracle? I'll have someone look into if no one else is, but I'd prefer to spend the energy elsewhere if it's already being addressed. (The LOB support would be nice for me as well.) I've got a partial rewrite, but the LOB support hasn't gone in yet. Most of the functionality other than LOB support has gone in. When I tested retrieving a LOB this morning I got a nice core dump in Python after the fetch completed, and I haven't figured it out quite yet. ___ 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] App isolation
I´m waiting for Zope´s support to SOAP but while it´s not there I´m tetsing a COM object that will handle the SOAP communication and will be calling this component using win32com moudle with Python. In fact that´s what I´m testing right now but untill now this COM object is not building the right SOAP message and based on that it´s not working. Do you know when we are supposed to have SOAP support on Zope ? Jacques - Original Message - From: "Monty Taylor" [EMAIL PROTECTED] To: "Jacques Exelrud" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, August 01, 2000 2:33 PM Subject: Re: [Zope-dev] [Zope] App isolation I'm fairly sure there's already a Zope COM interface, and I know Zope can do xml-rpc. And SOAP support is coming. So I would suggest building it as an XMLRPC or SOAP server, and then use the Zope client functionality already there to connect to it. I wouldn't do COM because I'm an Open Source bigot. Monty ___ 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] App isolation
I´m waiting for Zope´s support to SOAP but while it´s not there I´m tetsing a COM object that will handle the SOAP communication and will be calling this component using win32com moudle with Python. In fact that´s what I´m testing right now but untill now this COM object is not building the right SOAP message and based on that it´s not working. Do you know when we are supposed to have SOAP support on Zope ? While it is something that we definitely want to see, SOAP support is currently not actively being worked on so I can't give any kind of timeframe. It is really a resource issue - the best way to give this priority is for those interested and motivated is to get together and start this as a project on dev.zope.org. I'll be happy to help out in any way I can as well. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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 )
Re: [Zope-dev] [Zope] App isolation
I'd second the vote for xml-rpc/SOAP. You probably want to take a look at Medusa for your xml-rpc server, it's a piece of the proverbial piss, (Welsh slang for "it's easy"). I verified Zope and Medusa some time back against Dave Winer's validation tests, and both came out well. Zope seems to be one of the more valid xml-rpc servers/clients. The results of the validation tests are available on, http://validator.xmlrpc.com. My machine is http://www.zweb.co.uk. It's been running for quite a while now, with no hiccups at all (at least on the xml-rpc front ;) ). If you need to know anything else I'm more than wiling to help if I can. Phil Harris [EMAIL PROTECTED] - Original Message - From: Monty Taylor [EMAIL PROTECTED] To: Jacques Exelrud [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, August 01, 2000 6:33 PM Subject: Re: [Zope-dev] [Zope] App isolation I'm fairly sure there's already a Zope COM interface, and I know Zope can do xml-rpc. And SOAP support is coming. So I would suggest building it as an XMLRPC or SOAP server, and then use the Zope client functionality already there to connect to it. I wouldn't do COM because I'm an Open Source bigot. Monty Jacques Exelrud wrote: Not sure if this list is the best place to put such question but here it is... I need to develop what would be a product if only Zope was the target. As it´s not I was thinking what could I do to not need to build such app twice: I came to 2 options both involving building a server of some kind and using Python to connect to this server. 1st Build the app as a COM server (the target OS is Windows) and using Python support build an interface to this COM server as a Zope product 2nd Build the app as a XMLRPC server and using Python support build an interface to this XMLRPC server The second options is better because I´m not attached to any platform but, as I said, that´s not an issue right now. Good options would be having a JVM running "inside" Zope so that jave objects could be accessed by it or SOAP Zope support beeing ready... Any sugestions on any of those or a 3rd option ? Thanks in advance, Jacques ___ 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-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] topics for products
ethan mindlace fremen wrote: The product page is now topic-ized. Please check your product to ensure that it's in the categories you want it to be in. A product can have more than one topic. Cool :-) The actual pages still aren't very legible though :( Can the top row for each product be in bold please? I'd prefer the lines below giving the description but I suspect that's just personal taste. An option to hide it would be cool though :-) cheers and great work, 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] How do I control iteration over XML elements?
hi Curtis Yaaay! It works :) Thanks a lot! I wouldn't have found "objectValues" on my own .. where'd you learn about that? I'm ploughing through docs and wiki's now, just don't know if they're the right ones. I also need to read more about Python .. Anyway, I messed about with your instructions a bit, and tried: dtml-var "text_content('member')" (which renders nothing), and: dtml-var "text_content" which renders: Python Method object at 13bead8 Dunno how soon I'd've navigated that maze on my own. The "text_content" I can understand -- putting it between "" means that it should be evaluated, so text_content is evaluated without parameters, and dtml-var is being asked to render the method itself. Doing "text_content('member')", text_content is replaced by the result of evaluating it on 'member' .. this works when it's fed the output of getElementsByTagName, but since I'm already "in" the members, there aren't any member elements to be had inside them -- only their text_contents. Well, that's as far as I can puzzle it out .. Now for another question (which I'm throwing to the group seperately too): How do I show all groups that a specific member is part of? In other words, if I have: teams team nameHam/name descWhite papers, brochures, case studies./desc memberEduan/member memberJacqui/member /team team nameGreen eggs/name descGreen papers, brochures, case studies./desc memberTracey/member memberJacqui/member /team /teams how do I get "Jacqui is member of the Ham and Green eggs teams." -- jean ___ 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] Querying XML in Zope
Hi group Here's a new thread for this question: In an XML Document, how do I show all teams that a specific member is part of? In other words, if I have: teams team nameHam/name descWhite papers, brochures, case studies./desc memberEduan/member memberJacqui/member /team team nameGreen eggs/name descGreen papers, brochures, case studies./desc memberTracey/member memberJacqui/member /team /teams how do I get: "Jacqui is member of the Ham and Green eggs teams." This code lists all the members nicely: dtml-in "teams[0].getElementsByTagName('team')" dtml-in "objectValues('member')" dtml-var text_contentbr /dtml-in /dtml-in But I'd like to make a table with all the members down the left (occuring once only, and alphabetized), and all the teams each one belongs to, to their right. Is this rocket science? Eduan belongs to Ham Jacqui belongs to Ham, Green eggs Tracey belongs to Green eggs -- jean ___ 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 do I control iteration over XML elements?
On Tue, 01 Aug 2000, Jean Jordaan wrote: hi Curtis Yaaay! It works :) Thanks a lot! I wouldn't have found "objectValues" on my own .. where'd you learn about that? I'm ploughing through docs and wiki's now, just don't know if they're the right ones. I also need to read more about Python .. The Zope Quick Reference. An indispensible resource, which you can find through the zope.com Documentation section. Anyway, I messed about with your instructions a bit, and tried: dtml-var "text_content('member')" (which renders nothing), and: dtml-var "text_content" which renders: Python Method object at 13bead8 Dunno how soon I'd've navigated that maze on my own. The "text_content" I can understand -- putting it between "" means that it should be evaluated, so text_content is evaluated without parameters, and dtml-var is being asked to render the method itself. Doing "text_content('member')", text_content is replaced by the result of evaluating it on 'member' .. this works when it's fed the output of getElementsByTagName, but since I'm already "in" the members, there aren't any member elements to be had inside them -- only their text_contents. Another option is getChildNodes() Well, that's as far as I can puzzle it out .. Now for another question (which I'm throwing to the group seperately too): How do I show all groups that a specific member is part of? In other words, if I have: teams team nameHam/name descWhite papers, brochures, case studies./desc memberEduan/member memberJacqui/member /team team nameGreen eggs/name descGreen papers, brochures, case studies./desc memberTracey/member memberJacqui/member /team /teams how do I get "Jacqui is member of the Ham and Green eggs teams." yuck dtml-var member_name is member of dtml-in "objectValues('team')" dtml-in "objectValues('member')" dtml-if "text_content() == member_name"dtml-var name, /dtml-if /dtml-in /dtml-in that's my best guess, but you _might_ run into a problem with 'name' Have a better one, 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] tree expand by date
Hallo, I've searched in the mailing archive about the question how to expand a particular branch but I didn't find anything. That's my problem: I'm building a newsboard and when you want put a new message on it, the correct day should be opened. Example- + June +July - August -16. I hope you've got an idea. ___ 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] Permissions question.
On Mon, 31 Jul 2000, Jeff K. Hoffman wrote: Hello, I am having a permissions problem, and am hoping someone on the list will see the error in my ways. I have a ZClass, called a FooManager, that inherits from ObjectManager. It is responsible for creating (and managing) Foo objects. In the FooManager ZClass, I created a DTMLMethod called 'addFoo', and a form called 'fooForm'. Following the "How to Create ZClass Instances Programmatically" How-To, I modified my 'Foo_add' constructor to avoid redirecting if the request contains a noRedir parameter. In my 'addFoo' method, I have: dtml-with "manage_addProduct['FooProduct']" dtml-call "Foo_add(_.None, _, noRedir=1)" /dtml-with and I set it's Proxy role to 'Manager'. Is it Zope 2.2.0 ? If so, Foo_add should also have proxy role 'Manager'. ololo ___ 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] tree plus/minus url
Howdy! I've been experimenting with trees for a while and discovered that almost all innocent first time clickers were clicking on the text _behind_ the plus and minus images instead on the images themselves. So I decided to make the text a link with the same url as the image has but I can't find the right variable. Where is that url stored? Can anybody help? Ragnar ___ 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] 2.2.0, LoginManager and ZPatterns
Bill Anderson wrote: Thinking aluod Perhaps the Product Release page can put 'development' in red, so that devel products are easier to spot? Heh, so there goes the whole product page red then ;-) 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] ZPatterns make problem part2
I installed the dev version of python which solved my first problem but when I do a make I get this zope@phonix:/usr/local/dc/zope/lib/python/Products/ZPatterns$ make gcc -fPIC -I../../ZODB -I../../../Components/ExtensionClass -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./DynPersist.c In file included from ./DynPersist.c:1: ../../ZODB/cPersistence.h:89: ExtensionClass.h: No such file or directory make: *** [DynPersist.o] Error 1 Am I missing something? / the point!? reading http://www.digicool.com/releases/ExtensionClass/ it says that ExtensionClass is part of Zope and I cant find any mention of this on zope.org Thanks Owen ___ 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] page properties (part II)
apologies for the delay with the site, to anyone who was expecting it, i had some "real life" issues to deal with :/ which, i have now managed to deal with for the time being, and got back to dear zope. i worked away at it all nite, and ended up with a handful of problems, which i am hoping someone will be able to solve ;) (1) following up from last time i thought it would be more functional if the user could define the pagename and a pagetopic (section) and press enter, when the user does this, it sends the info to a dtml document, which puts the page(pagename) into managed_mode, and i would also like to now set the pagetopic as a new property... page_topic atm, the code looks like this... -- dtml-with "_.getitem(pagename,0)" dtml-call "manage_changeProperties(managed_mode=1)" /dtml-with -- but, i have no idea how i would get the second pagetopic passed along, and set as a new property on whatever page, pagename is (2) sorting by two values i wa trying to sort through all the pages, and display the 10 most recently changed ones which have page_status set to approved. -- dtml-in "aq_parent.objectValues(spec='ZWiki Page')" size="10" sort="bobobase_modification_time" reverse dtml-if "page_status == 'approved'" a href="dtml.url_quote-id;" class="alt"dtml-var id/ap /dtml-if /dtml-in -- i came close with the above code, however, it sorts out the 10 most recent pages first, and then 'filters' and displays the ones which have approved status. whereas i want 10 approved pages :( (3) search how would i create a page that allowed people to search a host of pages by specific properties, e.g. page_status or page_name? - so, user selects property from a drop-down list and types in what he is searching for into a text field, and presses search. - perhaps even search by time? e.g. person says, only display pages created in the last [person enters value here] days - and of course, search by time when last edited. person enters start time, and end time, and all pages last edited within that time frame are shown - would it be possible for someone to search on two criteria? say page_name and time last changed? (4) these questions related to PTK (i am running the latest CVS version) - the /Members/membername section seems to be fucked ): going there directly tells me that the object cant be found. digging through the PTK-list, i found out that /Members/membername/index_html/index_html works, but that is one damned nuisance it works nicely on zope.org, so i am hoping that there is a workaround for it ;) - i would like to also limit what users can upload to 100kb. any way of doing this? (5) imo, this is the hardest of what i want to do in the root folder of the site, i have 3 "boxes" (box1, box2, box3 ;), these are all dtml documents. each of those boxes have a corresponding, simple dtml document: color1, color2, and color3 i also have a dtml document called featurepage, which looks like: -- trtd bgcolor=dtml-var color1 dtml-var box1 /td/tr trtd bgcolor=dtml-var color2 dtml-var box2 /td/tr trtd bgcolor=dtml-var color3 dtml-var box3 /td/tr -- now, what i would like to do is, when user signs up (this uses PTK's default system), featurepage is copied over to the user's directory /Members/username again, i notice that zope.org copies over a zwiki folder... so this must be possible. also, if possible, i would like to customise the user's index_html, which i dont seem to be able to do atm :/ anyways, once the featurepage is copied over, i would like to let the user do two things (1) tick which boxes they want to show (2) define which order they want the boxes they have chosen to appear... (3) define the different colors for the boxes that they have chosen letting a person do all this through a webpage "seems" to be possible, just dont know how :/ apologies in advance for such a long list of problems. i have spent many sleepless nites trying to work them all out. managed to solve half the problems, but the above are beyond me ): thanks in advance for any help -- best regards, tav ps, with PTK, is there any way to copy a certain file/fodler into the Members/username section of each member who has already registered? or does this have to be done *shudder* manually? pps, with the PTK, is there any way to change the user's roles, e.g. add Reviewer role to Member, without altering the password? thanks ___ 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-france
les utilisateur francais de zope sont cordialement invité à nous rejoindre sur le channel irc #zope-france (serveur irc.zope.net port 6667) Luc TONIN --Développeur Web--Multithématiqueshttp://www.multithematiques.comChaines thématiques sur câble et satellite Centre Jean Monet 03 82 24 00 42Longlaville +333 82 24 00 4254400 Longwy
[Zope] ZUBB on Zope 2.2 - bug?
Hi there, i think ive found a bug in the new ZUBB (0.5.0) on Zope 2.2. After replying on a topic, it isnt possible anymore to view that posting and its replies on it. It says: Error Type: AttributeError Error Value: 'None' object has no attribute 'created' And the traceback is: Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: 0003) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: index_html) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: index_html) File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: item_index_html(_.None, _)) (Info: _) File lt;stringgt;, line 0, in ? File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 163, in __call__ (Object: item_index_html) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: item_index_html) File /usr/lib/zope/lib/python/TreeDisplay/TreeTag.py, line 155, in render (Object: a tree tag) File /usr/lib/zope/lib/python/TreeDisplay/TreeTag.py, line 261, in tpRender (Object: 0003) File /usr/lib/zope/lib/python/TreeDisplay/TreeTag.py, line 347, in tpRenderTABLE (Object: 0003) AttributeError: (see above) I hope this is useful, cu, -- Arjan Scherpenisse [EMAIL PROTECTED] may the source be with you === http://www.gnu.org === ___ 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] ZPatterns make problem part2
Solved that one had to install ExtensionClass from the zope source. Owen Smith wrote: I installed the dev version of python which solved my first problem but when I do a make I get this zope@phonix:/usr/local/dc/zope/lib/python/Products/ZPatterns$ make gcc -fPIC -I../../ZODB -I../../../Components/ExtensionClass -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./DynPersist.c In file included from ./DynPersist.c:1: ../../ZODB/cPersistence.h:89: ExtensionClass.h: No such file or directory make: *** [DynPersist.o] Error 1 ___ 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: Stability probs on Solaris? (Was: [Zope] Trouble installing onSolaris (fwd)) Solaris (fwd))
I thought I'd forward (with Tone's consent) an exchange that happened off list. We've been having problems in Bristol with Zope 2.1.6 dying under Solaris 7. (Sorry - no hard info about this, no obvious pattern.) The consensus seems to be that things appear to better with Zope 2.2 - does anyone else's experience support this? Paul --- Begin Forwarded Message --- Date: Tue, 1 Aug 2000 09:49:22 +0100 From: Tony McDonald [EMAIL PROTECTED] Subject: Re: Stability probs on Solaris? (Was: [Zope] Trouble installing on Solaris (fwd)) Sender: Tony McDonald [EMAIL PROTECTED] To: Paul Browning [EMAIL PROTECTED], [EMAIL PROTECTED] Reply-To: Tony McDonald [EMAIL PROTECTED] Message-ID: v04220884b5ac3db62b7b@[128.240.198.13] At 7:07 am +0100 1/8/00, Paul Browning wrote: I know Tony McDonald in Newcastle has complained about how slow Zope is on a Sun Enterprise box up there (running 3 times as slow as on his desktop iMac as I recall ...) but I don't recall him reporting stability problems. I've copied this to Tone. It's weird - the python 'pystones' benchmark runs half as fast as my iMac, but Reportlab (an *excellent* PDF library in Python) runs like lightning on our Sun iron. Our servers are all pretty stable here now. We've upgraded a box to Solaris 8 and I've compiled (from src) Zope 2.2.0 on it and it's working fine. In fact, I'm using the INSTANCE_HOME, PYTHON_HOME environment variables to point to *one* installation of 2.2.0 and have 5-6 servers running from that. Very nice. After playing with Zope on NT for a while, I decided it was time to try it on Solaris. I have duly downloaded the file, followed the installation instructions for the precompiled binary version, but when I run ./install I get get the following error: --- --- Compiling python modules ld.so.1: /work3/cultivate-eu/Zope-2.1.6-solaris-2.6-sparc/bin/python: fatal: relocation error: file /work3/cultivate-eu/Zope-2.1.6-solaris-2.6-sparc/bin/python: symbol fseeko: referenced symbol not found Killed What I do is % python w_pcgi.py and % python wo_pcgi.py and this does seem to work - of course, this implies a working Pyton setup from src. I've never tried the ./install script (in fact, I don't think I've ever seen it!) I do know that the LD_LIBRARY_PATH env variable is critical if you're using shared libraries (eg MySQL, LDAP etc). My variable is % printenv LD_LIBRARY_PATH /usr/local/lib/:/usr/lib:/usr/local/ssl/lib:/usr/local/lib/mysql (note the mysql library path too...) HTH tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 --- End Forwarded Message --- -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: [EMAIL PROTECTED] URL: http://www.bris.ac.uk/ ___ 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] tracebacks
Hi, Can somebody explain me how you can use the given tracebacks to find the possible error? For example, I get the following error and I know what causes it, but I don't know where I must go to find the code-line where the error starts: I get the following error when I use a table in which a field is defined with a default string value. eg : MY_NAME CHAR(20) DEFAULT 'tom' MY_DATE TIMESTAMP DEFAULT '6/07/2000' MY_DATE TIMESTAMP DEFAULT 'NOW' --- Zope Error Zope has encountered an error while publishing this resource. Error Type: cPickle.PicklingError Error Value: Cannot pickle objects. --- !-- Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 235, in commit File /usr/local/zope/lib/python/ZODB/Transaction.py, line 251, in commit File /usr/local/zope/lib/python/ZODB/Connection.py, line 348, in commit (Info: (('Products.ZnolkSQLWizard.Wizard', 'ZnolkSQLWizard'), '\000\000\000\000\000\000\015\025', '')) cPickle.PicklingError: (see above) -- Thanks for any advice. Tom ___ 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] tracebacks
A) your SQL is wrong, you want a VARCHAR not a CHAR there. and i doubt 'NOW' is a valid value for a TIMESTAMP type in your DB. You'll be wanting a SQL function like Date(), not a string. Probably. Look in your DB docs. Not that I'm much of a SQL person - someone else will probably correct me. I'm using an Interbase database. You can use CHAR and VARCHAR. The last one is a variable char, while the first has a fixed length. Anyway, this was just an example out of my head to explain what I'm experiencing. 'NOW' can be used in Interbase as it will insert the current datetime when a value is not given for a record. (Although, I'm not sure it will work through Zope, I'm just curious :-) ). Anyway, '12/07/2000' should work. B) Now why you'd get a pickling error when you've got bad SQL i don't know - and 'cannot pickle objects' is a blantant lie. Surely that's what pickling's all about. MY_NAME VARCHAR(20) DEFAULT 'tom', gives the same error. And yes, it's strange that I get an error with a default literal value. Could it be that Zope handles the tom in 'tom' as a python expresion or something? Anyway you read the traceback from bottom to top. The error occured on line 348 of Connection.py, which threw an error in Transaction.py, blah blah, which threw an error in Publish.py, which caused Zope to exit the publisher and print the stack trace. Thanks Seb, this is what I wanted to know about the traceback. Tom. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Deprez Sent: 01 August 2000 12:41 To: [EMAIL PROTECTED] Subject: [Zope] tracebacks Hi, Can somebody explain me how you can use the given tracebacks to find the possible error? For example, I get the following error and I know what causes it, but I don't know where I must go to find the code-line where the error starts: I get the following error when I use a table in which a field is defined with a default string value. eg : MY_NAME CHAR(20) DEFAULT 'tom' MY_DATE TIMESTAMP DEFAULT '6/07/2000' MY_DATE TIMESTAMP DEFAULT 'NOW' --- Zope Error Zope has encountered an error while publishing this resource. Error Type: cPickle.PicklingError Error Value: Cannot pickle objects. --- !-- Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 235, in commit File /usr/local/zope/lib/python/ZODB/Transaction.py, line 251, in commit File /usr/local/zope/lib/python/ZODB/Connection.py, line 348, in commit (Info: (('Products.ZnolkSQLWizard.Wizard', 'ZnolkSQLWizard'), '\000\000\000\000\000\000\015\025', '')) cPickle.PicklingError: (see above) -- Thanks for any advice. Tom ___ 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] Newbe external method question
"Gaspard, Bradley S" wrote: I want to write an external method that first determines all of the objects in a folder that posses a certain property. I know how to find the object ids but once I do that how do I then determine which contain the property I am searching for?? def myfilter(folder,propertyname): return filter(lambda x: x.hasProperty(propertyname),folder.objectValues()) This wil return a python list of the objects that have the property you are looking for... HTH, 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] tracebacks
A) your SQL is wrong, you want a VARCHAR not a CHAR there. and i doubt 'NOW' is a valid value for a TIMESTAMP type in your DB. You'll be wanting a SQL function like Date(), not a string. Probably. Look in your DB docs. Not that I'm much of a SQL person - someone else will probably correct me. B) Now why you'd get a pickling error when you've got bad SQL i don't know - and 'cannot pickle objects' is a blantant lie. Surely that's what pickling's all about. Anyway you read the traceback from bottom to top. The error occured on line 348 of Connection.py, which threw an error in Transaction.py, blah blah, which threw an error in Publish.py, which caused Zope to exit the publisher and print the stack trace. seb. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Deprez Sent: 01 August 2000 12:41 To: [EMAIL PROTECTED] Subject: [Zope] tracebacks Hi, Can somebody explain me how you can use the given tracebacks to find the possible error? For example, I get the following error and I know what causes it, but I don't know where I must go to find the code-line where the error starts: I get the following error when I use a table in which a field is defined with a default string value. eg : MY_NAME CHAR(20) DEFAULT 'tom' MY_DATE TIMESTAMP DEFAULT '6/07/2000' MY_DATE TIMESTAMP DEFAULT 'NOW' --- Zope Error Zope has encountered an error while publishing this resource. Error Type: cPickle.PicklingError Error Value: Cannot pickle objects. --- !-- Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 235, in commit File /usr/local/zope/lib/python/ZODB/Transaction.py, line 251, in commit File /usr/local/zope/lib/python/ZODB/Connection.py, line 348, in commit (Info: (('Products.ZnolkSQLWizard.Wizard', 'ZnolkSQLWizard'), '\000\000\000\000\000\000\015\025', '')) cPickle.PicklingError: (see above) -- Thanks for any advice. Tom ___ 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] From a Folder to a Product
"R. David Murray" wrote: If you put everthing at the top level except the DB connection, and put the appropriate one of those in each user's folder, I should think they could access the report via acquisition. You mean, put all sql-queries, dtml-docs and dtml-methods spread in the root folder of the zope? I'm trying to maintain the root uncluttered ("every thing in it's place, every place with it's thing"), and I'm thinking this will do the oposite, but you give me an idea: / + reports + files (sql queries, reports/forms, and default sql-conn) + customer1 | + sql connection (only) + customer2 | + sql connection (only) (...) Have anyone a better one idea/suggestion? Of course, making things like that, I lose versioning (I think), but I think I can survive without it... []s -- César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html ___ 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] Ann: Free Zope Hosting Available Again
New Information Paradigms Ltd is happy to announce that their Free Zope Hosting Option is once again available! Furthermore, the price of the Professional Zope Hosting Option has been halved to £100 per month while still providing the same high quality service. (£100 is roughly equal to $150 or 160 Euros) NIP's hosting options are briefly described below, but please see http://www.nipltd.net for full details. - Free Zope Hosting This hosting option provides an opportunity to explore Zope and evaluate it in a reliable way. We also hope that people within the Zope community can publicly host useful Zope applications without any financial burden. - Professional Zope Hosting If you have a commercial Zope application and need somewhere secure and reliable to host it, then this is the option for you. It is based around an instance of Zope and a relational database for each customer with secure access allowing a high degree of customisation. - Enterprise Zope Hosting This option provides a totally custom combination of hardware, software and consulting that you will need if you intend to use Zope to provide an enterprise wide solution. For more information see http://www.nipltd.net/ or email us at [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] [Zope]login manager error
on zope startup I get this zope@phonix:/usr/local/dc/zope$ -- 2000-08-01T13:39:45 ERROR(200) Zope Couldn't import Products.LoginManager Traceback (innermost last): File /usr/local/dc/zope/lib/python/OFS/Application.py, line 396, in import_products (Object: string) File /usr/local/dc/zope/lib/python/Products/LoginManager/__init__.py, line 1, in ? File /usr/local/dc/zope/lib/python/Products/LoginManager/LoginManager.py, line 9, in ? ImportError: cannot import name SheetProviderContainer help! Thanks Owen ___ 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] Month number as string as variable
Dear All. What I want to do is display this months Poll. I have created three Polls ( from the Poll Product ), named month_06, month_07, month_08. I understand that I will have to use the getitem() function to "show" the Poll itself, but I don't know how to create the string "month_0X" dtml-var "ZopeTime()" fmt="%m" ...returns (today) '08' Good! dtml-let monthnr="ZopeTime()" dtml-var monthnr fmt="%m" ...also returns (today) '08' Good! /dtml-let But I don't want to use the fmt when I display it. I'd like to have something like this: dtml-let monthnr=("ZopeTime()" fmt="%m")* this is where the problem lies. dtml-let monthPoll="'month_'+monthnr" dtml-var "_.getitem(monthPoll)" /dtml-let But this obviously, is bad syntax. (I have tried [] squared brackets as well) Best Regards, Peter ___ 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] form to a email in a correct presentation ?
Thank you a lot for your help, it's very kind of you. Now with your idea, I get the date separetely but I need to get the first date with 00-09-10 and the second date as the same 00-09-17 and the next as the same and always like that... Can you help me to correct this ??? Thank you very much, Best regards, Vincent. This is my actual code with your idea : htmlhead/headbody dtml-sendmail mailhost="MailHost" To:[EMAIL PROTECTED] To:[EMAIL PROTECTED] From:form Subject: Disponibilités de l'arbitre dtml-var schaan Les disponibilités de l'arbitre : dtml-var schaan dtml-var sch_club dtml-var sch_email dtml-var sch_phone dtml-in dispo dtml-var sequence-item dtml-var coachjoueur dtml-var heurelieu /dtml-in /dtml-sendmail dtml-call "RESPONSE.redirect('index_html')" /body/html And this is what I get : Les disponibilités de l'arbitre : John Bar (dtml-var schaan) Paris-club (dtml-var club) [EMAIL PROTECTED] (dtml-var sch_email) 01 02 55 32 38 (dtml-var sch_phone) 00-09-10 ['', '', '', '', '', '', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '', '', ''] 00-09-17 ['', '', '', '', '', '', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '', '', ''] ___ 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] Month number as string as variable
Peter, Try this bit of mojo here: dtml-let monthnr="_.DateTime().mm()" dtml-let monthPoll="'month_'+monthnr" dtml-var monthPoll /dtml-let /dtml-let --Aaron ___ 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] page properties (part II)
apologies if i overwhelmed people with the issues i was having. i should have probably dealt it out in smaller chunks. but, if anyone can help out with even just 1 of the 5 problems below, then i would very much appreciate it. heartful of thanks in advance. ;) -- best regards, tav - Original Message - From: "tav" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 01, 2000 11:10 AM Subject: [Zope] page properties (part II) apologies for the delay with the site, to anyone who was expecting it, i had some "real life" issues to deal with :/ which, i have now managed to deal with for the time being, and got back to dear zope. i worked away at it all nite, and ended up with a handful of problems, which i am hoping someone will be able to solve ;) (1) following up from last time i thought it would be more functional if the user could define the pagename and a pagetopic (section) and press enter, when the user does this, it sends the info to a dtml document, which puts the page(pagename) into managed_mode, and i would also like to now set the pagetopic as a new property... page_topic atm, the code looks like this... -- dtml-with "_.getitem(pagename,0)" dtml-call "manage_changeProperties(managed_mode=1)" /dtml-with -- but, i have no idea how i would get the second pagetopic passed along, and set as a new property on whatever page, pagename is (2) sorting by two values i wa trying to sort through all the pages, and display the 10 most recently changed ones which have page_status set to approved. -- dtml-in "aq_parent.objectValues(spec='ZWiki Page')" size="10" sort="bobobase_modification_time" reverse dtml-if "page_status == 'approved'" a href="dtml.url_quote-id;" class="alt"dtml-var id/ap /dtml-if /dtml-in -- i came close with the above code, however, it sorts out the 10 most recent pages first, and then 'filters' and displays the ones which have approved status. whereas i want 10 approved pages :( (3) search how would i create a page that allowed people to search a host of pages by specific properties, e.g. page_status or page_name? - so, user selects property from a drop-down list and types in what he is searching for into a text field, and presses search. - perhaps even search by time? e.g. person says, only display pages created in the last [person enters value here] days - and of course, search by time when last edited. person enters start time, and end time, and all pages last edited within that time frame are shown - would it be possible for someone to search on two criteria? say page_name and time last changed? (4) these questions related to PTK (i am running the latest CVS version) - the /Members/membername section seems to be fucked ): going there directly tells me that the object cant be found. digging through the PTK-list, i found out that /Members/membername/index_html/index_html works, but that is one damned nuisance it works nicely on zope.org, so i am hoping that there is a workaround for it ;) - i would like to also limit what users can upload to 100kb. any way of doing this? (5) imo, this is the hardest of what i want to do in the root folder of the site, i have 3 "boxes" (box1, box2, box3 ;), these are all dtml documents. each of those boxes have a corresponding, simple dtml document: color1, color2, and color3 i also have a dtml document called featurepage, which looks like: -- trtd bgcolor=dtml-var color1 dtml-var box1 /td/tr trtd bgcolor=dtml-var color2 dtml-var box2 /td/tr trtd bgcolor=dtml-var color3 dtml-var box3 /td/tr -- now, what i would like to do is, when user signs up (this uses PTK's default system), featurepage is copied over to the user's directory /Members/username again, i notice that zope.org copies over a zwiki folder... so this must be possible. also, if possible, i would like to customise the user's index_html, which i dont seem to be able to do atm :/ anyways, once the featurepage is copied over, i would like to let the user do two things (1) tick which boxes they want to show (2) define which order they want the boxes they have chosen to appear... (3) define the different colors for the boxes that they have chosen letting a person do all this through a webpage "seems" to be possible, just dont know how :/ apologies in advance for such a long list of problems. i have spent many sleepless nites trying to work them all out. managed to solve half the problems, but the above are beyond me ): thanks in advance for any help -- best regards, tav ps, with PTK, is there any way to copy a certain file/fodler into the Members/username section of each member who has already registered? or does this have to be done *shudder* manually? pps, with the PTK, is there any way to change the user's roles, e.g. add Reviewer role to Member, without altering the password? thanks
[Zope] dtml-in question
I have a bunch of zClass instances and I want to display only the ones that match all three criterion (approved=1, goLiveDate=ZopeTime(), expired=0). I'm not exactly sure how to do this. I have tried dtml-if statements inside the dtml-in/dtml-in statements but the "in", even though it does not show the files that don't match, still counts all of them which messes up the next and previous. How do I write my code to correctly show and count only the matching instances? I have searched both the zope.org site and the eGroups list for the answer and if it is there I can't find it :-( Thanks!! Jamey Here is the code. dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate" reverse size="5" start="batch_start" next p a href="dtml-URL;dtml-sequence-query;batch_start=dtml-next-sequence-start-n umber;" Next dtml-next-sequence-size; older Releases /a /dtml-in dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate" reverse size="5" start="batch_start" dtml-if "goLiveDate = ZopeTime" pba href="dtml-var "id"/release.html" dtml-pr_title; /a/b - dtml-var goLiveDate fmt="%m/%d/%Y"br font size="2"dtml-summary;/font /p /dtml-if /dtml-in dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate" reverse size="5" start="batch_start" previous p a href="dtml-URL;dtml-sequence-query;batch_start=dtml-previous-sequence-sta rt-number;" Next dtml-previous-sequence-size; more recent Releases /a /dtml-in ___ 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] ZUBB / ZDiscussions Users or Examples
Hey Bill, You da man. that worked like a charm. I am going to fix a few other little 'features' (bugs) release a another version. I have been testing speed and scalability and I have a board up and running with over 800 messages and it seems to be working great. Thanks, J From: Bill Anderson [EMAIL PROTECTED] Date: Mon, 31 Jul 2000 21:35:30 -0600 To: "J. Atwood" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] ZUBB / ZDiscussions Users or Examples "J. Atwood" wrote: I have started a page (http://www.zope.org/Members/BwanaZulia/ZUBB/EXAMPLES) to list sites that are building / using ZUBB or ZDiscussions. I would love if you are using it to send me a link and you permission to add you to the list. I will also add you to a mailing list to let you know what the future looks like it. Umm, not using it quite yet, but ... I have worked arounf the keyword error in ZUBB's regenerate methods method. In the method, delete the 'this()' line. Works for me, YMMV. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] dtml-in question
Hi I had the same problem and found out there is no way yet of making dtml-in with multiple conditions. Instead I had to do dtml-if's and make my own counter and previous/next attributes to handle the batches. Peter Webmaster skrev: I have a bunch of zClass instances and I want to display only the ones that match all three criterion (approved=1, goLiveDate=ZopeTime(), expired=0). I'm not exactly sure how to do this. I have tried dtml-if statements inside the dtml-in/dtml-in statements but the "in", even though it does not show the files that don't match, still counts all of them which messes up the next and previous. How do I write my code to correctly show and count only the matching instances? I have searched both the zope.org site and the eGroups list for the answer and if it is there I can't find it :-( Thanks!! Jamey Here is the code. dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate" reverse size="5" start="batch_start" next p a href="dtml-URL;dtml-sequence-query;batch_start=dtml-next-sequence-start-n umber;" Next dtml-next-sequence-size; older Releases /a /dtml-in dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate" reverse size="5" start="batch_start" dtml-if "goLiveDate = ZopeTime" pba href="dtml-var "id"/release.html" dtml-pr_title; /a/b - dtml-var goLiveDate fmt="%m/%d/%Y"br font size="2"dtml-summary;/font /p /dtml-if /dtml-in dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate" reverse size="5" start="batch_start" previous p a href="dtml-URL;dtml-sequence-query;batch_start=dtml-previous-sequence-sta rt-number;" Next dtml-previous-sequence-size; more recent Releases /a /dtml-in ___ 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 )
[Zope] Substracting value from variable?
Hi all, Is there a way to have a ZSQL Method select the four highest values from a list of values in a database? Example: select distinct year from table returns the following results 1975 1980 1985 1990 1995 2000 from which I want to select the latest four years: 1985 1990 1995 2000 Possible? Can't seem to find anything in the docs :( Thnx, Jonathan ___ 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] SiteAccess and Virtual Hosting
HI, i'm implementing virtual hosting using apache + siteaccess + zope but i have a few problems that i try to solve but it is consuming me much time so i ask to you because i'am in a bottleneck. Hi follow the instruction in the "Apache Not Zope.cgi HOWTO" that explains how to use zope behind apache without the need for a cgi, however two things don't work as i want: * The Path * The Undo * The ZNavigator The first i fix using apache redirect rules as folowing (in this example the directory is named "Incorbank" under the root directory): Redirect /Incorbank http://www.incorbank.com/Zope So it works fine, i use partial zopification using http://www.incorbank.com/Zope to http://www.incorbank.com:9673/Incorbank The Undo don't work as expected because any user in this site (http://www.incorbank.com/Zope) can undo changes made in another directory outside Incorbank :(, so bad !!! The ZNavigator don't work too. I folow the instructions in the zope-znavigator.deb debian package but i can not fix that using siteaccess rules, so currently i'm tired, so if any one can help or can send me a working configuration i would be glad to get this. Thanks to all, Nestor A. Diaz Ingeniero de Desarrollo Engendro - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.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] Select highest four from results?
Posted with the wrong subject. Here we go again: Hi all, Is there a way to have a ZSQL Method select the four highest values from a list of values in a database? Example: select distinct year from table returns the following results 1975 1980 1985 1990 1995 2000 from which I want to select the latest four years: 1985 1990 1995 2000 Possible? Can't seem to find anything in the docs :( Thnx, Jonathan ___ 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] Permissions question.
On Tue, 1 Aug 2000, Aleksander Salwa wrote: Is it Zope 2.2.0 ? If so, Foo_add should also have proxy role 'Manager'. I arrived at this on my own about an hour after I posted the message to the list. I wasn't sure if this was the "correct" way to do it, so I decided to wait and see what others suggested. I'll take this as confirmation. :-) ololo Thanks, --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.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] Help: Confera product broken.
hello, Probably something stupid: under zope2.2.0 I can not install confera 1.2, the product is broken. Error is: Confera Import Traceback Traceback (innermost last): File "/var/zope/Zope-2.2.0-src/lib/python/OFS/Application.py", line 396, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/var/zope/Zope-2.2.0-src/lib/python/Products/Confera/__init__.py", line 92, in ? import Confera, FileObject File "lib/python/Products/Confera/Confera.py", line 95, in ? from SearchIndex.TextIndex import TextIndex File "/var/zope/Zope-2.2.0-src/lib/python/SearchIndex/TextIndex.py", line 217, in ? from Lexicon import Lexicon, query, stop_word_dict ImportError: cannot import name query What is the solution?? Thanks Gilles ___ 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] Substracting value from variable?
Jonathan [EMAIL PROTECTED] wrote: Hi all, Is there a way to have a ZSQL Method select the four highest values from a list of values in a database? Example: select distinct year from table returns the following results 1975 1980 1985 1990 1995 2000 from which I want to select the latest four years: 1985 1990 1995 2000 Possible? Can't seem to find anything in the docs :( This can be achieved with plain SQL, just alter your query like this: select distinct year from table order by year limit 4 that will do the trick. Maybe you need 'order by year desc' instead of just 'order by year' to get the four highest values not the for lowest, but i'm not sure, cheers, -- Arjan Scherpenisse [EMAIL PROTECTED] may the source be with you === http://www.gnu.org === ___ 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] Help: Confera product broken.
Gilles Lavaux wrote: Probably something stupid: under zope2.2.0 I can not install confera 1.2, the product is broken. ImportError: cannot import name query Hi Gilles :-) Confera is an old and unmaintained product that won't work under Zope 2.2 I would suggest Squishdot, which is the newer and more maintained spinnoff of Confera, but that too doesn't work with 2.2 right now :( sorry, 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] [Zope]login manager error
solved it by using LoginManager-0_8_7a1.tgz Owen Smith wrote: on zope startup I get this zope@phonix:/usr/local/dc/zope$ -- 2000-08-01T13:39:45 ERROR(200) Zope Couldn't import Products.LoginManager Traceback (innermost last): File /usr/local/dc/zope/lib/python/OFS/Application.py, line 396, in import_products (Object: string) File /usr/local/dc/zope/lib/python/Products/LoginManager/__init__.py, line 1, in ? File /usr/local/dc/zope/lib/python/Products/LoginManager/LoginManager.py, line 9, in ? ImportError: cannot import name SheetProviderContainer ___ 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] Pasting renderable
With Zope 2.2.0 and the Renderable Base ZClass (0.2), pasting of renderable objects appears to be broken. Does anyone have a workaround for this, or know how I can fix it? For reference, here's the traceback: Traceback (innermost last): File /usr/local/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Renderable) File /usr/local/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_pasteObjects) File /usr/local/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_pasteObjects) File /usr/local/Zope-2.2.0-src/lib/python/OFS/CopySupport.py, line 203, in manage_pasteObjects (Object: Renderable) File /usr/local/Zope-2.2.0-src/lib/python/OFS/CopySupport.py, line 402, in _verifyObjectPaste (Object: Renderable) Copy Error: (see above) -- /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] Help: Confera product broken.
-Wiadomoæ oryginalna- Od: Gilles Lavaux [EMAIL PROTECTED] Do: [EMAIL PROTECTED] [EMAIL PROTECTED] Data: 1 sierpnia 2000 18:03 Temat: [Zope] Help: Confera product broken. hello, Probably something stupid: under zope2.2.0 I can not install confera 1.2, the product is broken. Error is: [...] File "/var/zope/Zope-2.2.0-src/lib/python/SearchIndex/TextIndex.py", line 217, in ? from Lexicon import Lexicon, query, stop_word_dict ImportError: cannot import name query What is the solution?? This is'nt Confera bug. It is undoudtedly Zope 2.2.0 bug. Currently I am working on a patch witch (maybe) fix this bug. I let you know if it will be finished. -- Adam Karpierz [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] training product
Is there a zope product that I can use to make a set of questions and answers (multiple choice) and provide people with feedback on their score and the correct answers at the end of the test? I'm looking at doing some simple staff training stuff. Frank McGeough Synchrologic, Inc. http://www.synchrologic.com P:770.754.5600 F:770.619.5612 "Beware of all enterprises that require new clothes." Henry David Thoreau ___ 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] Substracting value from variable?
If your database doesn't support LIMIT sql clause (like Oracle) or if you don't want complexity in SQL, you can do it in dtml like dtml-in my_query dtml-if "_['sequence-number'] =4 " dtml-var year /dtml-if /dtml-in How ever, this assumes that the list of years are ordered properly within the SQL. Also, this is good *ONLY* for queries that return small number of data. You should not use this to pick 4 rows out of 1 rows returned :-) - Original Message - From: Jonathan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 01, 2000 10:43 AM Subject: [Zope] Substracting value from variable? Hi all, Is there a way to have a ZSQL Method select the four highest values from a list of values in a database? Example: select distinct year from table returns the following results 1975 1980 1985 1990 1995 2000 from which I want to select the latest four years: 1985 1990 1995 2000 Possible? Can't seem to find anything in the docs :( Thnx, Jonathan ___ 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 )
[Zope] compile ZPoPyDA product problems
Folks - I could use a hand here - I'm trying to compile the PoPy module for python so I can use the ZPoPyDA to connect to my PostgreSQL database. I keep getting the same compile error - gcc - shared PoPymodule.o -lpq -o PoPymodule.so /usr/i486-suse-linux/bin/ld: cannot find -lpq I have compiled other binaries on this machine, including Zope 2.2. Python runs fine, I just don't know enough about ld to understand the error. (I get the same error trying to compile ZPyGreSQLDA. Any pointers would be greatly appreciated. - Steve __ Get your Private, Anti-Spam, Free Email at http://e3mil.com and Step into a Friendly Universe! ___ 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] ANN: ZUBB (Zope Ultimate Bulletin Board) 0.5.3 Release
I have uploaded ANOTHER update to ZUBB. Both the CHANGES and README are linked below. Most of them are minor and have to do with Zope 2.2 and the regenerate feature, which is now a bit tricky depending on what version of Zope you are using (see INSTALL). I have also managed to test 0.5.3 with over 900 posts (working my way towards 1000) on Zope 2.2. http://www.zope.org/Members/BwanaZulia/ZUBB/ http://www.zope.org/Members/BwanaZulia/ZUBB/README http://www.zope.org/Members/BwanaZulia/ZUBB/CHANGES http://www.zope.org/Members/BwanaZulia/ZUBB/INSTALL http://www.zope.org/Members/BwanaZulia/ZUBB/EXAMPLES As always the sample / test / development board is http://www.bwanazulia.com/kenya/discussions/test/ Suggestions, comments are welcome. J ___ 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] Trying to establish connection to MS SQLServer 7
I have read the following How-To by roberth http://www.zope.org/Members/roberth/ZMSSQLServer/index_html?pp=1 I must be missing something, because I am unable to establish a connection to my database. No matter what I try I receive an "Incorrect Connection String" error message. My setup: * Latest version of Zope * MS SQL Server 7 * ZODBC adapter I have configured the SQL server so that there are member logins which correspond to thezope super user anda normal user. What do I use for the dsn in the connection string? I have tried LocalServer, MSSQLServer, as well as the name of the database. Thank you for your help. --Andrew [EMAIL PROTECTED]
[Zope] Informix and Zope
HI, Can anybody tell me if there is a posibility to use Zope with Informix 7.3 on a Linux machine? maybe using odbc driver? thanks you.. -- Nestor A. Diaz Ingeniero de Desarrollo Engendro - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.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] Retrieving the week number with DateTime
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? thanks in advance, -- Arjan Scherpenisse [EMAIL PROTECTED] may the source be with you === http://www.gnu.org === ___ 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] From a Folder to a Product
On Tue, 1 Aug 2000, Cesar A. K. Grossmann wrote: You mean, put all sql-queries, dtml-docs and dtml-methods spread in the root folder of the zope? I'm trying to maintain the root uncluttered ("every thing in it's place, every place with it's thing"), and I'm thinking this will do the oposite, but you give me an idea: / + reports + files (sql queries, reports/forms, and default sql-conn) + customer1 | + sql connection (only) Or you could use the Transparent Folders product if you don't want to have an extra 'reports' folder. Have anyone a better one idea/suggestion? Of course, making things like that, I lose versioning (I think), but I think I can survive without it... Unless I'm misunderstanding something, I don't think you'd loose versioning. --RDM ___ 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] compile ZPoPyDA product problems
On Tue, Aug 01, 2000 at 10:54:50AM -0700, Stephen Nosal wrote: Folks - I could use a hand here - I'm trying to compile the PoPy module for python so I can use the ZPoPyDA to connect to my PostgreSQL database. I keep getting the same compile error - gcc - shared PoPymodule.o -lpq -o PoPymodule.so /usr/i486-suse-linux/bin/ld: cannot find -lpq -Find libpq.so on your machine. -Edit the last? (going from memory) line of Makefile, adding -L/directory/that/holds/your_libpq (just the directory, not the filename) right before -lpq There is certainly a more elegant way to do the same, but it worked for me. I have compiled other binaries on this machine, including Zope 2.2. Python runs fine, I just don't know enough about ld to understand the error. (I get the same error trying to compile ZPyGreSQLDA. Any pointers would be greatly appreciated. - Steve -- Patrick Lewis [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] Pasting renderable
I don't think it is just Renderable ZClasses. Can you paste ZClass instances at all in Zope 2.2.0? See my message in Zope-Dev: http://lists.zope.org/pipermail/zope-dev/2000-July/006238.html -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] Weird Gadfly behaviour
Dear Zopista's, I have a serious problem that is Gadfly database related. For some reason Zope thinks that the ZSQL methods are folders and hence processes the information incorrectly and will also not let me delete or access those methods. I know that the data is still there.If I create a new ZSQL method I can search and display the data. (There is hence a work around by redoing everything.) But how do I fix the problem? Being able to delete the methods after I have implemented the methods again and hence the workaround would be a possible solution. Ideally there is a way to get Zope to view the methods correctly. If I try to access one of these methods, I get an HTTP 404 Page not found error. Here is the type of error I get if I try to delete one of these objects... Traceback (innermost last): File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/ZopePark/beta.70south.com/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_delObjects) File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_delObjects) File /usr/local/ZopePark/beta.70south.com/lib/python/OFS/ObjectManager.py, line 395, in manage_delObjects (Object: ApplicationDefaultPermissions) File /usr/local/ZopePark/beta.70south.com/lib/python/OFS/ObjectManager.py, line 267, in _delObject (Object: ApplicationDefaultPermissions) File /usr/local/ZopePark/beta.70south.com/lib/python/OFS/ObjectManager.py, line 262, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/ZopePark/beta.70south.com/lib/python/ZODB/Connection.py, line 396, in setstate TypeError: ('len() of unsized object', class Shared.DC.ZRDB.DA.SQL at 83d35f8, None) Regards,Brendon --70South: the No.1 source for Antarcticles.For the latest news and views on Antarctica visit : http://www.70south.com
Re: [Zope] Help: Confera product broken.
Adam Karpierz wrote: This is'nt Confera bug. It is undoudtedly Zope 2.2.0 bug. Currently I am working on a patch witch (maybe) fix this bug. I let you know if it will be finished. Funny, I had the impression this was due to a change in the way indexing works. It's the reason why I updated Squishdot to use ZCatalog. If this isn't the case, I (and I'm sure many other people) would like to know what the bug is and use the patch when it turns up :-) 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] Re: [Zope-dev] [Zope] App isolation
Hi Steve,The page you see is basically just crap. In fact it's pretty much an unusedserver, (well at least by me it is).The point of this is the http://validator.xmlrpc.com tests. That site hasbeen testing the zweb machine for sometime and it validates OK.Looking at zweb itself will tell you nothing unless you are using an xmlrpcclient to do the looking.hthPhil Harris[EMAIL PROTECTED][EMAIL PROTECTED]- Original Message -From: Steve Alexander [EMAIL PROTECTED]To: Phil Harris [EMAIL PROTECTED]Sent: Tuesday, August 01, 2000 9:45 PMSubject: Re: [Zope-dev] [Zope] App isolation Phil Harris wrote: My machine is http://www.zweb.co.uk. I can't see anything beyond the front page on my browser -- and the front page looks pretty empty. Netscape 4.6.something, Linux. Also Mozilla latest nightly, Linux. I can make the roll-over links go interesting colours, though. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net
Re: [Zope] compile ZPoPyDA product problems
Well, I'm getting somewhere. The make and make install on the PoPymodule completed with no errors, but now in python the import PoPy returns the following: Traceback (innermost last): File "stdin", line 1, in ? ImportError: /usr/lib/python1.5/site-packages/PoPymodule.so: undefined symbol: PQfsize This is from the PoPy-1.2.1 tarball. On another note, ZPyGreSQLDA appears to be up and running. Thanks for all of the help. - Steve On Tue, 01 August 2000, [EMAIL PROTECTED] wrote: On Tue, Aug 01, 2000 at 10:54:50AM -0700, Stephen Nosal wrote: Folks - I could use a hand here - I'm trying to compile the PoPy module for python so I can use the ZPoPyDA to connect to my PostgreSQL database. I keep getting the same compile error - gcc - shared PoPymodule.o -lpq -o PoPymodule.so /usr/i486-suse-linux/bin/ld: cannot find -lpq I have compiled other binaries on this machine, including Zope 2.2. Python runs fine, I just don't know enough about ld to understand the error. (I get the same error trying to compile ZPyGreSQLDA. This message is saying that the postgres library libpq cannot be found by the linker (postgres was formerly called PostQuel, hence pq). Not having Suse, which I have heard has somewhat unusual layout, I cannot tell you for sure what to do... but try find / -name "libpq*" THis should find any libpq's on your system Then if libpq is in /usr/lib/foo, do export LD_LIBRARY_PATH=/usr/lib/foo gcc - shared PoPymodule.o -lpq -o PoPymodule.so Any pointers would be greatly appreciated. - Steve __ Get your Private, Anti-Spam, Free Email at http://e3mil.com and Step into a Friendly Universe! ___ 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 ) __ Get your Private, Anti-Spam, Free Email at http://e3mil.com and Step into a Friendly Universe! ___ 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] Repost: Weird Gadfly Behavior
Sorry for the HTML post previously, here it is in ASCII. Dear Zopista's, I have a serious problem that is Gadfly database related. For some reason Zope thinks that the ZSQL methods are folders and hence processes the information incorrectly and will also not let me delete or access those methods. I know that the data is still there. If I create a new ZSQL method I can search and display the data. (There is hence a work around by redoing everything.) But how do I fix the problem? Being able to delete the methods after I have implemented the methods again and hence the workaround would be a possible solution. Ideally there is a way to get Zope to view the methods correctly. If I try to access one of these methods, I get an HTTP 404 Page not found error. Here is the type of error I get if I try to delete one of these objects... Traceback (innermost last): File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/ZopePark/beta.70south.com/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_delObjects) File /usr/local/ZopePark/beta.70south.com/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_delObjects) File /usr/local/ZopePark/beta.70south.com/lib/python/OFS/ObjectManager.py, line 395, in manage_delObjects (Object: ApplicationDefaultPermissions) File /usr/local/ZopePark/beta.70south.com/lib/python/OFS/ObjectManager.py, line 267, in _delObject (Object: ApplicationDefaultPermissions) File /usr/local/ZopePark/beta.70south.com/lib/python/OFS/ObjectManager.py, line 262, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/ZopePark/beta.70south.com/lib/python/ZODB/Connection.py, line 396, in setstate TypeError: ('len() of unsized object', class Shared.DC.ZRDB.DA.SQL at 83d35f8, None) Regards, Brendon -- 70South: the No.1 source for Antarcticles. For the latest news and views on Antarctica visit : http://www.70south.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] 2.2.0, LoginManager and ZPatterns
Bill Anderson wrote: ethan mindlace fremen wrote: Bill Anderson wrote: http://www.zope.org/Members/Bill/Products/Membership well, it may be alpha, but I catalogued it anyway (so that people can find it) OK. I marked in RED letters that it is alpha. :) Thinking aluod Perhaps the Product Release page can put 'development' in red, so that devel products are easier to spot? You could go to your product, and for topics use "Example" and "Developer". That should do the trick :) -- ethan mindlace fremen Zopatista Community Liason Abnegate I! ___ 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] Separate Instances of Zope
Hi, I have this setup: I have Zope running on 1 server. I have multiple servers accessing the zope server. If this server goes down, can I have a backup zope server that replicates the main server? Currently I'm running Zope on Windows 2000. (works like a charm!) How does one replicate this? Do I use a replication engine? Please help... Thanks in advance' Blueyez from Atlanta ___ GO Network Mail Get Your Free, Private E-mail at http://mail.go.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] I have the DB connection to MSSQLServer 7 working
The problem was not with Zope. What I failed to do was to add the server as a dsn in Control Panel -- Administrative Tools -- Data Sources (ODBC). After doing that and everything that roberth did, the connection installed perfectly. --Andrew [EMAIL PROTECTED]
[Zope] Python nasty :S
Flame me if you want, but this one really got me bad so I thought I'd make others aware... cheers, Chris ChrisW's post to the Python Bug List: I have something equivalent to this in my code: mylist = ['x','y' 'z'] (the real code has much longer contents, hence the line break ;-) I think this should throw a parse error 'cos there's a missing comma. What actually happens is it ends up as: mylist = ['x','yz'] which is _really_ non-intuitive. I spent a good few hours trying to find the source of an exception in the Squishdot product for Zope until I noticed this. I note that: mystring = 'x''y' is also legal, which I suspect is the roundabout source of this problem. Sure that should raise an error and only the following should give the result that that does: mystring = 'x'+'y' 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] How can I proxy from apache to zope and keep source host info?
Marcin and Phil, I also found info on a patch that would pass this information in the HTTP_Via header. I incorporated it into my Apache+ZServer+SSL HOWTO: http://www.zope.org/Members/unfo/apache_zserver_ssl Good luck, T.J. -Original Message- From: Marcin Kasperski [EMAIL PROTECTED] Sent: Monday, July 31, 2000 4:03 AM To: "[EMAIL PROTECTED]" Subject: Re: [Zope] How can I proxy from apache to zope and keep source host info? Phil Harris wrote: There is a patch to Apache that you could apply that passes the client IP along in a different HTTP header, if that helps. It's at http://modules.apache.org/search?id=124. Does anyone has this module compiled for apache 1.3 handy (I mean mod_add_proxy.so file)? I use binary Debian apache distribution and it will take some time to download and rebuild apache from sources... www.mk.maxi.pl | Teams do not make linear progress through analysis. Marcin.Kasperski | They don't start with requirement 1 and analyze it, @softax.com.pl | then move to requirement 2 and analyze it. (...) @bigfoot.com | Analysis tends to be revolutionary. (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/zopeannounce http://lists.zope.org/mailman/listinfo/zopedev ) ___ 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] Separate Instances of Zope
Yep... search for ZEO on zope.org. On Tue, 1 Aug 2000, blueeye wrote: Hi, I have this setup: I have Zope running on 1 server. I have multiple servers accessing the zope server. If this server goes down, can I have a backup zope server that replicates the main server? Currently I'm running Zope on Windows 2000. (works like a charm!) How does one replicate this? Do I use a replication engine? Please help... Thanks in advance' Blueyez from Atlanta ___ GO Network Mail Get Your Free, Private E-mail at http://mail.go.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 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] Log Out
Title: Re: [Zope] Log Out There is a netscape guide to using cookies that might lend some insight into techniques for circumventing the HTTP authenticaion header problem at: http://developer.netscape.com:80/viewsource/bosamiya_tips.html Alan Capesius, MCSE Technical Support Engineer Sysmex Corporation of America [EMAIL PROTECTED]
Re: [Zope] Python nasty :S
We have a reply... oh well :S chris Tim Peters wrote: Sorry, but this is a documented feature: just as in C, adjacent string literals are concatenated at compile-time. You bumped up against the Dark Side of that. The Bright Side is, e.g., logfile.write("And here I need to write something " "to a log file that spills over a line " "of source code but I want it want to " "appear in the log as one line." "\n") It can't be made an error, as lots of code relies on it now. ___ 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 do I control iteration over XML elements?
On Tue, 01 Aug 2000, Jean Jordaan wrote: Hi Curtis all yuck indeed. Just thinking aloud .. I got as far as: dtml-in "teams[0].getElementsByTagName('team')" dtml-in "objectValues('member')" !! but now I can't see 'team' anymore :( Erm... I was banking on it still being in the namespace, since all the dtml-in does is push another object onto the namespace. dtml-let membername="text_content" dtml-var membername is member of dtml-in "objectValues('team')" !! this whole -in never contains anything .. because !! I'm already -in member (Have I got this right?) dtml-var "text_content('name')" dtml-in "objectValues('member')" dtml-if "text_content == membername" dtml-var name, !! AFAICT 'name' won't be visible -in 'member' .. /dtml-if /dtml-in /dtml-in /dtml-let br /dtml-in /dtml-in I think I need a lot more Python than I know .. I've got this far with almost 0 python knowledge. (o8 But yes, learning some Python can be a very helpful thing. 1. objectValues returns a list -- this needs to get sorted duplicates dropped. sorting is easy with dtml-in removing duplicats is another story... 2. when -in team and -in member, the name of the team needs to be accessible. As I said earlier, AIUI name should still be in the namespace. Have a better one, 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] ZODBCDA fails under 2.2
Title: ZODBCDA fails under 2.2 I'm trying to access data via the ZODBCDA latest build and Zope 2.2 Whenever the ODBC query returns data, the user is challenged for authentication. Pages that do not use ODBC and database methods that return empty sets are not challenged. Has anyone else encountered this? In my configuration, anonymous has acquired Access, View and use db methods rights. I've also tried with explicit rights. Alan Capesius, MCSE Technical Support Engineer Sysmex Corporation of America [EMAIL PROTECTED]
[Zope] 2.2 Explicit/implicit problem.
Title: 2.2 Explicit/implicit problem. I'm able to take ownership of objects to a new user manager-level account. Object then switch to implicit mode. For some objects I've switched them to implicit for testing. Once switched, they do not switch back. The button displayed under Ownership indicates that they can switch, but does nothing when clicked. Anyone run into this? Alan Capesius, MCSE Technical Support Engineer Sysmex Corporation of America [EMAIL PROTECTED]
[Zope] MetaPublisher Image/File Field Problem
Hi, I have created a MetaPublisher which has several Image Fields and File Fields. I come into problems when I go to Edit entires and update an image field and or a File Field. I browse for a new image or file and even if I flag the check box "Select this box, if you want to delete the current image from this entry". This returns a Zope Error - !-- Error type: while uploading an image Error value: None -- Has anyone using MetaPublisher come across this problem? Help appreciated. Regards, Michael Fox ___ 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] Help!! RE:mutilple select forms and ZSQL Method
We are trying to insert an values from a multiple select form into an SQL Database. Does anyone know how to handle arguments of type 'list' inside an SQL Method ? Thanks, ^..^ Erik = erik lacson net applications developer president --- eMerge Network Technology Solutions intranets * web business * virtual private networks http://www.emerge-tech.com | [EMAIL PROTECTED] __ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.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 )