Re: [Zope] Multiple Languages

2000-06-29 Thread Tino Wildenhain
have the code to tell what version of the page is appropriate with given browser-configuration (language-preferences) and availability. We have now to make a product to hold the different versions of documents for each language. Regards Tino Wildenhain _

Re: [Zope] Error handling and super users....

2000-06-30 Thread Tino Wildenhain
ers from within our domain... Look for the options of zpasswd.py. You can run it interactively with "python zpasswd access" at the last step you are asked for valid domains. HTH Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://

Re: [Zope] Re: ZClass in ZClass problem

2000-07-02 Thread Tino Wildenhain
ce" and > > "propertysheets/methods/RandomZItem_add%20/manage_workspace". > >I found that not only my ZClassess do this way. I imported SiteSummary - > and got the problem. Something broken in my installation? %20 is the urlencoded representation of an extr

Re: [Zope] how to invalidate an object in the cache?

2000-07-02 Thread Tino Wildenhain
ge, not the document. So one has to patch the image-object as I did for this case. Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related l

Re: [Zope] Rewrite rules

2000-07-03 Thread Tino Wildenhain
rewrite module of Apache is documented here: http://www.apache.org/docs/mod/mod_rewrite.html We need more information of what you want to help you more. HTH Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo

Re: [Zope] Lists and external methods

2000-07-05 Thread Tino Wildenhain
return(self.data.keys()) def values(self): return(self.data.values()) if you use generic_datarecord(column1=value1,coulumn2=value2) for each row, you can alterate over a list of such datarecord_objects with using and HTH Tino Wildenhain PS: __len__() is

Re: [Zope] the

2000-07-05 Thread Tino Wildenhain
That should make WinZip happy ;-) rather it should be .tgz to make WinZip happy ;-) Tino Wildenhain PS: good idea is to deactivate "hide known extensions" in the options of your folders. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.

Re: [Zope] How do I specify a list element?

2000-07-05 Thread Tino Wildenhain
ement of MyList" or > the second or third. > > I've tried but I get this error: > actually it is you were pretty close :-) Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **

Re: [Zope] [Repeat] Nt server w/ Zope

2000-07-09 Thread Tino Wildenhain
roduces. If you cant see them because the window closes too fast, call it from dos promt. HTH Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] "just html", help, help, help !!!

2000-07-11 Thread Tino Wildenhain
, you would take an extra submit button (or image) to open a new part of the page to input the needed information. HTH Tino Wildenhain Marcel Preda wrote: > > - Original Message - > From: Vincent Maton <[EMAIL PROTECTED]> > To: Zope <[EMAIL PROTECTED]> > Sent: Mon

Re: [Zope] DTML?

2000-07-11 Thread Tino Wildenhain
ce-index etc. comes to mind. I would do it in some minutes if one wants it... Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - ht

Re: [Zope] --- In zope@egroups.com, Paul Abrams wrote:

2000-07-11 Thread Tino Wildenhain
gt; I bet this is not what he asked for. He wants the code of each dtml-document (or method) be smaller for output to the client. Actually, I would like to be able to skip whitespaces around and friends too. But this is impossible without patching zope (or writing them all in one line, which

Re: [Zope] trailing whitespace optimization

2000-07-11 Thread Tino Wildenhain
part of the zope > Extenions library, it should be in something called > /opt/zope/Extensions/ called strip_blanks.py. You can > attach it to your zope session, then it is called via: > > > Is this the same as calling only slower? ;-) Regards Tino Wildenhain _

Re: [Zope] Adding comments to documents like in ACS ...

2000-07-11 Thread Tino Wildenhain
really > like ACS' "bboard" system, that's the kind of functionality I think > these objects should provide. > Yes. And I often wonder where my notes to sessions walk to. For the meantime, at least for docuements and methods, we can heavyly use Regards Tino Wildenhain _

Re: [Zope] LoadSite can create a corrupted data.fs ?

2000-07-12 Thread Tino Wildenhain
is corrupted, I'll lost one week of work > for my company. Why dont you simply restore your Data.fs from a regular backup? Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross pos

Re: [Zope] space in variable returned by queries

2000-07-13 Thread Tino Wildenhain
Vanfleteren Francois wrote: > > Hello, > I'm working with Zope and PostgreSQL > When i do a query, Zope returns me a variable with a space at the end > Do you know how i can do not to have this space at the end? should do. Or

