Re: [Zope] Fw:

2000-05-19 Thread R. David Murray
On Fri, 19 May 2000, Tom Scheidt wrote: Do you know if I can limit the id to the last 3 letters, rather than the first? My images have _xl, _l etc. on the end. [...] ul dtml-in "tester.fileValues()" dtml-if "type=='image/jpeg'" dtml-if "id[0:3]=='tn_'" img

Re: [Zope] ODBC Database Connection

2000-05-19 Thread R. David Murray
On Fri, 19 May 2000, joel grimes wrote: I've encountered an error when trying to select data from a table. In the TEST tab of the ODBC Database Connection I typed in the following query: select * from Products; I get the following error: Error Type: ValueError Error Value: unpack

Re: [Zope] uploading a batch of files

2000-05-22 Thread R. David Murray
On Mon, 22 May 2000, Dieter Maurer wrote: FTP, mput? More difficult: a Python script generating appropriate HTTP Post requests An equally difficult alternative to b: a temporary python external method that creates file objects and reads the content from the file system. Perhaps the load_site

Re: [Zope] Switch, Attribution and NT

2000-05-23 Thread R. David Murray
On Tue, 23 May 2000, peter wrote: Q1 {A} Is it possible to rewrite the following piece of DTML into something easier and managable? dtml-if "_.string.split(URL,'/')[-1]=='foobar_html'" Cool! You are viewing foobar_html dtml-elif

Re: [Zope] creating a generic field gadget

2000-05-23 Thread R. David Murray
On Wed, 24 May 2000, Graham Chiu wrote: But I now want this dtml-document when rendered to read the values of fieldname, and fieldname-error, and then generate the dtml equivalent to this ... dtml-if userid value="dtml-var userid" /dtml-if br dtml-if userid-error font size="2"

Re: [Zope] Subclassing from Custom Python Classes

2000-05-24 Thread R. David Murray
On Tue, 23 May 2000, Pete Kazmier wrote: Zope scheduler that is bug free, I need to write a small python script that I can place in a cron job to run every ten minutes to call the query methods of these objects so they update their cache instances. Is there a link on how to get a regular

Re: [Zope] Ordered list

2000-05-31 Thread R. David Murray
On Wed, 31 xxx 2000, Marcio Moreira wrote: My question is: How can I have an ordered listing of all popular names of all plants (in other words, how can I have an ordered listing of data stored in "lines"-type properties on diferent class instances)? My off the cuff thought would be to use a

Re: [Zope] Python and Zope Question

2000-06-01 Thread R. David Murray
On Thu, 1 Jun 2000, Scott Burton wrote: for x in folderObject : return x I am going to do things to the items once I have access to them, I just can't figure out how to reference ZODB objects in Python. I have for x in folderObject.objectValues(['some_meta_type','some_other_type']):

Re: [Zope] Simple function nightmare

2000-06-02 Thread R. David Murray
On Fri, 2 Jun 2000, Felipe Alvarez Harnecker wrote: let a="'1'" b="'2'" c="'3" d=dontWork_dtml dtml-call "REQUEST.set('a','2')" dtml-var d /dtml-let guess what: it renders 2-2-3 That is d is not a string but an expression. Hey, this is a cool trick grin. What

Re: [Zope] (no subject)

2000-06-07 Thread R. David Murray
On Tue, 6 Jun 2000, Alexandre A. Drummond Barroso wrote: We are posting e-mails about it on the list for a while and nobody answered, so I must think that nobody on Zope universe is using Oracle 8i (neither NT nor Linux Oracle 8i client). I installed DCOracle for a client using 8i. The only

Re: [Zope] Re: import-export

2000-06-07 Thread R. David Murray
On Wed, 7 Jun 2000 [EMAIL PROTECTED] wrote: So how do I export everything from root? Ok .. this is a real bugger, I can't believe it's taken me so long to figure it out (I was first checking file permissions etc). Answer: Make sure you are in the root folder and then click the Export...

Re: [Zope] Greetings,

2000-06-07 Thread R. David Murray
On Wed, 7 Jun 2000, ethan mindlace fremen wrote: CURTIS David wrote: I wish to use use the data of the database file in my html code. For example, this database was last updated on 06/06/2000. I suppose that there must be a dynamic html tag that zope uses. What could it be? I looked at

