Re: [Zope] SQL-based LoginManager and subtransactions

2001-01-26 Thread Oliver Bleutgen
> I haven't been following this discussion, but it sounds like there's > the potential for SQL operations performed by LoginManager to > interfere with other SQL operations such as logging uploaded files, in > the case where the database system does not support nested (sub-) > transactions. Corre

Re: [Zope] Can't reproduce :-(

2001-01-26 Thread Oliver Bleutgen
Ian Sealy wrote: > I've finally managed to replicate the bug consistently, so I've just > submitted it to the Collector: > http://classic.zope.org:8080/Collector/1895/view > I now know what causes it so I'm able to work around it, which means > that I'm afraid the offer of 400 quid to fix

Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Oliver Bleutgen
> Then change your Z SQL Method to look like; > select * from Customers where > foofield= > > ORDER BY > Hmm, I wouldn't do that, you're trusting the client here, imagine someone going to http://yourserver/staff?orderby=firstname%20;%20delete from Customers; (sufficient dbuser rights assum

Re: [Zope] Creating PDF's

2001-01-20 Thread Oliver Bleutgen
> Hi, > I read in Itamar's 'A Developers Guide to learning Zope' about > 'Reportlab'. > It is a python library to create pdf files. Is there somebody among here > who > already used this library with zope? And is it possible to give a little > example in how we can use it with zope? Tom, I can'

Re: [Zope] Calling other frames (OT)

2001-01-15 Thread Oliver Bleutgen
> I think probably Javascript is the 'cleanest' solution in this case, > but depending on the complexity of your UI another non-JS approach is > to make every link target the topmost frome (e.g., target="_top") and > redraw all frames in the frameset on each 'click'. This way you know > that all

Re: [Zope] UserFolder Alternate Login

2001-01-05 Thread Oliver Bleutgen
> Zopatistas, > I need functionality that none of the UserManagers seem to address. I > need to allow a user to elect to log in (and set > AUTHENTICATED_USER) as opposed to have them access a restricted > resource to trigger cookie authentication. You mean you want to use AUTHENTICATED_USER lik

Re: [Zope] Zope eating CPU/RAM - how do I find the culprit?

2001-01-04 Thread Oliver Bleutgen
> Oliver Bleutgen writes: > > Shouldn't tags for creating sql-statements in ZSQL > > (like dtml-sqltest) quote the variables by default in order > > to prevent unexpected conversions by the database? > Did you check, that standard SQL supports quoted > name

Re: [Zope] Zope eating CPU/RAM - how do I find the culprit?

2001-01-04 Thread Oliver Bleutgen
> Some databases convert them to uppercase! > Oracle is a prominent example! > It took me once some ours to locate a bug resulting > from this "feature". This reminds me of another post I did some time before, but where nobody replied. Shouldn't tags for creating sql-sta

RE: [Zope] LoginManager - logging out

2000-12-20 Thread Oliver Bleutgen
> Thanks for the tips: > 1)the logout method work with shift+reload in IE (how would clear cached > pages from zope?) > 2)the method does not allow me to log > back > in even when I try a redirect to a different page. > I am wondering if something is set incorrectly on my browser. If (2) works >

RE: [Zope] LoginManager - logging out

2000-12-20 Thread Oliver Bleutgen
>> reminded of a previous post in which someone suggested >> http://garbage:x@yourSite would also clear the browser's credential. >> Much faster and works in IE and Konqueror, but not Navigator or lynx. Very >> easy to test, too. >Its just not working for me. > >I am going to try LoginManag

Re: [Zope] LoginManager

2000-12-20 Thread Oliver Bleutgen
> Impo rtError: No module named DynPersist > does the LoginManager dependent from other product of zope? > Do you know which product of zope contians "DynPersist"? Reread the instructions for installing ZPatterns, they tell you how to compile Dynpersist.c. cheers, oliver __

Re: [Zope] To retrieve properties from a dtml document

2000-12-19 Thread Oliver Bleutgen
> Hello Andy, thanks for the advice. > It didn't work. Maybe I'm wrong at any point, so please tell me whether > it worked for you. > I'm aware that this problem has been discussed here before, that it > happens because of Python's object naming, and also that there's a > workaround at least (and