Re: [Zope] zope crawls - the day after

2000-07-14 Thread Tino Wildenhain
different) can handle much higher traffic with not much complaints. Uhm. Headers are headers, not content. As example, image files have headers too but no HTML inside. So you should set headers with RESPONSE.setHeader() hth Tino Wildenhain ___ Zope maill

Re: [Zope] Case sensitivity

2000-07-17 Thread Tino Wildenhain
ensitive? Most web-servers are case-sensitive. So where is the problem? You only have to type your links carefully, what is somewhat simplyer with Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listi

Re: [Zope] z2.py with -a option: ZServer FTP server not listening on correct ip address

2000-07-19 Thread Tino Wildenhain
t;. # 10.0.0.0 10.255.255.255 # 172.16.0.0172.31.255.255 # 192.168.0.0 192.168.255.255 HTH Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! *

Re: [Zope] New How-To on Cookies (need feedack)

2000-07-19 Thread Tino Wildenhain
Netscape or in a directory for I.E. " this is only their (the UA's) implementation of persistence. Its not the nature of cookies to be written on any filesystem. Just for clarifying the subject. Regards Tino Wildenhain ___ Zope maillist -

Re: [Zope] Is there a function which evaluate a python expression situated in a string variable ?

2000-07-21 Thread Tino Wildenhain
would have to split or look along the mailinglist, there was mentioned something like "get object from url" HTH Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross post

Re: [Zope] zeo and rdb backend

2000-08-14 Thread Tino Wildenhain
ion for local configuration issues would be a mountable database for specific sections (like products and some folders with database-connections and such) Imagine a situation where different instances of zope, connected via zeo have to use different database-connections (odbc for windows, any oth

Re: [Zope] tree plus/minus url

2000-08-14 Thread Tino Wildenhain
zope code could do that? For me it works fine! Would you mind including an alias for tree-item-clickurl which reads tree_item_clickurl before posting it to the collector? I hope we can make all this ugly hypenation variables go away someday... Regards Tino Wildenhain _[_['sequence-item&

Re: [Zope] Help!! RE:mutilple select forms and ZSQL Method

2000-08-14 Thread Tino Wildenhain
inside the variable which would not be properly sql-quotet this way. Can be very securety riscy. Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! *

Re: [Zope] how to generate a Vcard ?

2000-08-15 Thread Tino Wildenhain
end your self a vcard and look at the text... (The plain message of course) HTH Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http:/

Re: [Zope] doesn't?

2000-08-19 Thread Tino Wildenhain
t; > That seems silly to me. Anyone else agree? No, I disagree. Why do you want bad dtml even inside comments? dtml-comment is a tag like all the other tags. It does not control the parser. One advantage is, you may nest comment-tags. Regards Tino Wildenhain __

Re: [Zope] Changing a Z object's __class__ dynamically

2000-08-20 Thread Tino Wildenhain
it does not reflected in the Z Object's > memory-cached version. When I remember correcly, DC's setattr does not change attributes with leading underscore in a persistence way. These attributes are considered to be local. Regards Tino Wildenhain _

Re: [Zope] tree plus/minus url

2000-08-21 Thread Tino Wildenhain
? For me it works fine! > > > >Would you mind including an alias for tree-item-clickurl which reads > >tree_item_clickurl before posting it to the collector? > > > >I hope we can make all this ugly hypenation variables go away someday... > > > >Regards >

Re: [Zope] Month number as string as variable

2000-08-22 Thread Tino Wildenhain
Hi, "Williamson, Aaron" wrote: > > Peter, > > Try this bit of mojo here: > > # actually, it schould be: > # to produce 'month_01' to 'month_12' > > > Regards Tino Wildenhain

Re: [Zope] Microsoft SQL Server Access under Linux?

2000-08-25 Thread Tino Wildenhain
Hi Darin, Darin Lee wrote: > > Zopistas, > > Is it possible to access an ODBC data source through Zope running under Linux? I >have perused the literature, and it appears the Zope DA's for ODBC only run under the >Win32 environment. > > I would very much like to setup ZAP (for many reasons),

Re: [Zope] Linux and ODBC

2000-08-26 Thread Tino Wildenhain
to build most of it under linux. You have to move part of the distribution into different places. When I fully succeed ( I had plain mxODBC running already!) I will make an how-to of it. So please stay tuned ;) Regards Tino Wildenhain ___ Zope ma

Re: [Zope] Copying a dtml method when creating a ZClass instance

2000-09-01 Thread Tino Wildenhain
Hi Kamon, kamon ayeva wrote: > > Hi, > > I need some help. > I have a DTML method at the root of Zope called 'Template'. > How can I make the constructor of a ZClass (folderish) to copy this method > to each of its instances ? Can someone provide me with a complete snippet to > add in the ZClas

Re: [Zope] Socket.Error

2000-09-02 Thread Tino Wildenhain
ure one can unduptfully reresolve the hostname to its ip-address again. It asks first for the name to the ip-address. Then it asks for the ip-address to this name. The question is, where did you change the name? In DNS you have to change it in both databases. Regards Tino Wildenhain

Re: [Zope] SQL Methods

2000-09-02 Thread Tino Wildenhain
e proper access rights. This was due to a change in the security mechanism on 2.2.x. The default policy is now: disallow everything as log as its not explicitely permittet. I would suggest to look for the patch on sql-methods or simply upgrade to the latest 2.2.1 where this (and much more) has alr

Re: [Zope] Copying a dtml method when creating a ZClass instance

2000-09-02 Thread Tino Wildenhain
Hi, kamon ayeva wrote: > > I have several reasons whay I need to attach a template to each ZClass. > Among them are: > 1/ cases like high level folders where I might want to customize the page's > rendering and/or skin, > 2/ cases like contained objects which uses a generic skin (but you can sti

Re: [Zope] Re: superuser confusion

2000-09-05 Thread Tino Wildenhain
Hi, Chris McDonough wrote: > > On Tue, 5 Sep 2000, Evan Simpson wrote: > > > > I've got to say I agree with you here. I'm still not 100% sure why the > > > superuser or bootstrap user can't own anything. > > > > It's due to a combination of the trojan horse issue and the sticky > > authentica

Re: [Zope] Underscore Caracter

2000-09-05 Thread Tino Wildenhain
Hi Chris, Chris McDonough wrote: > > Hi Marcus, > > This is untested. > > Turn "asd asd" into "asd_asd" and output: > > > > Turn "asd_asd" into "asd asd" and output: > > > I've seen this on plenty lines of digicools code and wondered about if this is more efficient then using just string

[Zope] ANN: want to localize your pages and/or zope?

2000-09-05 Thread Tino Wildenhain
night ;-) Unfortunately zope.org has not installed the product already, so I was not able to give the readme in different languages .-)) Best regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope

