Re: [Zope] Zope + Apache + mod_proxy + SiteRoot = some links not proxied?

2006-04-10 Thread Tino Wildenhain
is the host:port zope listens. HTH Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] what process does Zope run as?

2006-04-17 Thread Tino Wildenhain
Lars Hohmuth wrote: What process does Zope run as in Windows XP? I finally tracked down the 10053 errors in Plone’s MailHost down to port blocking in one of McAfee’s virus scanners. But neither enabling port 25 for python.exe, java.exe, or pythonservice.exe seems to work. Getting rid of the

Re: [Zope] REQUEST.form variables order

2006-04-19 Thread Tino Wildenhain
Gaute Amundsen wrote: I want to retrieve the form fields in the order that they where submitted in the http POST. I know this has been brought up before, and that the answer is You cant. http://mail.zope.org/pipermail/zope/2005-October/162460.html For zope to refuse to expose this

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Wednesday 19 April 2006 21:47, Tino Wildenhain wrote: Gaute Amundsen wrote: I want to retrieve the form fields in the order that they where submitted I'd say blaming zope for not reading the docs is somewhat arrogant .-) I have been reading the docs for thee

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
Gaute Amundsen schrieb: ... The order of the form elements that goes into mail headers is ofcourse irelevant. I'ts the rest of the form, you know name, adress, street, etc. that are the problem. It's a purely visual thing, but when you have a form with perhaps 50 fields, that the client has

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
') if request.form.has_key(e)] which gives you the form elements in a nice list with their respective values. Advantage: this makes it impossible for an attacker to just supply more/other form fields then originally were in the form. Regards Tino Wildenhain

Re: [Zope] Regular Expressions

2006-04-20 Thread Tino Wildenhain
/Yourproduct/__init__.py and edit it accordingly. Restart zope and use the modules you want. Make sure you enable only modules you really can trust. Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] Permissions, files and folders

2006-04-21 Thread Tino Wildenhain
Erik Billing schrieb: Ah! Thanx! DocFinder will shore come very useful in time =) Btw, what editor would you recommend for writing python outside Zope. I've frequently used Eclipse with PyDev before, but it's a bit slow and heavy. I've looked around a bit on the free editors without finding

Re: [Zope] how to decode base64 in DTML?

2006-05-04 Thread Tino Wildenhain
Jaroslav Lukesh wrote: From: Andreas Jung [mailto:[EMAIL PROTECTED] import cStringIO import mimetools import binascii binascii.a2b_base64('YWxla2liYW5nb0B6dWcuY3o=\n') in commandline python works OK. Move such code inside a PythonScript..such code does not belong into DTML.. it just bad

Re: [Zope] Preventing files from being viewed by web clients

2006-05-08 Thread Tino Wildenhain
Brian wrote: I have a flash app that accesses .xml files. The source is viewable and some creative crackers have figured out how to meld a url together to get vital information from those .xml's. Well, dont put vital information there :-) I need to prevent the web client from directly

Re: [Zope] Chrooted zope /dev requirements?

2006-05-19 Thread Tino Wildenhain
Michael Dexter wrote: Hello, Has anyone chrooted Zope/Python on OpenBSD or other and determined what minimum devices are required for correct functionality? Willing to share? :) Well, all you need is python and the libs. Otoh, what do you think you get from chrooting it? :-) Zope should

Re: [Zope] windows python differences

2006-05-19 Thread Tino Wildenhain
garry saddington wrote: This code on linux works without a problem ispell = os.popen(echo + word + | /opt/scholarpack/ancillary/ispell/bin/ispell -a) ispell.readline sentence = ispell.readline() What if the word is like `rm -rf /` for example? Doing something like that above is

Re: [Zope] windows python differences

2006-05-19 Thread Tino Wildenhain
garry saddington wrote: On Fri, 2006-05-19 at 09:01 +0200, Tino Wildenhain wrote: garry saddington wrote: This code on linux works without a problem ispell = os.popen(echo + word + | /opt/scholarpack/ancillary/ispell/bin/ispell -a) ispell.readline sentence = ispell.readline() What

