Re: [Zope] Deleting data using ZSQL

2000-09-29 Thread Kees de Brabander
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 29, 2000 5:17 AM Subject: [Zope] Deleting data using ZSQL Hi, I am writing a dtml method that deletes data from a database, and I found myself unable to do this. It seems that ZSQL is used

Re: [Zope] Deleting data using ZSQL

2000-09-29 Thread Chris Withers
[EMAIL PROTECTED] wrote: "delete from table where var=dtml-var foo" I am surprised at this behaviour. Am I doing somehting worng? or this is how it works? Is there any information on how to do this somewhere??? This should work :-) What error messaegs are you getting? What DB and DA are

[Zope] dtml-with equivalent in external methods?

2000-09-29 Thread Phil Harris
Hi all, I know I've seen the answer to this somewhere, but I'm buggered if I can find it. Anyone know offhand how to do an equivalent to dtml-with in an external method? tia Phil [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED]

[Zope] Property problem - still the same...

2000-09-29 Thread Lars Heber
Hello again, I recently set a question about nested properties. Unfortunately, we didn't come to a proper solution. I was told to use ZClasses, and I read a lot of documentation about it. But I found out that this isn't the thing I was searching for. So, now I'll try it again, very concrete

Re: [Zope] Property problem - still the same...

2000-09-29 Thread Peter Sabaini
hi afaik its not possible to nest properties. what about dtml method mytitle in the root folder consisting of dtml-var enterprisename - dtml-var title or something like this? this will acquire title from the current document and enterprisename from the rootfolder provided theres not

[Zope] zope needs webdav global access *ON/OFF* feature

2000-09-29 Thread Júlio Dinis Silva
Hi all, I think zope MUST have a way to disable webdav access. Running a webdav client on some zope sites I found in almost all of them things like test_html index_html_old and some other forgiven methods that programmers leave on their applications. Depending on what test programmers were doing

[Zope] Uploading images my way

2000-09-29 Thread Danny William Adair
Hi all! How can I upload/change an image in my zodb using custom forms. A call to "manage_upload" seems to always take me to a feedback form saying "Your changes have been saved.". How can I upload using customized forms _only_? tia Danny ___ Zope

Re: [Zope] Suggestion: Zope.org, products and testing...

2000-09-29 Thread J. Atwood
At 12:29 PM +0900 9/29/2000, Alexander Schonfeld wrote: ?On the zope.org site, how about adding a property for products: "tested versions of Zope". That way we could know, without doing all the testing ourselves, whether or not a product was useable. I second that. It should also be by release

[Zope] private Yihaw folders and yihaw_latest method.

2000-09-29 Thread Didier Georgieff
Hello, i have a security/viewing concern. I have some Yihaw folders who are not public. I removed the "view" permission on the folder, and trying to get in call the authentication windows. Fine. On my main page, i have the whatsnew, latest and toplevel methods with the skip_unauthorized

[Zope] RE: private Yihaw folders and yihaw_latest method.

2000-09-29 Thread Didier Georgieff
Soren, Works like a charm. Thanks. Never used dtml-try before, but it looks like a great feature. I'll look deeper Didier. Le 29 Sep 00, à 15:08, Søren Roug a écrit : Yes, put a dtml-try dtml-except /dtml-try around the problem. Look in yihaw_whatsnew for an example. || -Original

[Zope] logout from basic authentication ... almost

2000-09-29 Thread Didier Georgieff
Hello, On the archive i got the way to logout from the basic authentication. i have DTML method called "logout" with only : dtml-raise Unauthorized H1Logout requested. OK/H1 /dtml-raise Calling the logout method calls the authenticated window. And i can give a new id/pass. So login as a

RE: [Zope] Deleting data using ZSQL

2000-09-29 Thread Steve Drees
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, September 28, 2000 10:17 PM To: [EMAIL PROTECTED] Subject: [Zope] Deleting data using ZSQL Hi, I am writing a dtml method that deletes data from a database,

[Zope] Zope sites DOS