Re: [Zope] re module & through the web security

2000-09-06 Thread Tino Wildenhain
Hi, Chris Withers wrote: > > Chris McDonough wrote: > > There's the perception at DC that > > 're' isn't appropriate for through-the-web usage because it's possible to > > write and use regex that sends the Python interpreter thread it's > > operating within into a neverending loop. Sorry. > >

Re: [Zope] Whitespace in lines property

2000-09-06 Thread Tino Wildenhain
Hi Tim, Tim Cook wrote: > > Can anyone tell me why when I edit a lines property I get leading > whitespace inserted? > The first line gets seven & each one after that gets 10 spaces. > > I tried stripping it out but this didn't seem to have any effect. > > ... > > > > ^^^ here

Re: [Zope] Whitespace in lines property

2000-09-06 Thread Tino Wildenhain
Hi Tim, Tim Cook wrote: > > Tino Wildenhain wrote: > > > > Hi Tim, > > > > Tim Cook wrote: > > > > > > Can anyone tell me why when I edit a lines property I get leading > > > whitespace inserted? > > > The first line gets seven &

Re: [Zope] Using Chinese Characters

2000-09-07 Thread Tino Wildenhain
Hi Kelvin, Kelvin Cheong wrote: > > i was wondering how i can use chinese characters with Zpe on Linux. does > anyone know how? According to my "mild" research so far, i found out that > Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to > be the de-facto for traditional c

[Zope] Import from file via management-interface