Re: [Zope] Zope will not allow access after IP address change

2006-05-26 Thread Tino Wildenhain
much sense...) Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org

Re: [Zope] dtml forwarding request

2006-06-08 Thread Tino Wildenhain
dont remember the name w/o looking at the source. Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Tino Wildenhain
: 1.) the excat zope version 2.) manage_page_charset settings 3.) default encodings set in zope.conf etc. Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

Re: [Zope] When is an empty list not an empty list?

2006-06-18 Thread Tino Wildenhain
John Schinnerer wrote: Aloha, I have a python script, getCatalogItems(), which returns a (possibly empty) list resulting from a catalog query. The lone parameter is the sort index; the rest of the query is taken from the request. Anyhow... If nothing was found, I don't want to display an

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Tino Wildenhain
Alric Aneron wrote: Hello, I have a dictionary object and a result set object (that was returned from a ZSQL method). Is there any way I can merge them into one variable and use them in a dtml-in statement? You should know which one should update which one. So assuming your dictionary has

Re: [Zope] Nested dtml tags

2006-06-20 Thread Tino Wildenhain
Jonathan Bowlas schrieb: Hi All, How can I do this with dtml? select name=MODLEVEL size=1 dtml-if expr=dtml-var name=MODLEVEL == 1 #I need an alternative to this. option value=1 selected=selected1/option option value=22/option Etc, etc.

Re: [Zope] Nested dtml tags

2006-06-20 Thread Tino Wildenhain
Jonathan Bowlas schrieb: Hmm, this doesn't appear to work. Let me explain what I'm trying to do. I have a Z SQL Method called selectmoduleinfoMethod that contains the SQL: SELECT * FROM RECMGR_EL_MODULE_Query WHERE MODCODE = dtml-sqlvar MODCODE type=string You should never use

Re: [Zope] Transaction rollback

2006-06-21 Thread Tino Wildenhain
Luiz Fernando B. Ribeiro schrieb: I need to return an error page with instructions after verifying a request but I need to do a rollback. How can I call a full rollback, like when using raise(), inside a python script and redirect to an error page. I found many posts about

Re: [Zope] How to commit a piece of data in a transaction when the transaction is being aborted later

2006-06-21 Thread Tino Wildenhain
William Heymann schrieb: On Tuesday 20 June 2006 12:47, Chris McDonough wrote: I'd just record the data from Verisign in response to their POST (do nothing else) and come along later with a separate request to pick through the data to do postprocessing on it every so often; then the data

Re: [Zope] Display Image Object in DTML

2006-06-21 Thread Tino Wildenhain
jose carlos schrieb: Hi all, i'm trying to show a Image object in dtml but i don known how to do it. i have a user object and this user have a jpg foto atributte. this foto atributte is a instance of OFS.Image and when i try to view in dtml only view Ascii character.. i think about to create

Re: [Zope] Display Image Object in DTML

2006-06-21 Thread Tino Wildenhain
Andreas Jung schrieb: --On 21. Juni 2006 10:00:12 +0200 jose carlos [EMAIL PROTECTED] wrote: Hi all, i'm trying to show a Image object in dtml but i don known how to do it. i have a user object and this user have a jpg foto atributte. this foto atributte is a instance of OFS.Image and when

Re: [Zope] How to commit a piece of data in a transaction when the transaction is being aborted later

2006-06-21 Thread Tino Wildenhain
William Heymann schrieb: On Wednesday 21 June 2006 01:17, Tino Wildenhain wrote: William Heymann schrieb: That is probably a good idea for long term to change things that way and I would like to rewrite it. However right now I don't really want to rewrite the way the current system works

Re: [Zope] ExternalMethod for exporting un-pickled Office files to the filesystem etc

2006-06-22 Thread Tino Wildenhain
this over ZEO via zopectl run thescript.py somewhere/to/targetdir There are possibly many improvements (creating subdirectories, fixing extensions and so on) Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman

Re: [Zope] ExternalMethod for exporting un-pickled Office files to the filesystem etc

2006-06-22 Thread Tino Wildenhain
() for that) directory creating isnt that hard either, its just some recursion and checking... Regards TIno Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope] ExternalMethod for exporting un-pickled Office files tothe filesystem etc

2006-06-22 Thread Tino Wildenhain
usually dont wear an opaque string with data but linked PData elements which could be read block by block instead of the simple str() in my implemention. Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] Basic Authentication SSL Redirector

2006-06-23 Thread Tino Wildenhain
the same time. (For example you cannot really log out with Basic Auth) Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] Re: Basic Authentication SSL Redirector

2006-06-23 Thread Tino Wildenhain
Josef Meile schrieb: After having started the thread about securing CookieCrumbler[1], I figured out that it was better to secure Basic Authentication instead. So, I just Which is actually identically :-) Its just a different HTTP-Header involved :-) Yes, but you won't send your

Re: [Zope] Re: Basic Authentication SSL Redirector

2006-06-23 Thread Tino Wildenhain
Josef Meile schrieb: Yes, but you won't send your credentials in plane text as you do with CookieCrumble, will you? Well, its more or less exactly the same as with BasicAuth :-) (base64 plaintext vs. plaintext in html forms does not really matter) Yes, but if you set only the authentication

Re: [Zope] Searching for and displaying properties

2006-06-24 Thread Tino Wildenhain
Sinang, Danny wrote: Dear All, I managed to add a property to an object by using the manage_addproperty () method. However, if I don't issue a manage.reindexIndex () for the new property, it won't come out in the catalog search results. manage_addProperty does not trigger recataloguing

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Tino Wildenhain
) context.REQUEST.RESPONSE.setHeader('Content-Disposition','attachment; filename=%s' % context.getId()) Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Tino Wildenhain
context.REQUEST.RESPONSE.setHeader('Content-Disposition','attachment; filename=%s' % context.getId()) Nice idea, but what i need is different. In PHP there is a function called readfile, i'm sure there is something also in Zope, but i'm not able to find it! No, I can tell you you are on the

Re: [Zope] attaching an image to an email

2006-06-29 Thread Tino Wildenhain
Kate Legere schrieb: I get a result like : Cv/Y/+AAEEpGSUYAAQEBAEgASAAA/9sAQwAHBAQEBQQHBQUHCgcFBwoMCQcHCQwNCwsMCwsNEQ0N DQ0NDRENDxAREA8NFBQWFhQUHh0dHR4iIiIiIiIiIiIi/9sAQwEIBwcNDA0YEBAYGhURFRogICAg ICAgICAgICAgISAgICAgICEhISAgICEhISEhISEhIiIiIiIiIiIiIiIiIiIi/8AAEQgGggXsAwER

Re: [Zope] ZSQL Method Question

2006-07-18 Thread Tino Wildenhain
Peter Bengtsson wrote: What if you have 1,000,000 requests/sec? What if between the INSERT and the LAST_INSERT_ID() another INSERT is made? I use PostgreSQL and with postgres you can always ask the sequence what the next id is going to be. It goes something like this:: next_id =

Re: [Zope] Using the DTML REQUEST Object

2006-07-18 Thread Tino Wildenhain
the DTML templates with ZPT templates. In short, if you dont do application logic with it, even DTML is kinda acceptable. (That said: no call, set, etc. in it) Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope] question on simple_send in MailHost

2006-07-19 Thread Tino Wildenhain
) allow_class(encode_base64) would roughly do it. Pack it nicely, add some ZMI howtos and be ready :-) Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] Catalog aware

2006-07-19 Thread Tino Wildenhain
Garito wrote: Andreas Jung escribió: --On 19. Juli 2006 09:34:58 +0200 Garito [EMAIL PROTECTED] wrote: Andreas Jung escribió: --On 18. Juli 2006 15:14:54 +0200 Garito [EMAIL PROTECTED] wrote: Hi all! Is possible to create an object (for example a Page Template) and make it catalog