2000-09-29 Thread Júlio Dinis Silva
Hi all, all you that have sites running zope, its better to optimize your applications deleting methods you do not use anymore and check for you External/Python Methods anonymous permissions. I've just tested some DOS on sites running zope and ppl take care with your methods permissions

[Zope] is www.zope.org down??

2000-09-29 Thread Gilles Lavaux

Re: [Zope] Deleting data using ZSQL

2000-09-29 Thread Phil Harris
Steve, Your user for the dataase does have permission to delete does it? Phil - Original Message - From: "Steve Drees" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 29, 2000 3:00 PM Subject: RE: [Zope] Deleting data using ZSQL -Original

[Zope] manage tabs within my standard_html_header

2000-09-29 Thread Didier Georgieff
Hello, I want to use some standard manage tabs within my site design. 1 - If i call url/manage_main it brings the tabs *without* my header and footer. 2 - if i put a method manage_mylook with dtml-var standard_html_header dtml-var manage_main dtml-var standard_html_footer it works fine

Re: [Zope] Deleting data using ZSQL

2000-09-29 Thread jpenny
On Thu, Sep 28, 2000 at 11:17:03PM -0400, [EMAIL PROTECTED] wrote: Hi, I am writing a dtml method that deletes data from a database, and I found myself unable to do this. It seems that ZSQL is used to insert, update and query a database. but can not use "delete from table where

[Zope] Arbitrary SQL?

2000-09-29 Thread Erno Kuusela
Hello, i'm obviously missing something obvious, but how does one execute arbitrary sql statements from an external method? -- erno PGP signature

[Zope] remind me something: ZODB1 - ZODB2 ??

2000-09-29 Thread Gilles Lavaux
Hello How to comvert a ZOPE 1 exported file into a ZOPE 2 ?? I have done it several time, but a long time ago. And the information is very difficult to find, at least for me. Gilles

Re: [Zope] Uploading images my way

2000-09-29 Thread Peter Bengtsson
How can I upload/change an image in my zodb using custom forms. A call to "manage_upload" seems to always take me to a feedback form saying "Your changes have been saved.". How can I upload using customized forms _only_? dtml-call "_.getitem(myID).manage_upload(myFile)" For the myID in the

[Zope] Class variables

2000-09-29 Thread seb
Hi all I keep finding references everywhere to class variables (e.g. that belong to a class rather than an instance) in ZClasses. I even found some discussions about it in the Zope archive. But although the consensus seems to be that you can do it, no-one seems to know how. Does anyone know

Re: [Zope] How to change Unauthorized error message?

2000-09-29 Thread Chris Withers
Andy McKay wrote: Sure I suppose. How of course to implement this is another issue, as errors get thrown up to /lib/python/ZPublisher/HTTPResponse.py and it would be get to trap them before then. Well, that's what Tres Seaver thought: http://classic.zope.org:8080/Collector/1049/view (he

Re: [Zope] dtml-in sorting problem

2000-09-29 Thread Michael Bernstein
Tim Cook wrote: Michael Bernstein wrote: Here's my problem: I want to sort a list of objects on a property that not all items have. So I'm doing this: dtml-in sort=someProperty,someOtherProperty The problem is that those items that have a blank someProperty are listed first,

Re: [Zope] Arbitrary SQL?

2000-09-29 Thread jpenny
On Fri, Sep 29, 2000 at 06:19:35PM +0300, Erno Kuusela wrote: Hello, i'm obviously missing something obvious, but how does one execute arbitrary sql statements from an external method? Look at http://www.zope.org/Members/jpenny/Accessing_a_ZSQL_Method_from_an_External_Method Now think

[Zope] LocalForum_wAdm import error

2000-09-29 Thread Mario Olimpio de Menezes
Hi, I'm trying to import LocalForum_wAdm and I'm getting the following error: Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named ZnolkSQLWizard.Wizard I

[Zope] ZMySQLDA instal Import Error problem

2000-09-29 Thread Richard Moon
Installing MySQLDA-0.1.2 and running python build.py I get the error Import Error: ./_mysqlmodule.so: undefined symbol: uncompress Any clues ? I've just installed the latest (3.23.25) MySQL rpms on Linux 6.1, including the client and development libraries, this seems to have put stuff in