2000-09-08 Thread Tino Wildenhain
Hi all, I found it very disturbing having to get my .zexp exports into the subdirectory 'import' of the server and then using the management-interface to do the actual import. So I patched ObjectManager and the compaining dtml-file. Please check them out (included in the mail, sorry for the tr

Re: [Zope] Import from file via management-interface

2000-09-09 Thread Tino Wildenhain
Hi Bill, Bill Anderson wrote: > > How about just the patch next time, as opposed ot the whole patched filed? Ah yes, sure. On the other hand its more convient for the windows people, without a patch at hand... regards Tino ___ Zope maillist - [EMAI

Re: [Zope] Import from file via management-interface

2000-09-09 Thread Tino Wildenhain
Hi Terry, Terry Kerr wrote: > > you can write anything destructive, whether it is an external method, a DTML > Method, or basically anything. At least if the only way you can import .zexp's > is from the import directory, then only people with access to the zope file > structure can import stuf

Re: [Zope] Import from file via management-interface

2000-09-09 Thread Tino Wildenhain
Hi, Martijn Pieters wrote: > > On Sat, Sep 09, 2000 at 09:39:33AM +0200, Tino Wildenhain wrote: > > Terry Kerr wrote: > > > > > > you can write anything destructive, whether it is an external method, a DTML > > > Method, or basically anything. At least

Re: [Zope] keeping Java Servlets session ids based on url rewriting

2000-09-09 Thread Tino Wildenhain
Hi, Kapil Thangavelu wrote: *snip* > I'm going to start working next weekend on Zope calls into JServ. I'd > like to get some requirements from interested parties before i start > coding. Oh nice! I've done the jserv part of the german apache book. So if I could help... Regards Tino _

[Zope] Re: Modification Posts to the list (was: [Zope] Import from file viamanagement-interface)management-interface)

2000-09-10 Thread Tino Wildenhain
Hi Dieter, Dieter Maurer wrote: > > Hi Tino (and other potential patch posters), > > if possibly, you should not post complete source modules > to the list. Instead, you should use either context > or uniform differences to the source. Such a difference file is > called a patch. Yes. I know th

Re: [Zope] Logging out of Zope

2000-09-14 Thread Tino Wildenhain
Hi Stuart, Stuart Foster wrote: > > Is there a way to allow an authenticated user to logout of Zope? Not really. The browser caches the authentication information until it is closed. There are some "workarounds" that work with some browsers, basically raising "unauthorized" pops the authenticati

Re: [Zope] uploading Word files to Zope

2000-09-14 Thread Tino Wildenhain
vert the Word file > to HTML (and a DTML Document, I suppose) and publish that. Any comments? sure, you can do that. But if Word is envolved, things get really nasty ;-) Regards Tino Wildenhain "Why use Word if there are sentences?" __

Re: [Zope] Zope not starting after VaryTag install

2000-09-18 Thread Tino Wildenhain
Hi Didier, so it looks like the vary Tag may be not compliant to older (< 2.2.x) releases of Zope? I have to check this. You should probably check if you really need an ancient version of Zope ;-) I'm really wondering how the tag can cause such a behavior. Its almost an extract of the mime-tag

[Zope] Re(2): [Zope] Zope not starting after VaryTag install

2000-09-18 Thread Tino Wildenhain
Re again, I just checked with 2.1.6 (winNT) and it worked without problems. Can anybody else confirm this? Regards Tino Didier Georgieff wrote: > > Hello, > > Just after installing VaryTag, Zope (2-1-6) restart fine, but when i > try to connect to my zope adress, i got an error (traceback f

Re: [Zope] Re: Re(2): [Zope] Zope not starting after VaryTag install

2000-09-20 Thread Tino Wildenhain
Hi Didier, Didier Georgieff wrote: > > Le 18 Sep 00, à 15:49, Tino Wildenhain a écrit : > > > I just checked with 2.1.6 (winNT) and it worked without problems. > > Can anybody else confirm this? > > Sounds like it's Varytag under Linux related. I'm not

Re: [Zope] Favorites

2000-09-25 Thread Tino Wildenhain
Hi rishi, rishi wrote: > ... > The following tihng is going on; they are uploading the bookmark file > manualy, by exporting from IE or NS. There is a util called > "ImportExportFavorites", a javascript syntax that gets the bookmarks and > post them to the server. One has to have a glance at it

Re: [Zope] Guess Who . . .

2000-09-25 Thread Tino Wildenhain
Hi, nice :-) "Spicklemire, Jerry" wrote: > > . . . has a opening posted on their Web Site for a C/C++ programmer with > Zope / Python experience? > > http://www-3.ibm.com/employment/us/empl/jofK23137.html > ... > Experience Required > Six years work related experience they must be f