Re: [Zope] search on search results, dynamically

2000-06-08 Thread R. David Murray
On Thu, 8 Jun 2000, Philipp Dunkel wrote: amount of results, e.g. if my ZClass would handle Cars, they first see 500 car-objects, then they specify only reds, they get 200 results from the 500. Now they can specify a price and again the amount goes from 200 to say 50. This means I have to

Re: [Zope] Problems uploading large attachments

2000-06-08 Thread R. David Murray
On Thu, 8 Jun 2000, Cary O'Brien wrote: Also, couldn't seem to run strace on the zope process. I started under strace but the system went bezerk opening sockets or something. Is there any way to start a single-process non-threaded zope server? I've noticed this, too, under BSDI 4.1 and

[Zope] Secure storage of credit card info

2000-06-08 Thread R. David Murray
OK, any of you out there who have thought about ecommerce, cryptography, and zope, I've got a design question for you. Actually, this question is independent of zope, but I need to solve it in a zope context. You have a ZCommerce site. You accept credit cards, and securely communicate with a

Re: [Zope] Re: [ZCommerce] Secure storage of credit card info

2000-06-08 Thread R. David Murray
On Thu, 8 Jun 2000, Bill Anderson wrote: Personally, I would store the actual data on a seperate server, not accessible to the public. Mmm. Yes, that makes it more secure. Still leaves the question of encryption/decryption of the data and key management, but it makes the cracking a lot less

Re: [Zope] Zope, Apache/NT, Reliability issues

2000-06-09 Thread R. David Murray
On Fri, 9 Jun 2000, J. Michael Mc Kay wrote: The conversation below suggests that pcgi passes requests to Zope. I am confused about this because I am told this is a Website issue, but when explained in it's simplest terms (below) it appears to be a pcgi or Zope issue. The error I am

Re: [Zope] Zope 2.2 beta 1 released

2000-06-12 Thread R. David Murray
On Mon, 12 Jun 2000, Brian Lloyd wrote: Zope 2.2.0 beta 1 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.2.0b1/ Either the -src file name is wrong, or the file is wrong, because it still says 2.2.0a1. I think it's the file, 'cause the control panel

Re: [Zope] ZCatalog in python

2000-06-13 Thread R. David Murray
On Sun, 11 Jun 2000, Dieter Maurer wrote: The Find machinery (and therefore, ZCatalog) uses the method "objectItems" to locate the children of an object. If such a method does not exist or does not return the sequence of children, the catalog will not find them. That shouldn't matter for

Re: [Zope] How do I do...

2000-06-13 Thread R. David Murray
On Mon, 12 Jun 2000, Andre van der Vlies wrote: However, if I want to use a "Utility.method()" which uses something in "Sql" I am at loss Furthermore I have the feeling that this isn't the way it was ment to be... Is there a 'correct' way of doing this??? Wait for the re-release of the

Re: [Zope] Newbie alert! Frustration right off the bat...

2000-06-13 Thread R. David Murray
On Tue, 13 Jun 2000, Rob Brandt wrote: The beginning of the tutorial says to create the ZAcme folder under my root installation. I take this to mean at the main manage entry point, When you create the folder there are a couple of checkboxes on the creation screen. One says "create public

Re: [Zope] html templates?

2000-06-19 Thread R. David Murray
On Mon, 19 Jun 2000, Christian Scholz wrote: Imagine writing simple html templates with some custom tags which are quite abstract like addresslist. Then write some Python Product (or there might be one Product to make this happen a little simpler) which implements these tags. Insofar as I

Re: [Zope] Pointers in zope ??? object1 -- object2

2000-06-20 Thread R. David Murray
On Tue, 20 Jun 2000, NABETH Thierry wrote: I had also thought that I could store in this field, the url of the object. From this url, I would then be able to get the object. (since you can call an kind of method by url-of-the-object/mymethod) But it didn't work. For instance dtml-with

Re: [Zope] Internationalization 2nd post

2000-06-20 Thread R. David Murray
On Tue, 20 Jun 2000, Dan Rusch wrote: How are my fellow Zopers handling Internationalization, especially text. Check out the list of mailing lists in the resources section of zope.org. You'll find a mailing list for ZIP, the Zope Internationalization Project, complete with archives. --RDM

Re: [Zope] Stupid question of the day

