Re: [Zope] ZEO manageUndo not working - DisconnectedError

2015-05-06 Thread Tino Wildenhain
Hi Sebastian, Am 06.05.2015 um 15:26 schrieb Sebastian Tänzer: > After further testing I was able to sort this one out by downgrading ZopeUndo to 2.12.0 (pip install ZopeUndo==2.12.0 --force —upgrade). > PyPi only said 4.0 brought Py3 compability. Should I expect any problems using ZopeUndo 2.

Re: [Zope] sending a encrypted login URL

2009-03-04 Thread Tino Wildenhain
Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Use SSL and you're done. SSL solves SSO? I don't think so. Cheers Tino - -aj On 04.03.2009 17:29 Uhr, Joseph Thomas (s) wrote: We’d like to construct a zope login URL of the form on another server: http://zope.domain:p

Re: [Zope] getProperty title and id

2008-10-15 Thread Tino Wildenhain
Tino Wildenhain wrote: Hamzat Kamal wrote: Hi, I just want to why will display the object title and and will dispaly none. apart from the fact that you probably should start using TAL instead of DTML, Did you look at the resulting output? Not the HTML rendered in the browser

Re: [Zope] getProperty title and id

2008-10-15 Thread Tino Wildenhain
Hamzat Kamal wrote: Hi, I just want to why will display the object title and and will dispaly none. apart from the fact that you probably should start using TAL instead of DTML, Did you look at the resulting output? Not the HTML rendered in the browser but the source - "view sourc

Re: [Zope] use path function on a python script

2008-10-08 Thread Tino Wildenhain
Garito wrote: 2008/10/8 Tino Wildenhain <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> Garito wrote: Perhaps is better if I explain you what I'm trying to do Imagine a Plone site (I know there are a plone list but this is a generic quest

Re: [Zope] use path function on a python script

2008-10-08 Thread Tino Wildenhain
Garito wrote: Perhaps is better if I explain you what I'm trying to do Imagine a Plone site (I know there are a plone list but this is a generic question, sorry if not) I configure it in the way if you put a parameter ?print the plone point renders as when you push the print button at the bo

Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread Tino Wildenhain
some kind of stacking layers of name spaces where values get looked up. Please see the Zope book (online) for description of the API. Regards Tino thanks, Indrajit. On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

Re: [Zope] delete a variable from REQUEST

2008-09-29 Thread Tino Wildenhain
Hi, indrajit926 indra wrote: Hi All, Iam relatively new to zope. I want to delete a variable and it value from REQUEST.I used python pop() and __delattr__() ,but getting attribute error. Actually you can't. (Not without writing a product in filesystem and getting deep into zope). Why would

Re: [Zope] kill user Session

2008-09-17 Thread Tino Wildenhain
vaibhav pol wrote: Dear all, I create logout page in my site when user want to logout it will submit the page of page submit i called "manage_zmi_logout" function . which promt me for again login user name password window i want redirect user to login page but if redirect whiou

Re: [Zope] 404 on "/manage" frames with mod_rewrite

2008-08-21 Thread Tino Wildenhain
Bernard Devlin wrote: I worked it out. For the apache virtualhost config for 443 I changed the rewrite rule to this: RewriteRule ^/zp($|/.*) http://%{SERVER_NAME}:8080/VirtualHostRoot$1 [L,P] I probably should have included my rewrite rules in the earlier message. I'm sure my mistake would

Re: [Zope] 404 on "/manage" frames with mod_rewrite

2008-08-20 Thread Tino Wildenhain
Bernard Devlin wrote: Hi folks, I managed to find some good information on putting zope behind apache and using mod_rewrite. This appears to be working fine as long as I'm using a non-framed page (and it works with SSL too). However, when I try to access the site using https://mysite.com/s

Re: [Zope] TALES expression