Re: [Zope] WebDAV's not really the problem...

2000-09-29 Thread Jason Cunliffe
Yes, your fears are valid, but WebDAV really isn't the problem. Zope, at a deeper level, is what is causing your problem. You can find out the above information using any web browser, try this: http://www.cbsnewyork.com/objectIds I see they haven't deleted the QuickStart. Interesting... As

Re: [Zope] Zope 2.2 getUserById error

2000-09-29 Thread Andy McKay
getUserByID seems to have been added in Zope 2.2, I added in a method def getUserById(self, id, default=''): """Return the user corresponding to the given id. """ try: return self.getUser(id) except: raise 'LoginRequired', loginScreen into GUF and it works

[Zope] Two inquiries

2000-09-29 Thread Rudd-O
Hey there people, First, the customary thanks for such a great product. Second - I have two problems. First one is that I got zope compiled for linux then installed Login Manager then installed ZPatterns, but when trying to compile DynPersist.c it can't find ExtensionClass.h. It honestly

[Zope] python methods

2000-09-29 Thread Rudd-O
Oh, another thingy: An object called Python method is supposed to appear on the Add list? or am I supposed to emulate it with some kind of external method and files? If that's the case, well, sad kludge. Please let me know. --

Re: [Zope] sequence-item is a String? (was: Calling objects with arguments in asequence)sequence)

2000-09-29 Thread Dieter Maurer
seb writes: If you do: dtml-in "objectValues('Foo Thing')" dtml-let thing=sequence-item dtml-var "thing.id()" /dtml-let /dtml-in "sequence-item" is not a string. However, dtml-let ... xxx=name ... calls "name" (if callable) like any name argument to a "dtml"

Re: [Zope] LocalForum_wAdm import error

2000-09-29 Thread Dieter Maurer
Mario Olimpio de Menezes writes: I'm trying to import LocalForum_wAdm and I'm getting the following error: Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No

Re: [Zope] Calling objects with arguments in a sequence

2000-09-29 Thread Dieter Maurer
Tres Seaver writes: You were very close -- the trick here is that 'objectValues' returns real objects, not IDs. Try this (untested):: dtml-in "objectValues( [ 'Photo' ] )" dtml-let photo=sequence-item !-- alias so we can use in expr! -- dtml-var "photo( display='thumbnail'

Re: [Zope] Getting properties of objects

2000-09-29 Thread Dieter Maurer
Daniel Rusch writes: I am trying to build a property seach engine that will search an entire Zope site for a names property Have a look at "ZopeFind" and the property API. "ZopeFind" is the magic behind Zope's "find" support. It can search a complete subtree and return the list of

Re: [Zope] dtml-with equivalent in external methods?

2000-09-29 Thread Dieter Maurer
Phil Harris writes: Anyone know offhand how to do an equivalent to dtml-with in an external method? Do you have a namespace (i.e. a DocumentTemplate.DT_Util.TemplateDict)? If so, you use its push method. If the thing, you would like to "with" is an object (rather than a mapping), you would

Re: [Zope] iterating through ids and getting their properties

2000-09-29 Thread Dieter Maurer
Aaron Payne writes: I have a list of ids which correspond to instances in a folder. I want to iterate through the list and display their properties. I get an attribute error when rendering the page. dtml-in pendlist dtml-call "REQUEST.set('theContainer',

Re: [Zope] Reading/Parsing HTML Files from another server

2000-09-29 Thread Dieter Maurer
seb writes: You could write a simple external method that uses httplib, e.g. "urllib.urlopen", probably, would even be easier. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] copy users

2000-09-29 Thread Dieter Maurer
Cornelis J. de Brabander writes: I have a folder containing subfolders for different departments I would like to have all user objects in one folder. You probably would need an external method, as sensitive information (such as passwords) is shielded from DTML access. Have a look at

Re: [Zope] SQL errors