2000-06-24 Thread R. David Murray
On Sat, 24 Jun 2000, Dieter Maurer wrote: Andy McKay writes: How do I find the size of the results returned by the catalog? dtml-let results=Catalog() dtml-var "_.len(results)" -- the results' length -- /dtml-let Or you can use the variable 'sequence-length'. Remember that

RE: [Zope] Moving Z Classes around

2000-06-26 Thread R. David Murray
On Mon, 26 Jun 2000, Brian Lloyd wrote: future to move ZClasses around, but something will still need to be done about existing instances created from a class that moves. So far we have avoided the hard thinking required to If there are no instances to worry about, could one export the

Re: [Zope] Generating products that perform a smart clone of a mastersite?

2000-06-26 Thread R. David Murray
On Mon, 26 Jun 2000, [iso-8859-1] Hamish Lawson wrote: What I think I need to do is to develop a facility that makes a tutor's site into a product. Instantiating such a generated product should make a smart clone of the master site, smart in the sense that only active objects are actually

Re: [Zope] parsing strings in DTML

2000-06-26 Thread R. David Murray
On Mon, 26 Jun 2000, Timothy Wilson wrote: "REQUEST.set('parsed_address', _.string.join(old_address, '$')" except for This is exactly correct. Inside the quotes you are in python, and so you can reference variables from the namespace by their unadorned name. Second question... Once I've got

Re: [Zope] Can't override standard_error_message on NotFound?

2000-06-27 Thread R. David Murray
On Mon, 26 Jun 2000, matt wrote: I'm having some problems with standard_error_message on 2.2.0b2. According to the mailing list archives I should be able to override NotFound errors (I even cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own standard_error_message

Re: [Zope] Re[2]: [Zope] CASE tools and Zope

2000-06-28 Thread R. David Murray
On Wed, 28 Jun 2000, Alexander Chelnokov wrote: As i realize, ZSQL methods are merely SQL statements for data manipulation - select, insert, delete and so on. But some application logic and data integrity rules may be IMHO wrapped into ZClasses instead of triggers and stored procedures. It

Re: [Zope] range with variables

2000-06-28 Thread R. David Murray
On Tue, 27 Jun 2000, Armin Wappenschmidt wrote: dtml-let start=Variable_from_Formular # -- that's the problem!! dtml-let stop="100" dtml-let period="5" dtml-in "_.range(start,stop,period)" dtml-comment do something /dtml-comment /dtml-in /dtml-let /dtml-let /dtml-let

Re: [Zope] DTML question

2000-06-28 Thread R. David Murray
On Wed, 28 Jun 2000, Luke Tymowski wrote: If the subfolder is down 2, then size=1 works, size=2 works, but size=3 returns everything. By down 2 I mean like the example code above (folder I want to query is two levels down). Maybe it's a 2.2 bug? Maybe you need the 'orphan' parameter on

Re: [Zope] The story with 900 files/Zope hanging..

2000-07-05 Thread R. David Murray
On Mon, 3 Jul 2000, Jonathan Desp wrote: then a problem appear, I mean zope stop, I cannot browse inside zope and I can't browse inside www.atomasoft.com/etc.. No one here know a patch for that problem ? no one here is smart enough in zope(because I'm not) for solving that problem ? Here

Re: [Zope] problem with ZopeFind and objectValues

2000-07-05 Thread R. David Murray
On Tue, 4 Jul 2000, Jerome Alet wrote: In fact if I give this method a proxy role of Manager then it works fine if I access directly to this method from my browser. However if I call this method from inside another dtml method then it seems that the method loose its proxy role of manager.

Re: [Zope] Zope and Security

2000-07-05 Thread R. David Murray
On Wed, 5 Jul 2000, Tom Scheidt wrote: information online, but Im concerned about security issues, such as entering social security #s etc. I have Zope running with Apache v1.3.x Zope has pretty strong internal security and delegation ability. If you couple that with SSL support either

Re: [Zope] RE:How do I merge form URL vars into sql easily

