[Zope] XML-RPC error

2000-07-09 Thread Sin Hang Kin
Hi, After failing to use wxLoadSite, which report wxloadsite.py, line 164, in onPressCopy AttributeError: host I try to test it by hand, I start up python and >>> zs = xmlrpclib.Server('http://localhost:8080',username='kentsin',password='passwo rd') >>> t = zs.objectIds() Traceback (innermost

[Zope] XMLRPC error

2000-07-01 Thread Sin Hang Kin
Hi, After failing to use wxLoadSite, which report wxloadsite.py, line 164, in onPressCopy AttributeError: host I try to test it by hand, I start up python and >>> zs = xmlrpclib.Server('http://localhost:8080',username='kentsin',password='passwo rd') >>> t = zs.objectIds() Traceback (innermost

[Zope] Unique id product

2000-06-30 Thread Sin Hang Kin
Hi, I want to develope a unique sequence id generator product, I have the following code def newid(self, increment=1): """ return new id """ self.counter = self.counter+increment return self.counter I am not quite sure if this works when more than one process asking

Re: [Zope] Access object inside a folder

2000-06-27 Thread Sin Hang Kin
Error Type: AttributeError Error Value: __getitem__ Traceback (innermost last): File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program Files\Zope2\lib

[Zope] Access object inside a folder

2000-06-27 Thread Sin Hang Kin
Hi, I have put objects inside a folder tabledef and would like to refer them : However, this does not work, But putting the objects in the current folder works without problems: I also try: and some other combinations, all without success. How can I access the objects

[Zope] Transaction in zodb

2000-06-17 Thread Sin Hang Kin
Hi, Is transaction build in of ZODB? I have a product which keep a counter property and a inc method which will increase the property with a integer amount. I would like to make sure that concurrent inc call will not cause problem. Is ZODB automatically do transaction and prevent corrupt of data?

[Zope] Transaction in zodb

2000-06-17 Thread Sin Hang Kin
Hi, Is transaction build in of ZODB? I have a product which keep a counter property and a inc method which will increase the property with a integer amount. I would like to make sure that concurrent inc call will not cause problem. Is ZODB automatically do transaction and prevent corrupt of data?

[Zope] Re: ANN: Perl for Zope

2000-05-26 Thread Sin Hang Kin
Oh no!!! Zope by itself is bad enough. Do pull in more trouble. Zope needed to clean up before it goes too bad. Zope is powerful, but is already too difficult for beginner to learn. It is not easy to do simple things, I think this will destroy zope because It will bring in more different syntax

[Zope] generating

2000-05-25 Thread Sin Hang Kin
Hi, I have a dtml-method which is going to generate a data enter form like what metapublisher is doing, but fully in dtml, now I have the following problem: The method generate a DTML document with fieldname as its id, lable as title and the input code as its content, its help text as help. Assu

[Zope] store list or dict in properties

2000-05-25 Thread Sin Hang Kin
Hi, Can I store list or dict in properties? I have some small tabulate value which need to be changed frequently, I have take a look at tinytable, but it is very hard to change the value even with the help of cguardia's code. I would like to use a dict or list directly storing as an zope object o

Re: [Zope] detect root.

2000-05-21 Thread Sin Hang Kin
YES!! Greate! Thank you Evan! Rgs, Kent Sin -- Do we need long term solution in web? --- Original Message - From: "Evan Simpson" <[EMAIL PROTECTED]> To: "Sin Hang Kin" <[EMAIL PROTECTED]>; "Zope Admin list&q

[Zope] detect root.

2000-05-20 Thread Sin Hang Kin
Hello, I ask about how to detect root in the list and Got three answer: We're at the root folder You can go up from here Title is Zope No title not zope root folder have not identity there is id However, all of them fail working in virtual web with siteroot set. How can I detec

[Zope] detect root folder

2000-05-20 Thread Sin Hang Kin
Hi, Is it possible to detect the top folder in dtml? I means I would like to prevent squishdot to show the ../ when it is already in the top level. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope mail

[Zope] Generate edito form from dtmlDocument : property type

2000-05-20 Thread Sin Hang Kin
Hello, I have the method form_dtmlDocument which generate the data entry form from an existing dtmldocument, How can I determine the type of the properties? Moreover, if the property is expected as list, how can I convert it into multiple input tag? CODE : form_dtmlDocument : " val

[Zope] : generic adddtmlDocument method need to find extra form data type

2000-05-20 Thread Sin Hang Kin
Hello, I have make the method for adding a dtml-document to the current folder with additional data as properties, However, I can not determine the type of the data, the type information I put in the form :date is removed by zope. (also, zope display an ugly debug screen if the data type is wrong

[Zope] ZWiki do not support utf-8

2000-05-19 Thread Sin Hang Kin
Hello, I am trying to use zWiki with Chinese. However, I found out that zwiki & quote some bytes of the utf-8, this break the string. For example, the utf-8 character is composed by three bytes : abc, but zwiki quote one of the byte a, then it comes out as &something;bc which is not a valid utf-8

[Zope] Zcatalog : putting the search result in frame

2000-05-18 Thread Sin Hang Kin
Hello, How can I put the search result into a frame? I create the search interface with the zsearchinterface, it have the searchform and reportpage generated. I intended to put the reportpage into a frame, I have modified the searchform page's action to point to the frameset instead of directly p