Re: [Zope] HTML-Code in variables (addition)

2000-10-07 Thread Tino Wildenhain
Hi Lars, Lars Heber wrote: > > Sorry, I mixed something up. Normal html is no problem at all. > The problem is how to use quotes or such things. > > Of course I get an error by typing: > > http://www.yahoo.com">Yahoo!"> > > I tried typing " instead of ", but then the """ also goes into > the

Re: [Zope] Socket.error problem

2000-10-08 Thread Tino Wildenhain
) > > socket.error: (98, 'Address already in use') > > > > > > I don't use the number 98 in any address or port (http=80, ftp='' and > > monitor='') > > so what could this error be about ? > > tcp

Re: [Zope] Can you specify user/group to run Zope as during install

2000-10-08 Thread Tino Wildenhain
Hi Yusuf, Yusuf Goolamabbas wrote: > > I would like to run Zope not as user 'nobody' but as something else. > Is this possible somehow, also is it possible to install the Zope tree > in a location other than that untarred into [something like > ./configure --prefix=/usr/local/site/Zope] > > Reg

Re: [Zope] expr="id <> 'index_html" issue

2000-10-09 Thread Tino Wildenhain
hi, as usual, if such things happen, "id" is a method. it gets called by zope if you just use on it. So either use id() or better, look for title and if not set (dont set a title on html_index then) dont display it. Regards Tino [EMAIL PROTECTED] wrote: > > Okay, this is my second question f

Re: [Zope] Zope/Posgresql/RedHat Linux

2000-11-02 Thread Tino Wildenhain
Hi, "Bak @ kedai" schrieb: > > > is a suitable combination. I have attempted to configure this combination > > but run into trouble compiling PoPy-1.4.1 on RedHat Postgresql - and have > > not been able to resolve the problems via RedHat or Mixadlive - hence my > > question. > > Regards, Chris M

Re: [Zope] CMS/publishing system

2000-11-02 Thread Tino Wildenhain
front as dispatcher) > Zope looks like a really nice platform, any real-world evaluations would be > most appreciated... We are currently implementing a light CMS. So stay tuned... ;) Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED]

[Zope] Patch to avoid hypenation variables and more

2000-12-04 Thread Tino Wildenhain
Hi there, finally I want to release my patch for the in-tag. I hope it finds its way into the source-tree. I was sick writing such ugly constructs as _[_['sequence-item']] and so on, so I patched DT_In.py and DT_InSV.py (in lib/python/DocumentTemplate) to use sequence_item as well. All hypenatio

Re: [Zope] Patch to avoid hypenation variables and more

2000-12-04 Thread Tino Wildenhain
Hi Chris, Chris Withers schrieb: > > Tino Wildenhain wrote: > > > > finally I want to release my patch for the in-tag. I hope > > it finds its way into the source-tree. > > Looks very cool :-) > > Is it in the collector yet? I've put it on the coll

Re: [Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-05 Thread Tino Wildenhain
Hi Frederic, Frederic Quin schrieb: > > Hi all, > > I have the same querry to execute on different servers. I don't want to > create as many z sql methods as servers I have. I would like to specify > to my z sql method, the connection object to use at run time. Do I have > to patch the files of

Re: [Zope] Patch to avoid hypenation variables and more

2000-12-07 Thread Tino Wildenhain
Michel Pelletier schrieb: > > > The second problem is if you put one in-tag into another. > > You have to use oder REQUEST.set() with variables > > of the outher in-tag to be able to reference them in the inner > > loop. The code becomes very ugly this way. So my idea was to > > give the in-tag

Re: [Zope] newbie question -- database list/report with sort bycolumn header

2000-12-09 Thread Tino Wildenhain
Hi, Chris Gray schrieb: > > Here's a fragment from a table that allows sorting by clicking the header > in a dtml method named 'displayTable': > > > > ID > Product > > > > Then feed sort_key into your SQLSelectQuery to use in an ORDER BY clause. > > select * from table order by > You s

Re: [Zope] Random choice in ?

2000-12-10 Thread Tino Wildenhain
Hi J, "J. Atwood" schrieb: I think should do what you want. HTH Tino Wildenhain > > Ok.. so I can get a random item out of a folder with. > > > > And I can iterate through a folder with > > > , , > > > But I want to inclu

Re: [Zope] Patch to avoid hypenation variables and more

2000-12-11 Thread Tino Wildenhain
Hi again, anybody had time to test this? Chances for next zope release? Any remarks? Alternatively, btw. would be a name attribut, which defaults to "sequence". Regards Tino Tino Wildenhain schrieb: > > Michel Pelletier schrieb: > > > > > > The second pro

Re: [Zope] Patch to avoid hypenation variables and more

2000-12-11 Thread Tino Wildenhain
ones that lern zope. Since I often see the missunderstood meaning of in such constructs like: ]"> you know what I mean? I think it would be more obvious, if the tag would usually be called or something. Regards Tino Tino Wildenhain schrieb: > > Michel Pelletier schrieb: > &g