2000-07-06 Thread R. David Murray
On Fri, 7 Jul 2000, Michael Blewett wrote: trial and error (and guidance from this list), I came up with these conclusions (which I'm sure someone will shoot down if I am wrong): 1) The request object you are setting with your REQUEST.set command is like a big bucket that gets passed

Re: [Zope] newbie questions

2000-07-06 Thread R. David Murray
On Fri, 7 Jul 2000, David Trudgett wrote: I don't understand this advice. Couldn't the file change while being read? Wouldn't a better way be to pack the database and use the Data.fs.old file as the backup? If you are a belt-and-suspenders type, sure grin. Data.fs only gets appended to,

Re: [Zope] Installed Products

2000-07-09 Thread R. David Murray
On Sun, 9 Jul 2000, Tim Cook wrote: So all the really cool, useful stuff is being written in Python instead of ZClasses? g Is there a specific reason for this? Speed? Capability? ZClasses are a relatively recent addition. Some people swear by them, some people swear at them. Actually

Re: [Zope] data record exceeds transaction record (was C:\ProgramFiles\WebSite...)

2000-07-10 Thread R. David Murray
On Fri, 7 Jul 2000, Jonathan DESP wrote: I'm getting a problem, I don't understand what it is, my friend and me didnot find the problem too. [] data record exceeds transaction record at 34224435 This may not be of any help, but I got this kind of error when I was trying to build a Zope

Re: [Zope] DTML?

2000-07-10 Thread R. David Murray
On Mon, 10 Jul 2000, Chris Withers wrote: (Who just spent 1/2 hour figuring out how to do a multi-language site in Zope, and now after 6hrs of trying has given up doing a recursive tree copy to get the old site into the new structure with a DTML method or two and is resorting to ugly hacky

Re: [Zope] DTML?

2000-07-11 Thread R. David Murray
On Tue, 11 Jul 2000, Chris Withers wrote: Tino Wildenhain wrote: I want that too. When we are over it, how about replacing (or at least aliasing) these - variables to _ ? sequence-item, sequence-index etc. comes to mind. IF you've got a patch that will do this, please mail it to me

Re: [Zope] R: [Zope] dtml-in and maps...

2000-07-11 Thread R. David Murray
On Tue, 11 Jul 2000, Marcel Preda wrote: looks like the variable that you are using in dtml-in ... is noat a sequence (list || tuple) I suppose that your var is a dictionary Insted of : dtml-in x mapping you have to use: dtml-in "[x]" mapping as a list || dtml-in "(x,)" mapping

Re: [Zope] Stupid Question Time

2000-07-11 Thread R. David Murray
On Tue, 11 Jul 2000, Jerome ALET wrote: ' and " are equivalent Not quite true. dtml only recognizes " for surrounding dtml expressions. But you are right that they are equivalent in python. () are for functions or methods To call functions or methods: blah(somearg). But also used for

[Zope] Re: [Zope-dev] Problem with Zope

2000-07-11 Thread R. David Murray
On Tue, 11 Jul 2000, Tina Goyne (TT) wrote: I am a novice Zope user--my web master left my company and I have been pegged with the responsibility of maintaining our internal website. I am having a problem adding a new folder and then adding a file to the folder. The file is located on

[Zope] RE: [Zope-dev] Problem with Zope

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Tina Goyne (TT) wrote: click on the folder I created--it opens the folder, but it is as if the folder is empty. If I view the file, it opens Adobe Reader--but the page is If the folder appears empty, how do you view the file? When viewing the file, the fact that it opens

[Zope] RE: [Zope-dev] Problem with Zope

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Tina Goyne (TT) wrote: we have actually narrowed the problem down a little more. If we use Netscape--there are no problems. The problem seems to be with IE--have you heard of a resolution? BTW - I can view the file on the network server. No, I hadn't heard about

Re: [Zope] How to uninstall a product such as PTK or KnowledgeKit

2000-07-12 Thread R. David Murray
I'm not saying this will fix it, but did you try restarting Zope? --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] .dtml files

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Daniel Rusch wrote: I have found function calls such as: manage_roleForm=HTMLFile('roleEdit', globals()) which I believe creates an HTML document template from the named file. But, what is the mechanism that calls/displays mange_roleForm? Actually, it creates a

Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Terry Babbey wrote: Here is my code: dtml-if "_[ProgCode + 'PIC']" dtml-var "_[ProgCode + 'PIC']" /dtml-if What I would like to do is align the picture to the right of my web page. If I was programming html I would do it like this: img src=T043PIC align=right

Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Terry Babbey wrote: Now if only I could get my dtml-if statement working. dtml-if "_[ProgCode + 'PIC']" I believe this should work (mostly tested): dtml-if "_.has_key(ProgCode + 'PIC')" Note that this will be true if the id exists anywhere in the acquisition path.

Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Peter Be wrote: If you use .tag you can only control ALT, HEIGHT, WIDTH and BORDER Look for these things in the Image module and see if you can add ALIGN. As far as I can see from the source, tag should handle arbitrary arguments. The comments certainly say that it does.

Re: [Zope] Re: Re: [Zope] LocalFS Documentation

2000-07-13 Thread R. David Murray
On Thu, 13 Jul 2000, Kelvin Cheong wrote: I'm puzzled...there isn't any upload at the bottom of the page...but there has always been an upload at the top of the page in the Zope content management interface (along with "Contents", "Edit", "View", "Properties"...etc). Was the LocalFS upload

Re: [Zope] uncatalog of absent id?

2000-07-14 Thread R. David Murray
On Thu, 13 Jul 2000, Nitesh Dhanjani wrote: Im fairly new to the Zope world. Im trying to delete a PTK folder, and get this error: Zope Error Zope has encountered an error while publishing this resource. Error Type: ValueError Error Value: Uncatalog of absent id

Re: [Zope] Class Refactoring Question

2000-07-14 Thread R. David Murray
On Thu, 13 Jul 2000, James W. Howe wrote: I've developed a couple of simply Python classes which I'm using as base classes for some ZClasses that I've developed. I now realize that both of these Python classes could benefit from obtaining behavior from another class. Will I complete hose

Re: [Zope] (no subject)

2000-07-17 Thread R. David Murray
On 14 Jul 2000, Karl Anderson wrote: __bobo_traverse__ is another attribute that the object may have to drive the publishing process, but I haven't needed to understand why it's useful yet :) Isn't that where he'd hook in to do exactly what he wants? To have an (arbitrary) object "eat"

Re: [Zope] Urgent Problem - CMG - script is not working

2000-07-17 Thread R. David Murray
On Tue, 18 Jul 2000, Sven Hohage wrote: I know that's described in the CMG but the builder-script is not working. "Invalid syntax". The most import thing is to be able to clone an object and then to change the propertys. Please mail me a version that's working because tomorrow I have to

Re: [Zope] Re: Folderish objects and that BASE tag...

2000-07-21 Thread R. David Murray
On Mon, 17 Jul 2000, Chris Withers wrote: If you go to: http://my.zope/site/file.html/ It will just return the DTML document :-) I wonder if it is redirecting to http://my.zope/site/file.html? I belive that it is returning: http://my.zope/site/file.html/index_html --RDM

Re: [Zope] How to require an @ symbol in email form field??

2000-07-21 Thread R. David Murray
On Tue, 18 Jul 2000, Duncan Booth wrote: Use javascript to check that all required fields are present before the form is actually submitted. Here is some of the code I use: Note, however, that using Javascript to do the checking client side is only useful as a user convenience. If you have

Re: [Zope] Re: Folderish objects and that BASE tag...

2000-07-26 Thread R. David Murray
On Mon, 24 Jul 2000, Chris Withers wrote: I belive that it is returning: http://my.zope/site/file.html/index_html I wonder what index_html that is then? :S From lib/python/OFS/Image.py (which also implements generic file object): def index_html(self, REQUEST, RESPONSE):

Re: [Zope] Batchprocessing with multiple conditions?

2000-07-28 Thread R. David Murray
On Tue, 25 Jul 2000, Peter Arvidsson wrote: I have objects of a certain meta-type. They have some properties and one of the properties is a boolean. How do I make a dtml-in loop among those objects with the boolean set to yes? I dont want it to traverse any other value at all only those that

Re: [Zope] getslice Error?

2000-07-31 Thread R. David Murray
On Mon, 31 Jul 2000, Marko MARKOVIC wrote: dtml-in "showNSDetails(nsref=old_nsref)" start=query_start dtml-call "REQUEST.set('sdate','%s.%s.%s' % (ns_entrydate[8:],ns_entrydate[5:7],ns_entrydate[:4]))" input type="text" name="new_nsentrydate" value="dtml-var sdate" size="10" /dtml-in

Re: [Zope] ZCatalog updating

2000-07-31 Thread R. David Murray
On Mon, 31 Jul 2000, Aaron Williamson wrote: I am convinced this is a stupid question that has been answered a hundred times already, but after scouring zope.org and the archives, I still don't know the answer, so... How can I automatically update my ZCatalog when items have been

Re: [Zope] Zope and large files strategies?

2000-07-31 Thread R. David Murray
On Mon, 31 Jul 2000, Marcin Kasperski wrote: Are there any limitations for placing large (say 15 MB) files inside zope databases? What people running zope services and having to serve such a files usually do - place them in zope or serve them with apache (placing links inside zope web)? No

Re: [Zope] Zpatterns makefile problem

2000-07-31 Thread R. David Murray
On Mon, 31 Jul 2000, Owen Smith wrote: make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/usr/local/dc/zope/lib/python/Products/ZPatterns' make: *** [boot] Error 2 Where am I going wrong? I know

Re: [Zope] Old Zope

2000-07-31 Thread R. David Murray
On Mon, 31 Jul 2000, Luis Cortes wrote: Does anybody know where I might still be able to download Zope 2.1.6? Thank ahead of time for any help, If you look at the URL you would access to download 2.2.0, and replace the version number with 2.1.6, I think you'll find you can still download

Re: [Zope] From a Folder to a Product

2000-07-31 Thread R. David Murray
On Mon, 31 Jul 2000, Cesar A. K. Grossmann wrote: If someone wants to point some general guidelines, the folder contains only the dtml docs/methods and SQL connection/SQL Queries used to do the report, and the only thing that changes from one to another customer is the SQL connection (every

Re: [Zope] From a Folder to a Product

2000-08-01 Thread R. David Murray
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,

Re: [Zope] Separate Instances of Zope

2000-08-02 Thread R. David Murray
On Tue, 1 Aug 2000, blueeye wrote: If this server goes down, can I have a backup zope server that replicates the main server? Depending the on the volatility of the data, you could just periodically copy the Data.fs file to the backup machine. --RDM

Re: [Zope] 2.2 Explicit/implicit problem.

2000-08-02 Thread R. David Murray
On Tue, 1 Aug 2000, Capesius, Alan wrote: The button displayed under Ownership indicates that they can switch, but does nothing when clicked. Perhaps this is a manifestation of the 'boolean properties can't be unset' bug reported here earlier? --RDM

Re: [Zope] dtml-calendar question.

2000-08-02 Thread R. David Murray
On Sat, 12 Aug 2000, tom smith wrote: dtml-in get_days_events(dtml-var "date.mm()"/dtml-var "date.dd()"/dtml-var "date.yy()") Untested: dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())" Inside the quotes you are in Python... --RDM

Re: [Zope] dtml-calendar question.

2000-08-02 Thread R. David Murray
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote: | Untested: | | dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())" | | Inside the quotes you are in Python... kind of... Well, yeah. A restricted python environment. The point being, it follows python syntax