Re: [Zope] external method with import tarfile

2006-07-19 Thread Tino Wildenhain
Alan wrote: Hi there! I managed to find the problem and the solution. First, I've forgot to mention that in my script, oname is an uploaded file. I just inserted a f.close() and voilá! def upload_external(self,file,REQUEST): import os,tarfile ... f=open(oname,wb)

Re: [Zope] Catalog aware

2006-07-19 Thread Tino Wildenhain
Garito wrote: Tino Wildenhain escribió: Garito wrote: Andreas Jung escribió: --On 19. Juli 2006 09:34:58 +0200 Garito [EMAIL PROTECTED] wrote: Andreas Jung escribió: --On 18. Juli 2006 15:14:54 +0200 Garito [EMAIL PROTECTED] wrote: Hi all! Is possible to create an object

Re: [Zope] Catalog aware

2006-07-19 Thread Tino Wildenhain
Garito wrote: ... Sure, but I can't create a new product for every product I'll use only to do it catalog aware, isn't it? Yes you can. Why not? I mean you are using them - so you can use your products instead as well. Yes but what if tomorrow you create a product? need work to

Re: [Zope] Catalog aware

2006-07-19 Thread Tino Wildenhain
Garito wrote: Tino Wildenhain escribió: Garito wrote: ... Sure, but I can't create a new product for every product I'll use only to do it catalog aware, isn't it? Yes you can. Why not? I mean you are using them - so you can use your products instead as well. Yes

Re: [Zope] Catalog aware

2006-07-20 Thread Tino Wildenhain
Garito wrote: Tino Wildenhain escribió: Garito wrote: Tino Wildenhain escribió: Garito wrote: ... Sure, but I can't create a new product for every product I'll use only to do it catalog aware, isn't it? Yes you can. Why not? I mean you are using them

Re: [Zope] Catalog aware

2006-07-20 Thread Tino Wildenhain
Garito wrote: Tino Wildenhain escribió: Garito wrote: Tino Wildenhain escribió: Garito wrote: Tino Wildenhain escribió: Garito wrote: ... Sure, but I can't create a new product for every product I'll use only to do it catalog aware, isn't it? Yes you

Re: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] Catalog aware