Re: [Zope] More on DB Transactions

2000-12-16 Thread Tino Wildenhain
this current state. But I will do so soon. On request, I can give what I have now. Regards Tino Wildenhain Rik Hoekstra schrieb: > > > Paolo Quaglia wrote: > > > > Reading the [EMAIL PROTECTED] archive I found one message with an > > interesting sentence: > &

Re: [Zope] standard_error_message woes!

2000-12-24 Thread Tino Wildenhain
Hi Chris, Chris Withers wrote: *snip* > > PS: almost related, have you noticed how there's no way you can prevent Zope > (other than hacking the source) from tacking the error message on the end of > the HTML stream, even in production mode? Not only does this produce badly > formed HTML, but i

Re: [Zope] HTTPSConnection Python 2.3.4

2005-04-01 Thread Tino Wildenhain
Hi, Am Freitag, den 01.04.2005, 14:35 -0500 schrieb Paul Winkler: > On Fri, Apr 01, 2005 at 08:29:39AM +0100, Chris Withers wrote: > > Paul Winkler wrote: > > >I have a somewhat similar issue; an in-house Zope product is retrieving > > >some > > >information from a remote URL. If I hit the same U

Re: [Zope] Set MIME type using ZPT

2005-04-05 Thread Tino Wildenhain
Am Dienstag, den 05.04.2005, 13:11 -0700 schrieb srikanth: > Hi, > > I am using an external method to load an Image from the harddrive. The > external method is as follows: > > from email.MIMEImage import MIMEImage > ##parameters=filename > def getDocument(filename): > fname = '/mnt/'+fil

Re: [Zope] how to store ZSQL query results in a python var

2005-04-07 Thread Tino Wildenhain
Am Donnerstag, den 07.04.2005, 04:10 -0700 schrieb prabuddha ray: > from a newbie, > i've this ZSQLmethod returning me a string only. how do i > store it a var in my python script. > eg., userlevel = container.getUserLevel(uname=user) > > when i print it using html_quote as : >print

Re: [Zope] DTML namespace problem (was: dtml-tree issue)

2005-04-11 Thread Tino Wildenhain
Hi, Am Montag, den 11.04.2005, 14:08 +0300 schrieb Vangelis Mihalopoulos: > > Andreas Jung wrote: > > > You should *not* define classes inside PythonScripts. PythonScripts > > are stricted > > and don't provide the full functionality. Either use filesystem based > > code (Zope > > Product) or

Re: [Zope] Subfolders of Extensions folder

2005-04-15 Thread Tino Wildenhain
Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky: > Hi, all! > > Can I use the folders in Zope's "Extensions" folder to keep the External > Methods in more logical way? iirc you can just create a directory in Products and put your methods there. You can then import it from here.

Re: [Zope] Re: Subfolders of Extensions folder

2005-04-15 Thread Tino Wildenhain
Am Freitag, den 15.04.2005, 10:41 -0400 schrieb Tres Seaver: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Tino Wildenhain wrote: > > Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky: > > > >>Hi, all! > >> > >>Can I us

Re: [Zope] ZPsycopgDA dropping connections?

2005-04-19 Thread Tino Wildenhain
Hi, Am Mittwoch, den 20.04.2005, 15:23 +1000 schrieb Richard Jones: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Has anyone else seen ZPsycopgDA just lose its connection? I've got two ZEO > clients set up to use it, and every now and then one of them (the primary) > just up and loses i