Re: [Zope] dtml-calendar question.

2000-08-02 Thread R. David Murray
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote: | Well, yeah. A restricted python environment. The point being, it follows | python syntax rules grin. kind of... :-) In what way does it *not* follow Python (expression) syntax rules? --RDM

Re: [Zope] dtml-calendar question.

2000-08-03 Thread R. David Murray
On Thu, 3 Aug 2000, Chris Withers wrote: In what way does it *not* follow Python (expression) syntax rules? _['something'] doesn't just return the value from the dictionary which has the 'something' key, if it's callable, it'll try to call it and then return that... not nice :( If you

Re: [Zope] dtml-calendar question (still not working)

2000-08-03 Thread R. David Murray
On Thu, 3 Aug 2000, tom smith wrote: I'm still getting allsorts of errors. My code is like this... dtml-let yearnr="date.yy()" monthnr="date.mm()" daynr="date.dd()" dtml-let startDateString="monthnr+'/'+daynr+'/'+yearnr" dtml-in expr="get_days_events(startDateString)"

Re: [Zope] Zope Usage

2000-08-03 Thread R. David Murray
On Thu, 3 Aug 2000, Marc Dullien wrote: Q1: With what tool inside Zope do I program the HTML Templates ? Read the DTML reference. Q2: I want to fill those templates with database entries Read the ZSQL reference. Q3: How can I do the linkage Isn't that the same as Q2? If you could send