2006-07-20 Thread Tino Wildenhain
Garito wrote: Martijn Pieters escribió: Please don't email me personally; let's keep this discussion on the list. Garito wrote: Yes, the indexes depends on the entity (I don't know what indexes I use until I define the entity but I need to catalog every characteristic of the entity) For

Re: [Zope] default webpage after External Method script executed

2006-07-20 Thread Tino Wildenhain
Andreas Jung wrote: --On 20. Juli 2006 19:25:11 +0100 Alan [EMAIL PROTECTED] wrote: Hi! My simple webpage for submitting files is ok. It calls a External Method script to do all the dirty job. However, I am running out of ideas of how to get back to my default submitting web page after

Re: [Zope] Script execute with every request

2006-07-24 Thread Tino Wildenhain
Joshua Burvill wrote: Hi, I’d like to log certain parts of each request into a database table for every request to provide an audit trail. I thought of inserting a dtml-call xxx into the standard_html_header, but when there is a RESPONSE.redirect, it will not be the original request

Re: [Zope] how to use chinese character in zope 2.8.7

2006-07-29 Thread Tino Wildenhain
Chris Withers wrote: Mark Barratt wrote: 2: In the root of the Zope Management Interface, choose the properties tab. In it, add a new property called MANAGEMENT_PAGE_CHARSET of type 'string' with value utf-8. Actually, for hysterical raisins, this needs to be UTF-8 rather than utf-8 in

Re: [Zope] autorefresh a web page every x minutes

2006-08-04 Thread Tino Wildenhain
Andreas Jung wrote: --On 4. August 2006 15:32:26 +0100 Alan [EMAIL PROTECTED] wrote: Dears, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? I hope so. Any help would be very appreciate. Many thinks in advance. This is

Re: [Zope] python expression in tal:attributes

2006-08-30 Thread Tino Wildenhain
to prepare your search and results and use its return value (usually prepacked, preformattet data in lists and dictionaries) instead? Links to index.html are also extremly ugly. Why not just link to the container? Regards Tino Wildenhain ___ Zope

Re: [Zope] DTML - ZPT

2006-08-31 Thread Tino Wildenhain
implementation it is a python script which queries the original item list and outputs a formattet item list you use directly w/ path expressions only. This way you can centrally control and switch your formatting w/o touching the templates anymore. Regards Tino Wildenhain

Re: [Zope] \n problems with mysql5

2006-09-15 Thread Tino Wildenhain
--On Freitag, 15. September 2006 01:08 -0700 Ferhat Ayaz [EMAIL PROTECTED] wrote: Hi, sorry list. The problem was the changed syntax of JOIN between mysql 4 and 5. SELECT bla FROM bla INNER JOIN table1,table2 ON ( bla ) must be changed to SELECT bla FROM bla INNER JOIN (table1,table2)

Re: [Zope] Calling a Script from ZPT

2006-09-18 Thread Tino Wildenhain
--On Montag, 18. September 2006 06:43 -0700 Ferhat Ayaz [EMAIL PROTECTED] wrote: Hi, a quick and newbie question: How can I call a Script (Python) within a page template. I'm using the 'define' tag: tal:contain define=no_matter_var python:context.mycall(myParam)/ Is there a more

Re: [Zope] Log in as another user

2006-10-02 Thread Tino Wildenhain
Sinang, Danny schrieb: Hello, In Unix, there's the su command which admins can use to log in as another user. Is there a similar facility in Zope ? not as login but there are the proxy roles you can assign to an object (script) to do something with raised privs. If not, is there a way

Re: [Zope] [Fwd: [USN-359-1] Python vulnerability]

2006-10-06 Thread Tino Wildenhain
Chris Withers schrieb: ouch... I'd imagine Zope is vulnerable to this? What source version(s) of python have these problems fixed? Well debian also had it already. I'd guess current sources should have it too. Watch changes.txt and friends. Regards Tino

Re: [Zope] ZSQL Method's Precision

2006-10-24 Thread Tino Wildenhain
of the deprecated money datatype in postgres isnt recommended. (And its superceeded by numeric anyway) Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
construction is? Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
for python scripts. (After all in DTML expressions its already python code, so why not write just python code and skip all that foo stuff around it you dont need anyway? Regards Tino Wildenhain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
[EMAIL PROTECTED] schrieb: Changing the dash to an underscore in the variable name solved the problem. I'm quite sure you could solve it even better - if we would know where these variables come from and what their meaning is. I suspect some kind of form? Regards Tino Wildenhain

Re: [Zope] How to create a new TAL statement?

2006-10-27 Thread Tino Wildenhain
Garito schrieb: Hi all! As Aj and Chris advise my to forget the __getattr__ bussiness I try to solve the same question by other ways Now I have a new question: Can you point me to some help about how to create a new TAL statement? I would like to create a tal:yanged (for example) statement

Re: [Zope] How to create a new TAL statement?

2006-10-28 Thread Tino Wildenhain
Garito schrieb: Tino Wildenhain escribió: ... I'm talking about tal:anything tal:yanged=/foo/bar / not tal:yanged tal:replace=/foo/bar / What I need is control the expression far away from the normal way (I want to process the result automatically before return the result) Aj and Chris

Re: [Zope] matplotlib and zope problem

2006-11-14 Thread Tino Wildenhain
Marek Szczypiński schrieb: Hello All, I've been using zope and matplotlib for some time now, and I want to connect them. I'am using the example code from page: http://www.scipy.org/Cookbook/Matplotlib/Matplotlib_and_Zope , but whenever I try to import matplotlib, and/or pylab packages i get

Re: [Zope] Z2.log format

2006-11-16 Thread Tino Wildenhain
Sascha Adler schrieb: I'm running an instance of Zope 2.8.6, and I'm stumbling into a problem with the format of Z2.log. Unlike an Apache log, which would have the format %S - %u ... Well the apache log format is configurable. I don't know why the analysis products stuck with the weird

Re: [Zope] tal loop to render table

2006-11-29 Thread Tino Wildenhain
Dennis Schulz schrieb: I would like to build a tal loop that renders a list of elements (widgets in my case) in a table. (for example I have a list of 9 items, then it renders a table: five rows with 2,2,2,2,1 items) the table has 2 columns, so i would need to open and close the table row

Re: [Zope] tal loop to render table

2006-11-29 Thread Tino Wildenhain
Tino Wildenhain schrieb: Dennis Schulz schrieb: I would like to build a tal loop that renders a list of elements (widgets in my case) in a table. (for example I have a list of 9 items, then it renders a table: five rows with 2,2,2,2,1 items) the table has 2 columns, so i would need to open

Re: [Zope] Recovering from Data.fs

2007-01-09 Thread Tino Wildenhain
Maciej Wisniowski schrieb: From my understanding the paths for the zope instance have to be the same for Data.fs to work correctly. Is that correct? No, Data.fs should be portable. Yup, need to crete plain new Zope instance and put your data.fs into var directory. After this start Zope and

Re: [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Tino Wildenhain
robert rottermann schrieb: Hi there, I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. Can you elaborate on that? I dont see a reason

Re: [Zope] emulate a sequence

2007-02-08 Thread Tino Wildenhain
Jonathan schrieb: - Original Message - From: Yuri [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, February 08, 2007 9:09 AM Subject: [Zope] emulate a sequence I need a field in zope object which act as a sequence. I mean every time I create an object, the value is the previous

Re: [Zope] frameset problems

2007-02-21 Thread Tino Wildenhain
Garry Saddington schrieb: I have this page: frameset rows=75%,25% frame src=dtml-var page frame src=dtml-call expr=getproperty(page=_['page']) /frameset The 'page' variable is in the request but no matter what I try I am having problems passing it the the python script 'getproperty'. Can

Re: [Zope] How to export ZWiki contents in ZODB to MYSQL

2007-02-26 Thread Tino Wildenhain
Win Myint Aung schrieb: Dear Members, I am a newbie in Zope. please do me a favor. I am looking for some python scripts that can export Zwiki contents from ZODB to MYSQL. Well, the script is easy in principle but you need to know how the result in your MySQL should look like. So its

Re: [Zope] datetime format

2007-03-04 Thread Tino Wildenhain
Garry Saddington schrieb: I have 'datetime-format international' set in zope.conf but the date output is still rendered in the format (y,m,d) when using ZopeTime or when returning dates from python scripts. How can I change this behaviour? My server config is: Well what you see is not the

Re: [Zope] datetime format

2007-03-05 Thread Tino Wildenhain
Andreas Jung schrieb: ... And I would not use it much because you loose all type information and the ability to sort accordingly and calculate with the values. Better format them just for output - which would be in python code. It depends on the usecase..if you don't have to deal with

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Tino Wildenhain
trashing) but the performance is more then acceptable. ZODB/Filestorage is currely only a problem if you regulary update those files (or objects anyway) because it would add a complete new version. Regards Tino Wildenhain ___ Zope maillist - Zope

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Tino Wildenhain
Gaute Amundsen schrieb: Hi. Just had som troubles when I added timestamp columns to a table. Commnets? my setup: Mysql: 4.1.20-log Zope Version: (Zope 2.7.5-1.fc3, python 2.3.4, linux2) 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only dtml-var

Re: [Zope] Two mysql / timestamp related fixes

2007-03-09 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: Gaute Amundsen schrieb: Hi. snip 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only dtml-var sql ) Thats a very bad idea. Better make zsql methods for every query I

Re: [Zope] Calling a Variable

2007-03-09 Thread Tino Wildenhain
Martijn Pieters schrieb: On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: Incorrect, you can only use ? to interpolate variables into a path expression: span

Re: [Zope] No space left on device

2007-03-09 Thread Tino Wildenhain
Maciej Wisniowski schrieb: Where? I added this line to zopectl and rebooted: rebooted? Lets hope you only restartet zope :-) Regards Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Tino Wildenhain
Andreas Jung schrieb: --On 9. März 2007 14:42:57 +0530 Remil Mathew [EMAIL PROTECTED] wrote: Hi, How can run multiple query in an Z sql method.. Sure. SQL Statement just have to separated by dtml-sql-delimiter. I am using Mysql.. Also is there any method to return a value from insert

Re: [Zope] Two mysql / timestamp related fixes

2007-03-09 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Friday 09 March 2007 09:40, Tino Wildenhain wrote: Gaute Amundsen schrieb: On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: Gaute Amundsen schrieb: Hi. snip 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only

Re: [Zope] How do people work with html-designers?

2007-03-16 Thread Tino Wildenhain
Chris Withers schrieb: Martijn Pieters wrote: That, for ZPT, was sadly a myth. Not a myth at all. Perhaps underutilised and not as robust as first hoped, but not a myth. At Pareto the designer and templater were quite comfortable with keeping TAL intact while using graphical tools. My

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Tino Wildenhain
Remil Mathew schrieb: Hi all, I need to insert a row to mysql table if the corresponding data not exist, if it exist i need to update the row. Can we do it using a single Z SQL method. Well thats not business of ZSQL methods but rather stuff you do with the instruments of your database.

Re: [Zope] Re: open image in a fitted new window

2007-03-22 Thread Tino Wildenhain
Tres Seaver schrieb: ... The only trick here is to get the javascript to include the dynamic URL; everything else is not specific to Zope or ZPT. Here is the hack I usually use for that:: !-- assumes that 'image' is bound to an actual Zope image object -- script type=text/javascript

Re: [Zope] How can I reset zope time???

2007-03-24 Thread Tino Wildenhain
Flemming Bjerke schrieb: On Fri, 23 Mar 2007 16:16:55 +0100 Andreas Jung [EMAIL PROTECTED] wrote: --On 23. März 2007 16:09:15 +0100 flem [EMAIL PROTECTED] wrote: I think this kind af date-deadlock is a vulnerability of the zope architecture. Is it the same thing with zope3? Isn't it an

Re: [Zope] What's the tal expression to test for whether someone is logged in?

2007-04-01 Thread Tino Wildenhain
Ken Winter schrieb: Andrew ~ Yes!! It worked. One more question: Where (if anywhere) could I have looked up this answer (and probably many more), so I wouldn't have to bother this list with questions like this? Its in the general Zope API and in the ZPT documenation regarding the name spaces

Re: [Zope] RE: Problem Getting dtml-with to work

2007-04-30 Thread Tino Wildenhain
Andreas Jung schrieb: --On 30. April 2007 11:02:29 -0400 Mark, Jonathan (Integic) [EMAIL PROTECTED] wrote: Thanks to the other Jonathan for advising me to try dtml-in objectIDs to find why dtml-with was not working as expected with FolderB. When I did that I realized that FolderB was not

Re: [Zope] SQLAlchemy 0.2 released - a generic database adapter for Zope 2

2007-05-05 Thread Tino Wildenhain
Andreas Jung schrieb: I am pleased to announce the first public release of SQLAlchemyDA V 0.2.0 Nice, saves me a lot of time :-) Btw, what do you think about an idea to (alternatively) configure db-connections in zope.conf? Just to add security (nobody could read

Re: [Zope] Problem w/ ZMySQLDA

2007-07-18 Thread Tino Wildenhain
[EMAIL PROTECTED] wrote: Forgive my ignorance, but not quite sure how to do that. Nonetheless... 1) There was no problem with any of this on the old server until the server crashed. 2) My backups were taken from a time when the old server was was working fine. Did you ever check these