Re: [Zope] Charset

2005-04-28 Thread Tino Wildenhain
the header in the publish process, e.g. with a python script or something you use for default display. Also you need to set a property manage_page_charset in zopes root to be able to use that encoding in ZMI too. This way you arent storing unicode - only utf-8 as you want to display it. Regards Tino

Re: [Zope] More tolerant Stripogram (solution)

2005-05-02 Thread Tino Wildenhain
> 'trow','thead','tbody','textarea','tr','tt','var','xml','xmp','title', > 'div','span','a','abbr','acronym','area&

Re: [Zope] Charset

2005-05-02 Thread Tino Wildenhain
Am Montag, den 02.05.2005, 09:43 +0200 schrieb [EMAIL PROTECTED]: > Hello everybody, >I change the file "manage.dtml" in ..\python\app\dtml. This is the change > I've done: > "http://www.w3.org/TR/REC-html40/loose.dtd";> > > > > Zope on &dtml-BASE0; Yes, thats a common problem - true HTTP-

Re: [Zope] Menus (was no subject)

2005-05-03 Thread Tino Wildenhain
ripts, get static menus working 1st, then add in the > > dtml to provide menu content. > > Did you googling that? Try google for: lukesh zope menu > > Sorry for late response... Btw. you dont need no Javascript if you dont have to support old browser like IE and friends. It is

Re: [Zope] HTML post processing in Zope

2005-05-05 Thread Tino Wildenhain
Am Donnerstag, den 05.05.2005, 14:58 +1200 schrieb Cyrille Bonnet: > Hi all, > > I am trying to perform a post-processing on all HTTP responses, before > they get sent to the browsers. I am using Zope 2.7.3 nad Plone 2.0.5. > > I had a look at the ZServer class: it seems to be the right place, b

Re: [Zope] Is it possible to extend Zopes WebDAV authentication?

2005-05-06 Thread Tino Wildenhain
Am Freitag, den 06.05.2005, 19:26 +0100 schrieb mark hellewell: > On 5/6/05, Dieter Maurer <[EMAIL PROTECTED]> wrote: > > > WebDAV uses "basic HTTP authentication" which should use whatever > > UserFolder you have installed. > > Thanks.. So, I think I should be able to modify the authentication p

Re: [Zope] utf-8 vs. unicode question(s)

2005-05-06 Thread Tino Wildenhain
Am Freitag, den 06.05.2005, 19:40 +0200 schrieb Jürgen Herrmann: > hi out there! > > there's been some discussion about utf-8 vs. unicode strings on the > list lately. i'd like to ask if my gained understandings are correct > und thus possibly make it clear to others also. > > i have set my pytho

Re: [Zope] Is it possible to extend Zopes WebDAV authentication?

2005-05-07 Thread Tino Wildenhain
Am Samstag, den 07.05.2005, 12:04 -0400 schrieb Chris McDonough: > Web Folders pass cookies around too, FWIW, so it's probably not strictly > necessary to use http basic auth. But without using http basic auth, > there is no way to log in unless you have them go to the web interface > first, then

Re: [Zope] dollars-and-cents display fails

2005-05-14 Thread Tino Wildenhain
Am Freitag, den 13.05.2005, 23:42 -0700 schrieb Greg Fischer: > http://dev.mysql.com/doc/mysql/en/numeric-type-overview.html > That's it right there! Before 5.0.3, they were unpacked, meaning > saved like a char. Now they are packed, fixed point numbers. This is > screwing up the python function

Re: [Zope] Float object not callable (newbie question)

2005-05-14 Thread Tino Wildenhain
Am Freitag, den 13.05.2005, 16:06 +0100 schrieb Paul Hendrick: > hi all, > I'm trying to write a simple app which takes a name, bank balance, > interest rate and returns the balance once 1 years interest has been > added. I'm getting the error that float object is not callable. > i can't figure ou

Re: [Zope] WebDAV Locked Item Unlockable

2005-05-16 Thread Tino Wildenhain
Am Montag, den 16.05.2005, 08:26 -0600 schrieb [EMAIL PROTECTED]: > Hi. How do I unlock a locked WebDAV item (in this case a ZPT) edit > with Dreamweaver MX. The locked item does not show up on the Control > Panel > WebDAV Lock Manager, and the lock even survives a Zope > restart. All attempts