Re: [Zope] dtml-calendar question (I GOT IT!!!!!!!!)

2000-08-04 Thread R. David Murray
On Fri, 4 Aug 2000, tom smith wrote: notice the startDateString=StartDateString...which I thought the dtml-let would've handled, anywaythis seems to have fixed it can anyone tell me why? ZSQL methods do not pick variables up out of the name space because the possability of unintended

Re: [Zope] Zope with two platforms.

2000-08-04 Thread R. David Murray
On Fri, 4 Aug 2000, Francisco Assis Rosa wrote: We would like to be able to have new developments on products to be passed from the development platform to the staging platform and to have new content to be passed from the staging platform to the development platform. I wonder if you could

Re: [Zope] Precondition

2000-08-04 Thread R. David Murray
On Fri, 4 Aug 2000, RC Compaan wrote: What does the "Precondition" property of the file class refer to? As far as I can tell from a quick scan of the source, the precondition is an object that is called just before the file object is rendered. It can raise an exception, in which case the object

Re: [Zope] Vocabulary??

2000-08-04 Thread R. David Murray
On Fri, 4 Aug 2000, Sven Hohage wrote: think I've missed something. What is the feature "Vocabulary"??Just a hint please! A Vocabulary allows you to associate an arbitrary method of parsing input text into words for the purposes of cataloging and searching in text indexes. The default