Re: [Zope] backup full instances

2007-10-27 Thread Tino Wildenhain
Hi, Jonas Meurer schrieb: On 27/10/2007 Andreas Jung wrote: If you create a local copy, it is safe. If you rsync a running Data.fs, it is not safe. In this case you create a local copy and rsync the copy. but if rsync is unsafe only because it takes long time, and changes on the instance

Re: [Zope] Re: Best Practice for including Javascript in Zope Applications

2008-01-01 Thread Tino Wildenhain
Andreas Jung wrote: ... Larger JS frameworks like Dojo tend to be split across several files and directories. The fun starts when such frameworks load/reload stuff using relative URLs. A co-worker using Dojo intensively had to invest some time in order to integrate such a JS monster properly.

Re: [Zope] Zope ZMI Templates

2008-01-16 Thread Tino Wildenhain
Tim Nash wrote: Jurian, While the ZMI is a bit geeky for the average user, it works quite well inside an iframe. iframes are used by many ajax/web2 (whatever you want to call it) libraries. So in my application (for example) I currently make ajax calls to load specific zmi pages inside tabs of

Re: [Zope] Zope ZMI Templates

2008-01-17 Thread Tino Wildenhain
Hi Tim, Tim Nash wrote: The other important difference between ajax loaded pages and iframes is that when you click on a link within an iframe page, the returned page is loaded into the same iframe. If I am not being clear, please check out this png file. a