Re: [Zope] Newbie question - Link between Methods based on Authorization

2000-12-19 Thread Oliver Bleutgen
> I am still newbie in Zope, so my question may be stupid - sorry. > I have problem with access to method. Example - There are two methods: A > and > B. Method A contains common information, accessible for all user (include > anonymous). Source code in method B updates data for method A and acces

Re: [Zope] apache/mod_rewrite and user-logging (semi-OT) - workaround

2000-12-18 Thread Oliver Bleutgen
Whoa, seems like my problem was not very interesting... Anyway, I found a solution and hereby make it public. To get apache to log usernames, one has to invoke the apache's authentification machinery. I found out that one can plug perl-modules into apache for doing auth and that there's even a mo

[Zope] apache/mod_rewrite and user-logging (semi-OT)

2000-12-13 Thread Oliver Bleutgen
This is not directly a zope-question, but maybe someone has figured out how to solve this. I'm using apache with mod_rewrite to redirect requests for a certain directory from apache to zope (with option [p]). Now for the first time I can't get apache to do want I want it to, that is logging the

Re: [Zope] Relocating installed zope -- was LoginManager broken?

2000-12-12 Thread Oliver Bleutgen
> Oliver, > I haven't been following this thread, but here's how I do it. > It's quite simple. > 1.Copy the folder with Zope in. > 2.edit z2.py to change all references to the old folder to the new > folder. > 3.edit the start script in the same way. > That should be it. Thanks Ph

RE: [Zope] Relocating installed zope -- was LoginManager broken?

2000-12-12 Thread Oliver Bleutgen
>>Btw. can anybody tell me if and how it's possible to relocate >>an installed Zope? > Hmm... perhaps I am not understanding what exactly you mean, but a thought > might be to use tar (on a UNIX system at least) to preserve your setup. > Assuming you are using ZServer, Try shutting down Zope with

Re: [Zope] LoginManager broken?

2000-12-11 Thread Oliver Bleutgen
> Well, not 2.2.4 but 2.2.3, and I had some bugs when ehm replace 2.2.3 with 2.2.2 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/ma

Re: [Zope] LoginManager broken?

2000-12-11 Thread Oliver Bleutgen
> Does it even *work*? Even a little bit? Because other than repeating the > same process 12 damn times, so far I'm not convinced. Maybe I'll look in > the > source code to see if there's actually anything in the files (other than a > HOWTO.txt, which is empty, which BTW is more annoying than ther

Re: [Zope] HTTP status code 302

2000-12-10 Thread Oliver Bleutgen
Do you > know > any pointer where I can get info on all the headers? This is the specification for http 1.1 http://www.faqs.org/rfcs/rfc2616.html esp. Section 14 for headers, you'll also find 302 and friends explained in this document. and for more pointers http://www.w3.org/Protocols/ c

Re: [Zope] next value

2000-12-06 Thread Oliver Bleutgen
> hi there, > i work with postgreSQL 7.0.2, ZPyGreSQL and zope 2.2 on suse 7.0 linux > for a identifier field adr_id:serial i want to automatically insert a > new number max(adr_id)+1 > how can this be done in an insert into sql statement? > i tried nextval('adr_adr_id_seq') but get an error m

Re: [Zope] HTML - ZOPE?

2000-12-05 Thread Oliver Bleutgen
> Hi, > I'm not sure if this is a strictly zope question, but I hope some people > can give me an idea on how to solve this problem. > I'm creating a form which has amonng it's input tags 2 comboboxes. > Now, the content of one combobox, depends on the selection of the first > combobox. > How

Re: [Zope] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Oliver Bleutgen
> Searching a tool to edit DTML on MS-Windows, I read: > http://www.zope.org/Members/cba/HTML_Kit > It says that HTML-Kit can edit files through FTP. I found that it can only > retrieve files, without being able to browse directories, and that it > cannot > save back files with FTP. Absolutely

Re: [Zope] Help! Accessing product constructors & methods programmatically