2008-07-16 Thread Tino Wildenhain
Fred Drake wrote: On Wed, Jul 16, 2008 at 6:34 AM, Tino Wildenhain <[EMAIL PROTECTED]> wrote: You should check the tales documentation. the pipe symbol | means a logical "or", in effect if the left expression resolves to "non existent", None, empty object,... (general

Re: [Zope] TALES expression

2008-07-16 Thread Tino Wildenhain
Garito wrote: Hi! Please consider this TALES expression: If I try this other: the result is None Then the first one will render the alternate expression isn't it? Then with it renders ? Сто? ;-) You should check the tales documentation. the pipe symbol | means a logical "or", in effec

Re: [Zope] getting post data from a webcam

2008-07-08 Thread Tino Wildenhain
William Heymann wrote: I am trying to integrate a webcamera with a site and I can get it to POST the data to a certain url on the server the problem is I can't figure out how to get access to the data. It is not in REQUEST.form the relevant request vars are ('CONTENT_LENGTH', '111695') ('CONT

Re: [Zope] UTF8 encoding

2008-06-17 Thread Tino Wildenhain
Hi Garry, Garry Saddington wrote: I am getting a few of this type of error only coming from Windows machines, does anyone know how to sort this out? ProgrammingError: ERROR: invalid byte sequence for encoding "UTF8": 0xa3 HINT: This error can also happen if the byte sequence does not match th

Re: [Zope] display HTML files using TAL

2008-06-08 Thread Tino Wildenhain
Hi, sujitha mary wrote: Hi all, I need help in displaying a set of HTML files .I have created a TAL code explain "display". which stores the name of the files in a list.But i don't know how to pass this values. pass to where? How does a code store anything? To where? this is my code her

Re: [Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Tino Wildenhain
Hi, Marco Bizzarri wrote: ... if result: result_len = results.actual_result_count else: result_len = 0 return result_len ... Thanks for your answer, but there is something I do not understand: if results: an empty result from ZCatlog is false in a boolen condition? Yes, thats standa

Re: [Zope] statistics and click analysis for a plone site

2008-06-02 Thread Tino Wildenhain
Hi, robert rottermann wrote: Hi there, for a Client using a plone2 intranet (with no access from the outside world) I installed awstat to track the usage of the intranet. now I wonder how meningfull such statisics are. I guess you have something like apache in front of the zope, if so you ca

Re: [Zope] Re: Displaying Graphs using TAL

2008-05-30 Thread Tino Wildenhain
Hi, Encolpe Degoute wrote: ... If your site is only for FireFox or evolved browser you can use inline not only Firefox. also Opera supports this for years :-) It is not totally ideal because of the overhead due to the base64-encoding. For graphs (as the op wants to show) I think in the long

Re: [Zope] Displaying Graphs using TAL

2008-05-30 Thread Tino Wildenhain
Hi, Andyy wrote: i am preparing graphs(MatPlotLib) related files using external methods., when i test them on zope they display very well there. But when i call these external methods using tal as: where IterationBar is my external method that displays a BarChart. No, well you need to unde

Re: [Zope] Making Zope stop storing old object versions

2008-05-09 Thread Tino Wildenhain
Hi, Jonathan wrote: Sinang, Danny wrote: Hello, ... You can also try some of the other storages like relstorage (where it depends on the RDBMS how it handles writes) Alternatively, you could just replace your Catalog with an external db such as MySQL (using zmysql database connections). w

Re: [Zope] Making Zope stop storing old object versions

2008-05-07 Thread Tino Wildenhain
Hi, Sinang, Danny wrote: Hello, We've got lots of Catalog reads and writes and our Data.fs is growing at an immense rate. Is there a way we can tell Zope to stop storing old object versions to limit the growth and not have to pack that often ? Well in fact it (Filestorage) does only "st

Re: [Zope] running in debug mode

2008-03-26 Thread Tino Wildenhain
David Bear wrote: Is it possible to have one zeo client running in debug mode while another is not? It seems that it should be the way most people would make a development environment. One zeo is running in standard mode so you could see how the site performs -- while the other zeo is running i

Re: [Zope] Zope utf-8 problem using MySQL

2008-03-22 Thread Tino Wildenhain
Hugo Ramos wrote: What would you recommend? :-) What should the database do for you? How did you select? T. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - htt

Re: [Zope] Zope utf-8 problem using MySQL

2008-03-22 Thread Tino Wildenhain
Hugo Ramos wrote: yellow, It's a question of taste... I use a Macbook Pro/Leopard laptop instead of a PC/win32 laptop... Also a question of taste! :-) Guess you got the taste thing a bit wrong ;-) MySQL is the PC/win32 in your picture :-) Cheers Tino __

Re: [Zope] Zope utf-8 problem using MySQL

2008-03-21 Thread Tino Wildenhain
Hugo Ramos wrote: Yellow ppl, I'm using Zope 2.10.5 + MySQL 5.0.51a + MySQL-python-1.2.2. Why? I mean, is there a special business reason to use MySQL? Just curious... T. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zop

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

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] 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. Regard

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 i

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 spe

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 userinterfa

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 the

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 aro

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. http://medicinebrain.com/iframe.png";> h

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] 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] 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 duri

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 backups

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 credentials,

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 to find why dtml-with was not working as expected with FolderB. When I did that I realized that FolderB was not an actual folde

Re: [Zope] Problem with using versions.