Re: [Zope] Postgres stored procedures and views support in Zope

2005-05-17 Thread Tino Wildenhain
Am Mittwoch, den 18.05.2005, 00:20 -0300 schrieb David Pratt: > Can someone tell me whether/how zope supports views and stored > procedures with zope. Do I need any other product besides the psycopg > adapter? Any links to references appreciated. There is no special support... needed. views are

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Tino Wildenhain
The pattern is like this: somedata=[{'value1':r.value1, # use comments a lot 'value2':r.value2, # possibly in every 'value3':r.value3+r.value4 # line } for r in context.your_zsqlmethod(arg1=argument1)] You can do a

Re: [Zope] how to accumulate data using ZPT

2005-05-20 Thread Tino Wildenhain
item in results: if item.value: # this handles the case of nulls total+=item.value and use the total as argument: return context.yourPageTemplate(results=results, count=len(results), total=total) -- Tino Wildenhain <[EM

Re: [Zope] how to accumulate data using ZPT

2005-05-20 Thread Tino Wildenhain
Am Freitag, den 20.05.2005, 10:36 +0100 schrieb Hugo Ramos: > On 5/20/05, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > > Am Freitag, den 20.05.2005, 09:52 +0100 schrieb Hugo Ramos: > > > Yellow, > > > > > > What DBMS are you using??? MySQL???

Re: [Zope] Re: how to accumulate data using ZPT

2005-05-20 Thread Tino Wildenhain
;m checking using tal:condition but how to add the > value repeatedly in the sum var. No, you definitively dont want that type of algorithm implement in ZPT. Thats better done in python scripts. The skeleton again in my mail. Forget about the count() for a moment. Regar

RE: [Zope] Modifying __bases__

2005-05-20 Thread Tino Wildenhain
Am Freitag, den 20.05.2005, 13:48 -0400 schrieb Dan Pozmanter: > Well, when I run it, I am able to do the following: > > > class A: > pass > > class B(A): > pass > > b = B() > > B.__bases__ = () > > print B.__bases__ > -

Re: [Zope] SQL Database Connections

2005-05-20 Thread Tino Wildenhain
Am Freitag, den 20.05.2005, 18:28 +0200 schrieb Andreas Jung: > > --On Freitag, 20. Mai 2005 9:18 Uhr -0700 Jonathan Daugherty > <[EMAIL PROTECTED]> wrote: > > ># Depends on the underlaying DAso which one are you using? In > ># general a DA should reconnect automatically. > > > > I'm using t

Re: [Zope] Equivalent of "context" ZPT variable in DTML ?

2005-05-22 Thread Tino Wildenhain
Am Montag, den 23.05.2005, 00:01 +0200 schrieb KLEIN Stéphane: > Hello, > > What is the equivalent in DTML of ZPT "context" variable ? Its more or less the underscore: _ _ == context this() == template (or somethimes context if its a dtmlmethod I believe) The main problem with DTML is its lax h

Re: [Zope] Still. Zope date datatype and TimeZone formatting problems.

2005-05-23 Thread Tino Wildenhain
Am Sonntag, den 22.05.2005, 13:01 -0500 schrieb Felipe Barousse Boue: > Zopistas: > > I am experiencing the same problem you described by Mr. Hong Yuan in his > post a few from last March. I have Zope 2.7.4, python 2.3.4 and > PostgreSQL 8.0 and psycopg as DB adapter. > > All my dates stores in

Re: [Zope] How can I get context property in DTML ? (example)

2005-05-23 Thread Tino Wildenhain
2 > When I go to dir1/dir3/foo_html => I show 3 > > How can I do it ? If foo_html is a DTML Method (Method, not Document!) its just: (And god knows where the bar come from ;) could work too and would be more explicit. -- Tino Wildenhain <[EMAIL PROTECTED]> __

Re: [Zope] UnicodeDecodeError

2005-05-23 Thread Tino Wildenhain
Am Montag, den 23.05.2005, 10:35 +0200 schrieb Joern Wallstabe: > Hello, > > i would like to feed a zpt form with data from a python dictionary via a > python script > > zpt snippet: > > > This is wrong anyway. Use tal:content in the textarea instead. > > > python script prinDict: > > ke

<    1   2   3   4   5   >