2000-12-02 Thread Oliver Bleutgen
> Hello, Zopers-- > I'm fairly new at this, so I apologize if this is a dumb question. > Anyway, I've been looking for a way to do a bulk upload of XML > documents from a local directory. So I need a method (either > DTML or Python is fine with me) that would build a list of files and > cre

Re: [Zope] Why GUF or Loginmanager??

2000-11-30 Thread Oliver Bleutgen
> Hallo, > I'got a fundamental question: > Why should you switch from the built-in authentication mechanism to a > product like GUF or Login-manager?? You can choose the storage for your userdata yourself, which may be practical for i.e. - huge user base and/or you also like to store adresses e

[Zope] ZopeFind expression

2000-11-29 Thread Oliver Bleutgen
I fear this is anywhere in some howtos, but I couldn't find it. How can I get properties of a DTML-Documents parentfolder as expression in ZopeFind? At least I couldn't get the "Find" in Zope's webinterface to show all DTML-Documents whose parent-folder has a certain property. I guess I'm mi

Re: [Zope] VHost logs.

2000-11-29 Thread Oliver Bleutgen
> Jason C. Leach wrote: >> hi, >> >> Has anyone implemented there own logging for Virtual Sites? >> >> I was thinking in the site rules an External Method could be called, >> passed the Request obj, and from that generate logs for virtual sites. >> >> If anyone has done that, or knows of a better

Re: [Zope] strange behaviour of ZSQL methods

2000-11-29 Thread Oliver Bleutgen
> At 15:30 29.11.2000, Oliver Bleutgen wrote: >>You didn't tell what SQL-Database you use, but Postgres and Mysql allow >>logging/monitoring of the queries they get. So you are able to get the >>information straight before/while it hits the backend. > Yes, I'

Re: [Zope] strange behaviour of ZSQL methods

2000-11-29 Thread Oliver Bleutgen
> Hi listies, > something strange is happening with my ZSQL methods. I have a huge query > that works great when testing it in the management-interface - it returns > about 10 records or so. > but when I implement it into a dtml-method getting the parameters via > X-Y-GMX: $flush > REQUEST as usu

Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen
> The problem is that one of your databases doesn't define the commit_sub() > and abort_sub() methods on the DB class it exposes. You don't say which > SQL > database you're using, but this happened to me on a consulting project > with > ZOracleDA. A solution is to add the following methods to t

Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen
> Oliver Bleutgen wrote: >> I fiddled around somewhat and discovered that disabling >> subtransactions in ZCatalog does help (required for using >> ZSQL Methods and ZCatalog in the same transaction). > Yeah, that sux. I think this is a known limitation. I'm not sur

[Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen
Hi, I just wanted to mention a IMO bad pitfall when using ZCatalog, for the sake of sparing others some time. I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was getting the following error when trying to find dtml-documents into ZCatalog: Error Type: AttributeError Erro

Re: [Zope] come see new.zope.org

2000-11-28 Thread Oliver Bleutgen
> If no one manages to break it, we're going to switch over wednesday, late. > In the meantime, if people want to wget or ab it, feel free! > ~ethan Don't forget to change http://63.102.49.33/About/Hardware ;-) cheers, oliver ___ Zope maillist

Re: [Zope] URL-problem

2000-11-21 Thread Oliver Bleutgen
> Thanks for your reply, but the main problem is the navigation. > The admin part is the normal browse-version + an admin interface at the > bottom of every side. > So when you are in root/main/press and you click on the new button a > script > adds a new object. > But how do I solve the navigati

RE: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Oliver Bleutgen
> I know this sounds silly, but try making the url end with .csv > I wrote a perl cgi script some time ago that spit out a csv file. When it > ended with .csv, IE seemed to ignore the server's Content-type: text/html > header. > http://finance.yahoo.com/q?s=WCG&d=v1 > Look, my stock is falling!

Re: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Oliver Bleutgen
> I'm create a CSV file that I would like browsers to get the "save as" > dialog when they select it. > I'm using RESPONSE.write() to write out the CSV file, and I set the > Content-Type before calling RESPONSE.write > Netscape seems to work ok, it pops up a save box for "text/csv" and > "appli

Re: [Zope] RE: Wampum Generator

2000-11-09 Thread Oliver Bleutgen
> It's a Winzip thing. I'll bet wampum generator is a .tar file, just rename > it to a .tgz file and it should open just fine. Just some thoughts/guesses: I'll bet Kathy uses Internet Explorer. Don't know about Netscape, but it becomes more and more difficult to get IE _not_ to try to be "smart

Re: [Zope] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Oliver Bleutgen
> Hamish Lawson <[EMAIL PROTECTED]> wrote > Python Zope Method > Perl Zope Method > SQL Zope Method > DTML Zope Method > Rebol Zope Method > Java Zope Method > VB Zope Method > Custom Zope Mthod > etc.. and perhaps let "Zope Method" become a "ZMethod", a bit shorter. oliver ___

Re: [Zope] AW: [Zope] Trying to follow tutorial

2000-10-24 Thread Oliver Bleutgen
> 2. logout as superuser (e.g. close all browsers...) Ha, I always wanted to bring in a IMNSHO better way to "logout" - it works at least in IE. try http://log:[EMAIL PROTECTED] So the cached login/password are overwritten by log/meout and zope (or every other server) brings up the login dialo

Re: [Zope] Apache in front of ZServer

2000-10-24 Thread Oliver Bleutgen
> * [EMAIL PROTECTED] (JXrn Helge B. Dahl) > On a second thought: What I _really_ want (I think, unless someone > tells me differently :-) ) is a conditional ProxyPass, to tell apache > to redirect everything _unless_ the URI is /static (or something). > But this is probably something for apach