Re: [Zope] Precondition

2000-08-06 Thread R. David Murray
On Sun, 6 Aug 2000, Martijn Pieters wrote: Precondition Allows you to specify a precondition for the File. A precondition is a method or document which is executed before the File is viewed or downloaded. If the precondition raises an exception then the File cannot

Re: [Zope] substring search on zcatalog textindex

2000-08-14 Thread R. David Murray
On Thu, 10 Aug 2000, Chris Withers wrote: Casey Duncan wrote: TextIndexes index individual words separately (using a vocabulary object to identify each word in the catalog). All non-alphanumeric characters (such as punctuation) are dropped so that excludes searching for "?" or "*" or any

Re: [Zope] Requested Zope feature

2000-08-14 Thread R. David Murray
On Wed, 9 Aug 2000, Martijn Pieters wrote: I am currently implementing Skinnable objects for Zope that'll allow you to easily define an alternative version of the management interface, and switch between these interfaces very easily. You could build your own version that doesn't use

Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread R. David Murray
On Mon, 14 Aug 2000, Jimmie Houchin wrote: I may be clueless and out of my league here and I haven't read the sources so I don't know... Well enough of a disclaimer. :) I *have* read the ZCatalog/SearchIndex sources, but I don't understand this part of it yet (or really that much of it at

Re: [Zope] Persistence.py does not define Persistent

2000-08-14 Thread R. David Murray
On Mon, 14 Aug 2000, Skip Montanaro wrote: I'm trying to publish my own module with ZServer (from Zope 2.2.0). I get the following traceback: from Persistence import Persistent ImportError: cannot import name Persistent When I look at lib/python/Persistence.py, all I see is a

RE: [Zope] substring search on zcatalog textindex

2000-08-14 Thread R. David Murray
On Mon, 14 Aug 2000, Casey Duncan wrote: Searching TextIndexes you can use "and", "or" or "andnot" as query criteria. I also see support in the source code for near searches using "..." in the query string. I have not been able to get this to work (although the first three work great for me),

Re: [Zope] dtml-in and tuples

2000-08-14 Thread R. David Murray
On Mon, 14 Aug 2000, Jonothan Farr wrote: Well in Python a list is mutable and a tuple is not. Right, but he's asking why dtml-in treats tuples in a special way, and exactly what that behavior is. --RDM - Original Message - From: Chris Withers [EMAIL PROTECTED] Why and how are

Re: [Zope] Best way to subclass DTML Document and some other ZClassesquestions

2000-08-14 Thread R. David Murray
On Mon, 14 Aug 2000, Marcin Kasperski wrote: 1) How can I set standard DTML Document properties (title!) from my constructor? I created constructor form and constructor method, I succesfully prompt for and set all my properties but I do not know how to set properties belonging to DTML

Re: [Zope] Start-up log?