2000-09-29 Thread Dieter Maurer
Andy McKay writes: Using ZODBC Database Adapter to connect to an MSSQL and I can call the sql method in dtml eg: dtml-try dtml-call "SQL_add_user(REQUEST)" dtml-except sql.error Error! /dtml-try But does anyone know a way of trapping the specific error eg: database

Re: [Zope] python methods

2000-09-29 Thread Phil Harris
Python methods are not yet part of the standard distribution, you can however get the product install tarball from Zope.org - Original Message - From: "Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega Creative Solutions http: //www.alomega.com/" [EMAIL PROTECTED] To: [EMAIL

Re: [Zope] dtml-with equivalent in external methods?

2000-09-29 Thread Phil Harris
Dieter, Thanks for replying but I was being a bit confused, by science so to speak. It was a lot simpler than I thought. Thanks anyway. Phil - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Phil Harris" [EMAIL PROTECTED] Cc: "Zope@Zope. Org" [EMAIL PROTECTED] Sent:

[Zope] PIL and Win32 (Imaging.dll)

2000-09-29 Thread Peter Bengtsson
I've followed all README's and searched the mailing archive. Been to pythonware.com, downloaded Imaging1.1, installed the Photo product, but still can't get it working. I think I now need the Imaging.dll file, which is not provided on pythonware.com. Does anyone have whatever it takes to get

RE: [Zope] PIL and Win32 (Imaging.dll)

2000-09-29 Thread Damien Morton
Theres no pre-compiled binary of PIL1.1 I stuck to version 1.0, for which _imaging.dll is supplied. I created a directory at zope/lib/python/PIL and put everything in there I also found i needed tcl80.dll and tk80.dll in there, as well as _tkinter.pyd runs fine now -Original

Re: [Zope-dev] mailing list 'noise'

2000-09-29 Thread Rik Hoekstra
Karl Anderson wrote: Ken Manheimer [EMAIL PROTECTED] writes: I dont see this as a problem: You only create a new list when the traffic for that proposal gets too great for zope-dev. Threading is good enough before that point. Yes, but zope-dev has a relatively high

Re: [Zope-dev] StructuredText: Best possible :-S

2000-09-29 Thread Chris Withers
Ken Manheimer wrote: As i did in my example, by indentation. (This is a primary component of the "structure" in StructuredText. Maybe we're not being clear enough about that in our explanations of structured text - i would expect that not knowing about it could make it much much harder to

Re: [Zope-dev] WikiDot

2000-09-29 Thread Chris Withers
Ken Manheimer wrote: (I wonder whether having a single quick ref page for structured text, linked to on every edit form, would go a long way to reducing those objections. Particularly if the quick ref page is clear and concise.) Not really... the fact that you even need one of those is why

Re: [Zope-dev] URL Traversability of non-page objects

2000-09-29 Thread Chris Withers
Dieter Maurer wrote: Chris Withers writes: A **page** is the result of applying presentation to data in the object system. A page is a particular result of a URL when viewed under certain conditions. I'd like to add to this: components used to make up 'page's

Re: [Zope-dev] Soft links again

2000-09-29 Thread Ibañez Palomar Juan David
Hi Shane, and thanks for Symlink, it's a big step towards solve the problem, but remains an issue... It would be great if the symbolic link could have a different id than the object referenced. But with the __of__ based solution "link.id" is always "referenced_object.id". How this could be

Re: [Zope-dev] Soft links again

2000-09-29 Thread Shane Hathaway
On Fri, 29 Sep 2000, Ibañez Palomar Juan David wrote: It would be great if the symbolic link could have a different id than the object referenced. But with the __of__ based solution "link.id" is always "referenced_object.id". How this could be done? I think you'd need a special kind of

Re: [Zope-dev] Soft links again

2000-09-29 Thread Ibañez Palomar Juan David
On Fri, 29 Sep 2000, Ibañez Palomar Juan David wrote: It would be great if the symbolic link could have a different id than the object referenced. But with the __of__ based solution "link.id" is always "referenced_object.id". How this could be done? I think you'd need a special

[Zope-dev] Fix for Can't Change Image File Security Settings in Zope 2.2.x

2000-09-29 Thread Chris Withers
Hi, You may, like me, have noticed that you can't change security settings on Image and File objects in Zope 2.2.x. This is because the __call__ method of these objects was removed by the appropriate bit of __ac_permissions__ wasn't taken out. The patch in the PS fixes this... cheers, Chris

[Zope-dev] Re: New Proposal: PersistentBlob

2000-09-29 Thread Gregor Heine
Hi all, Yesterday I put up a new proposal on the http://dev.zope.org site that documents my vision of PersistentBlob. The main idea is the be able to mark blocks of strings (text or binary) content for storage in a file system as individual files. (Or blobs in a relation table.) The

[Zope-dev] Only using ZODB, not Zope Re: New Proposal: PersistentBlob

2000-09-29 Thread John D. Heintz
Hi Greg, Thanks for the pointer. I briefly looked at this Product and the CVSMixin Product as well, but have one requirement that unfortunately I _didn't_ explain clearly in my proposal. I am not using Zope, only the ZODB so a Zope Product will not help me. My first goal with the proposal was

Re: [Zope-dev] mailing list 'noise'

2000-09-29 Thread Ken Manheimer
On Fri, 29 Sep 2000, Rik Hoekstra wrote: Karl Anderson wrote: I read the 2-10 articles that I'm probably interested in, and miss the 95% which is almost always noise. The question is why you'd want to receive all this if you don't have to (as remarked above). As I understood it, the

Re: [Zope-dev] why cant i rename an object from an external method

2000-09-29 Thread Andy McKay
Grrr That works fine. But it annoys me I cant use a standard function to that. I like to use a standard function and use the checking that someone else wrote. old_id = obj.id() new_id = ASPNTools.safetymunge(obj.id()) self = obj.aq_parent ob = obj

[Zope-dev] Skinscript tutorial. How's it going?

2000-09-29 Thread topcheese
Just wondering if there is a new time frame. ___ 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

[Zope-dev] ZPL HowTo?

2000-09-29 Thread Lalo Martins
We wished to release the new development version of HiperDom under the ZPL, but we figured it wouldn't be that simple, as the license text is all littered with "Digital Creations". Is it just a matter of s/Digital Creations/Hiperlógica/g? Is this even legal? (This message is mostly rethorical,

Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists?

2000-09-29 Thread Steve Spicklemire
Thanks so much for the response... It turns out, I tried the Python Method and it had the same basic problem as the DTML Method... however I've now moved on, using deletageRetrieve to a new thorny issue. ;-) When I get an object from of another specialist it appears that it doies not inherit

Re: [Zope-dev] Namespace trouble

2000-09-29 Thread Dieter Maurer
Martin =?ISO-8859-1?Q?Gr=F6nemeyer?= writes: if've had little namespace problems with this code-snipped (dtml-method): dtml-with REQUEST dtml-in "[1,2,3,4,5,6,7,8]" dtml-call "REQUEST.set('row_index',_['sequence-index'])" dtml-var "REQUEST.get('row_index')" dtml-var

Re: [Zope-dev] Skinscript tutorial. How's it going?

2000-09-29 Thread Phillip J. Eby
At 06:33 PM 9/29/00 GMT, [EMAIL PROTECTED] wrote: Just wondering if there is a new time frame. FWIW, I have begun writing a SkinScript reference document on the ZPatterns Wiki. Lots of sections are just outlines at the moment, but it's already much better than any other available information

Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists?

2000-09-29 Thread Phillip J. Eby
At 03:14 PM 9/29/00 -0500, Steve Spicklemire wrote: Thanks so much for the response... It turns out, I tried the Python Method and it had the same basic problem as the DTML Method... however I've now moved on, using deletageRetrieve to a new thorny issue. ;-) When I get an object from of

[Zope-dev] two-phase-commit question

2000-09-29 Thread Kapil Thangavelu
ZOPE_HOME/lib/python/Shared/DC/ZRDB/TM.py Glancing over the Transaction TM mixin class... i noticed a line commit=tpc_abort=tpc_begin i can understand tpc_begin=commit, but the abort seems strange. if an abort happens in the two phase commit the equality doesn't make sense to me. whats going