2007-04-10 Thread Tino Wildenhain
Catherine E. Reinehr schrieb: Hi, I've been working in a version for over a week and finally finished my changes today. I saved them and quit the version, but the affected folder still has a lock on it. I've tried four times now to save my changes, and it's just not working. The first time, i

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] 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 u

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:: Your popup javascript can then refer to the 'img_url' JS variable to set the window location.

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. Sa

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 experie

Re: [Zope] sql and script python

2007-03-13 Thread Tino Wildenhain
javi lopez schrieb: hello everyone: how to create a query(mysql) inside script python You dont. You write your Query into a ZSQL Method and call it as function in your python script. Regards Tino ___ Zope maillist - Zope@zope.org http://mail.z

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

2007-03-09 Thread Tino Wildenhain
Jary Busato schrieb: If I understood you're telling me that begin and commit statements are "redundant". No in this case they would be an error. Sometimes conflicts are not correctly managed by ZTM (no rollbacks in db) Examples? Which bug reports? Regards Tino _

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. 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisti

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 . I am using Mysql.. Also is there any method to return a value from insert query? An insert

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 en

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: Th

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. 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only "") Thats a very bad idea. Better make zsql methods for every

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 "") That

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Tino Wildenhain
an extra storage for the files to avoid overly cache 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

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 diff

Re: [Zope] datetime format

2007-03-05 Thread Tino Wildenhain
Andreas Jung schrieb: --On 5. März 2007 07:12:23 +0100 Tino Wildenhain <[EMAIL PROTECTED]> wrote: 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

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 da

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 basicall

Re: [Zope] frameset problems

2007-02-21 Thread Tino Wildenhain
Garry Saddington schrieb: I have this page: "> 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 anyone point me in the correct direction? dtml-call? wtf! This will never ever work since dtml-call doe

Re: [Zope] emulate a sequence

2007-02-08 Thread Tino Wildenhain
Jonathan schrieb: - Original Message - From: "Yuri" <[EMAIL PROTECTED]> To: 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 sequence val

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 w

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 ta

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 and

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 every

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 defaul

Re: [Zope] Re: adding a python library

2006-11-14 Thread Tino Wildenhain
David Bear schrieb: On Mon, Nov 13, 2006 at 08:32:11PM -0500, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Bear wrote: I would like to add Mark Pilgrims feedparser to the available modules that I can use in zope. I have installed the feedparser into the python instanc

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 th

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

2006-10-28 Thread Tino Wildenhain
Garito schrieb: Tino Wildenhain escribió: ... I'm talking about not 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 dissapoint me to modif

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] 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 Wilde

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
? No, but see above. Could you please escape the horribly code + template mixing with DTML? ;) See the zope book for python scripts. (After all in DTML "expressions" its already python code, so why not write just python code and skip all that stuff around it you dont need anyway? R

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
annot write in a python script something like: REQUEST.SESSION.set('some_resonable_named_variable','AR-DA-07') ? Could you explain in plain english what your final goal of your construction is? Regards Tino Wildenhain ___ Zope maillist -

Re: [Zope] ZSQL Method's Precision

2006-10-24 Thread Tino Wildenhain
e the name ;) Use 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 enc

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] Log in as another user

2006-10-01 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 wa

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: Is there a more serious way to do this? Yes, don't do it :-) PageTemplates are "vie

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] DTML -> ZPT

2006-08-31 Thread Tino Wildenhain
Antonio Beamud Montero wrote: > Is this the equivalence? > > > > 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/listinfo/zope-dev )

Re: [Zope] python expression in tal:attributes

2006-08-30 Thread Tino Wildenhain
s 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 maillist - Zope@zope.org http://mail

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 advanc

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

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 into the standard_html_header, but when there is a RESPONSE.redirect, it will not be the original request that gets logg

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

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 exa

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?

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

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? >>>>> >>

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?

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ó:

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: 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] question on simple_send in MailHost

2006-07-19 Thread Tino Wildenhain
ader) allow_class(signmail) 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 H

Re: [Zope] Using the DTML REQUEST Object

2006-07-18 Thread Tino Wildenhain
Muk Yan wrote: > Dear Exalted Sirs and Madams, > > I'm a Zope newbie, so be gentle. > > I'm using DTML on Zope (yes I know Plone and Tal is now the norm) and No, Plone has nothing to do with TAL (although it uses it too) But nobody forces you to DTML either. You can use python scripts and ZPT (T

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 = con

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 AAIRAQMRAf/EABwAAAMBAQ

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] Content Disposition - Download files

2006-06-26 Thread Tino Wildenhain
? Then you just put a script name into "precondition" field of the object. The script could be something like: (Python script) context.REQUEST.RESPONSE.setHeader('Content-Disposition','attachment; filename=%s' % context.getId()) Regards Tino Wildenhain

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 recatal

  1   2   3   4   5   >