2000-08-14 Thread R. David Murray
On Mon, 14 Aug 2000, William BC Crandall wrote: Simple question: Does Zope generate a log file noting each transaction, including start-up complaints? (I get error messages that scroll out of sight when I run START.BAT.) If you define the enviroment variable STUPID_LOG_FILE to be the

RE: [Zope] Zope - long running process

2000-08-14 Thread R. David Murray
On Sat, 12 Aug 2000, bak @ kedai wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J. Atwood There is a switch in z2.py that allows you to point to a PID file. It will automatically restart your Zope installation once it goes down (if).

Re: [Zope] problem running Zope

2000-08-14 Thread R. David Murray
On Fri, 11 Aug 2000 [EMAIL PROTECTED] wrote: trying to run 'python z2.py" I get an error message saying the executable is incompatible with the hardware (obviously!!). So I tried to recompile the python source on the new machine and everything seemed Note that you will also have to recompile

Re: [Zope] Struggling with Permissions

2000-08-15 Thread R. David Murray
On Tue, 15 Aug 2000, Jean Jordaan wrote: (this is from ccDocClass_add). When I arrive I *still* see: (I'm Anonymous User and I have Anonymous role(s).) Now I edit the URL manually and visit /docs/manage, which works *without* prompting me for authentication. I edit the URL back to

Re: [Zope] Getting a document's contents

2000-08-15 Thread R. David Murray
On Tue, 15 Aug 2000, Joshua Brauer wrote: I have a folder (Parts) that contains dtml documents that are snippets of code. I want to include some of them which I have listed in a variable (select). So I use code like this: dtml-with parts dtml-in select dtml-var

Re: [Zope] How to use RESPONSE.redirect ?

2000-08-15 Thread R. David Murray
On Tue, 15 Aug 2000, Kapil Thangavelu wrote: #example call to above #dtml-call "RESPONSE.redirect(URL1+'?'+url_encode_form_vars(_))" If your original form submits using the GET method, then QUERY_STRING will contain the already URL encoded parameters that the browser sent originally. DTML

Re: [Zope] String Module ??? newbie question

2000-08-15 Thread R. David Murray
On Wed, 16 Aug 2000, Indra Gunawan wrote: my installation is Zope 2.2.0 on W2K. I try to use the find method as follow, why can't it runs? dtml-var "_.find('doraemon','dora')" it said Attribute error: find _.string.find --RDM ___ Zope maillist

Re: [Zope] DTML: fetch an object by its url?

2000-08-15 Thread R. David Murray
On Wed, 16 Aug 2000, Scott Shepherd wrote: In DTML is it possible to get an object using its url? Something like dtml-with "get_object( '/some/local/url' )".../dtml-with Something like. I asked this question a long time ago, and refound the answer by searching the zope.nipltd.com

Re: [Zope] DTML: fetch an object by its url?

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Chris Withers wrote: Shame no-one implemented this into the entity syntax :( dtml-/some/folder/and/path/wotsit; would be so nice ;-) Ooo, that's seriously *ugly* looking syntax grin. --RDM ___ Zope maillist - [EMAIL

Re: [Zope] The mysteries of Product icons ?????

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Daniel Rusch wrote: Then someone had the brilliant idea to change it. I can not figure out how to get Zope to load the new icon. I have deleted the product from Product Management at /Control_Panel / Products, rm the *.pyc files, bounced Zope, but it still hangs on to the

Re: [Zope] modifying/changing DTML properties

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Paul Schreiber wrote: dtml-call "manage_changeProperties('eggs', 'blue')" dtml-call "manage_changeProperties({'eggs': 'blue'})" --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No

Re: [Zope] Best way to subclass DTML Document and some other ZClasses questions

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Marcin Kasperski wrote: dtml-with "mk_dtml_document.createInObjectManager(REQUEST['id'], REQUEST)" dtml-call "propertysheets.Extra.manage_editProperties(REQUEST)" dtml-comment How can I change original title? /dtml-comment dtml-call reindex_object /dtml-with

Re: [Zope] Best way to subclass DTML Document and some other ZClassesquestions

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Marcin Kasperski wrote: Pass it as an argument to the call that creates the DTML Document. How? Currently my constructor method contains the following (mk_dtml_document is my custom class which subclasses DTML Document, Extra is the name of my custom propertysheet):

  1   2   3   4   >