Re: [Zope] Problems with mysql and sql methode

2000-10-23 Thread Oliver Bleutgen
> At 09:41 23/10/00, you wrote: >>Hmm, I'm not very clear about differences between handling of (table, >>column) names >>in sql-databases, but postgres IS case sensitive (in some sense). > Well I'm confused !!! > I have two databases , one MySQL (3.23.25) one PostgreSQL (7.01), both > with > th

Re: [Zope] Problems with mysql and sql methode

2000-10-23 Thread Oliver Bleutgen
> MySQL is case-sensitive over table names, so MERCHANTPAYMENT is not the > same as merchantpayment. > Other databases (Postgresql, Informix) are not. > Perhaps the Access/ODBC interface hides the case-sensitivity while the > direct ZMySQLDA does not ? Hmm, I'm not very clear about differences

Re: [Zope] dtml-sqltest and capital column names

2000-10-13 Thread Oliver Bleutgen
Talking to myself A slight correction to my patch so that tablename.columname will be rendered as to "tablename"."columnname". 146c146 < from string import find, split, join, atoi, atof --- > from string import find, split, join, atoi, atof, replace 165,166c165,166 < if has_key('col

[Zope] dtml-sqltest and capital column names

2000-10-12 Thread Oliver Bleutgen
Hi, I'm using zope 2.2.2 with postgres 7.0.2 and ZPopyDA 0.6.4. I encountered a problem with dtml-sqltest and capitals in column names. Well, I simply couldn't get it to work because postgres requires column-names with "special characters" like capitals to be enclosed with quotation marks, ie.

[Zope] Fw: Re: [Zope] Animated GIFs

2000-10-09 Thread Oliver Bleutgen
> Seb Bacon schrieb: >> > >> > I also tried to name the animGif explicitely animGif.gif instead >> > of animGif - guessed what? - same problem! >> > >> > Any more ideas, please? >> > >> >> have you tried doing a diff on the zope and non-zope versions to see if >> zzope's somehow mangled it? >> >>

Re: [Zope] Images slow rendering problem

2000-09-05 Thread Oliver Bleutgen
> Hi, > I already posted this message several monthes ago, expecting a new Zope > version would fix the problem, but... > I have some images on my pages (let's say 10 - not a lot), rendered > either by dtml-var or a manual tag. > When I render the page on some of my LAN boxes (especially with

Re: [Zope] Client.py

2000-08-09 Thread Oliver Bleutgen
> hi all > has anybody successfully used Client.py that ships with Zope-2.2.0? i > can't > seem to run it. even on the command line. i've searched the mailing > list, > but to no avail > this is what i did: > python Client.py http://www.zope.org > and here's the traceback. > Traceback (innerm