Re: [Zope] Zope ZMI Templates

2008-01-17 Thread Tino Wildenhain
Andreas Jung wrote: ... Iframes are still a valid choice in case asynchronous won't work e.g. when you need to load resources from servers != your origin server. Due the security model of asynchronous requests, a browser will only load stuff from the origin server. Iframes are a way to work

Re: [Zope] POST version of Response.redirect

2008-02-15 Thread Tino Wildenhain
Hi, Jonathan wrote: I have a case where I need to redirect users from my Zope site to a third-party web site and send POST data that I generate. The only information I can find on RESPONSE.redirect relates to the GET format. Is there a POST version of RESPONSE.redirect and if so, how is

Re: [Zope] Happy Valentine's Day from Zwiki HQ

2008-02-15 Thread Tino Wildenhain
robert rottermann wrote: Simon Michael schrieb: Hello Zopistas.. a happy Valentine's day to all! as martin said (or hinted) before me, a new wiki solution needs to be seamlessly integratable into plone. I like zwiki very much and still use it often. but rarely in new projects. the

Re: [Zope] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-21 Thread Tino Wildenhain
Hugo Ramos wrote: Well, I went googling for this error... Google gives 1 (one) answer!!! The worst part is that it's related to django and mod_python. I guess nobody solved this yet... I'll have to go back to OS X 10.4 (Tiger). You could also forward to Postgres :-) Unless you have a very

Re: [Zope] Managing Zope objects in Subversion

2008-03-03 Thread Tino Wildenhain
Dieter Maurer wrote: [EMAIL PROTECTED] wrote at 2008-3-2 14:17 +0100: We use Zope for the user interface part of our software product. We currently export the whole folder hierarchy into a .zexp file and maintain this file in Subversion. I'm looking for a way to manage a folder structure as

Re: [Zope] define a class in a python script

2008-03-05 Thread Tino Wildenhain
Yuri wrote: Hi, all! I would like to define a class inside a python script (so I can catalog it and use catalog to store info, as the tutorial about catalog everything suggests). Its not possible in Python Scripts. You would need to write either an external method or a small product.

Re: [Zope] define a class in a python script

2008-03-06 Thread Tino Wildenhain
Hi Yuri, Yuri wrote: Tino Wildenhain wrote: Yuri wrote: Hi, all! I would like to define a class inside a python script (so I can catalog it and use catalog to store info, as the tutorial about catalog everything suggests). Its not possible in Python Scripts. You would need to write

Re: [Zope] Re: Managing Zope objects in Subversion

2008-03-21 Thread Tino Wildenhain
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tino Wildenhain wrote: Dieter Maurer wrote: When I remember right, Tres has a product that allows to dump and restore standard Zope objects to/from the file system. I forgot its name but you should be able to find it via your

<    1   2   3   4   5   6   >