[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

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

[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

[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

[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

[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 : dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id mapping dtml-var "_['sequence-item']" html_quote /dtml-in However, this does not work, But putting the objects in the current folder works

Re: [Zope] Access object inside a folder

2000-06-27 Thread Sin Hang Kin
dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id mapping dtml-var "_['sequence-item']" html_quote /dtml-in Error Type: AttributeError Error Value: __getitem__ Traceback (innermost last): File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 222, in

[Zope-dev] Frames and Zope

2000-05-18 Thread Sin Hang Kin
Hi, I am working at a search form and trying to display the result in one of the frame newly created. I just realize by putting the dtml-var REQUEST instead of the code into the frames, the variables were all gone. I recall that zope take account to different browser section, did this related

[Zope-dev] catalogaware dtml document

2000-05-21 Thread Sin Hang Kin
Is it possible (worth?) to make dtml-document catalogue aware by default? Or to allow the creater to decide this behavior by setting a property? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev

[Zope-dev] Import from upload?

2000-05-25 Thread Sin Hang Kin
Hi, I have just come acroos this idea of having zope accept the import file from an upload form instead of having it from the server directory. In web hosting environment like imeme.net, It is painful and unsecure for all to share the import directory for updating. Rgs, Kent Sin

[Zope-dev] Zope view as object file system instead of web content management

2000-05-28 Thread Sin Hang Kin
Hello DC: It have been pointed out that zope is an object file system instead of an web content management system. But the current activities of zope usage have been mainly apply it as an web app server. This point of view may not release fully the potentials of zope. We have currently seen

[Zope-dev] Zope view as object file system instead of web content management

2000-05-28 Thread Sin Hang Kin
Hello DC: It have been pointed out that zope is an object file system instead of an web content management system. But the current activities of zope usage have been mainly apply it as an web app server. This point of view may not release fully the potentials of zope. We have currently seen

[Zope-dev] XML in Zope

2000-06-02 Thread Sin Hang Kin
Kevin, I agree with you, the performance will be better and more powerful. The thing missing in zope (dtml) now is that we can not store multiple instance of the same name which is allow with xml: authorabc/authorauthorcde/author. I hope the xml implementation will have this. Rgs, Kent Sin

[Zope-dev] Wstring

2000-07-17 Thread Sin Hang Kin
hello : Does anyone known how to patch Zope2.2 for Wstring? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No

[Zope-dev] ZCatalog : UTF-8 Chinese

2000-09-25 Thread Sin Hang Kin
HI, I have a project which need search with Chinese. I think I can make Zcatalog to search Chinese in utf8. So I change Voodoo Kludge Splitter.py to convert the input string to unicode (assume it is utf8) and make a version of split of my own (see the attached splitter.py). I borrow (stolen)

[Zope-dev] ZCatalog with UTF-8 Chinese

2000-09-27 Thread Sin Hang Kin
Dear Developer: Trying to short-cut UNTEXTINDEX to handle UTF-8 Chinese, I need some help. After reading some code of query, I think the regular expression operations which in parse, quotes and parse2 were not safe for utf8 string. So, I decide to emulate what they do. However, I do not

[Zope-dev] build Zope on linux

2000-10-09 Thread Sin Hang Kin
When building current zope cvs, cPickle.c want the mymath.h. Where can I get mymath? What devel package I should install for a debian system? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev

[Zope-dev] Building Zope on Linux

2000-10-10 Thread Sin Hang Kin
Recently I report the MyMath.h is missing. After receiving the help from the list, I realize I have just got the python 2.0 beta from the sourceforge cvs. the file must have been removed from python. Are there any branch of Zope which is intended to run on Python2? I would like to propose a new

[zope-dev] Splitter

2000-11-09 Thread Sin Hang Kin
Providing full-text search is an advantage that Zope over other web app servers. However, the current Zcatalog does not respect the local languages. There is more than 3 splitters which works for different languages already. I do think anyone would see zope being split by this splitter issue.

[Zope-dev] freebsd file: table is full when starting zope2

2001-02-14 Thread Sin Hang Kin
When starting Zope2.3 from the freebsd box, the kernel says : file: table is full. The kern.maxfiles is set to 1064, does zope really need that many? what number should I need to make zope happy? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net

[Zope-dev] zWiki and Chinese

2001-03-12 Thread Sin Hang Kin
I am trying to fix zWiki for Chinese. What I did is to remove for c,e in intl_char_entities: t = re.sub(c,e,t) from _text_cleanups of ZWikiPage.py Then, I modify all forms to make them set utf-8 as default encoding. After that, every thing seem working. The only problem for me is that I

[Zope-dev] zwiki chinese

2001-03-14 Thread Sin Hang Kin
in my current effort to try make zwiki work in chinese, i have done the following: i remove the intl_char_entities and add to _create_page: #make a new (blank) page object page = re.sub("%","",quote(page)) which make the created pageid valid zopeid (does it work all_the_time?) however, the

[Zope-dev] Python 2

2001-03-20 Thread Sin Hang Kin
Is python 2 ready for the upcoming beta? Will the next release of zope win32 come with python 2 or use the installed python if available? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist -

Re: [Zope-dev] 27 million objects.

2001-04-09 Thread Sin Hang Kin
Concerning Zcatalog: 1. Search of vocabulary is fully matched, partial search, trancate search or fuzzy search will be useful for searcher. 2. If we catalog all things in one catalog, then we need to make filter when we want to search on one particular portation. 3. I would like to suggest :

[Zope-dev] Zope 2.4 and unicode merge

2001-05-09 Thread Sin Hang Kin
Can DC merge the unicode.diff into zope 2.4 standard distribution? The current 0.5 diff seems not working, and since 2.4 is based on python 2.1 then it sounds reasonable to include unicode attributes as a core part of zope. Rgs, Kent Sin - kentsin.weblogs.com

[Zope-dev] win binaries for zope cvs

2001-05-09 Thread Sin Hang Kin
It seems that the cvs is running with python 2.1 already, can someone provide the win binaries so we can test the current cvs? I think the current develope does not change the c extensions, so we could play around without wait until the 2.4 beta release. Rgs, Kent Sin

[Zope-dev] convert zope objects to unicode

2001-05-16 Thread Sin Hang Kin
If I would like to hack zope to store all string objects in unicode, where is the best place to do it? I would like to have the incoming string go through unicode(inputstr, encoding) and all outgoing strings go through with outputstring.encode(encoding) However, after looking around the zope

[Zope-dev] Manage Interface

2001-05-24 Thread Sin Hang Kin
Does DC plan to have site developer make their own management interface? The site-developer wouln't mind using the management interface for their work, but most of them will reject the common users using it. Of cause there were security issues also. Allow the site developer to make new

[Zope-dev] __init__.py of ZServer is diff format?

2001-06-05 Thread Sin Hang Kin
I update zope from cvs this morning. The ZServer/__init__.py contain __init__.py is it in diff format? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Re: Zope 2.4: Unicode, Berkeley Storage?

2001-06-22 Thread Sin Hang Kin
I think bsddb3 only accept string not unicode string. rgs, Kent Sin ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

[Zope-dev] what to return for a manage_edit method

2001-06-22 Thread Sin Hang Kin
What should I return to for a method that create a new object or modify the object? If I return a redirection, will it too restricted for web only? If I return a simple ok, it seems very stupid. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net

[Zope-dev] MountedFileStorage : absolute_path return / instead of mounted poing

2001-06-23 Thread Sin Hang Kin
I was playing with MountedFileStorage, and found that the absolute_path used in breadcrumb is returning the / instead of the mounted point. Can somebody give it a patch? Moreover, Can I mounted a Bsddbstorage with it? Rgs, Kent Sin - kentsin.weblogs.com

[Zope-dev] Structure-text : html

2001-09-20 Thread Sin Hang Kin
When I use dtml-var StructureTextDoc fmt=structured-text I got html /html in the result. Are there any reason that it should be there? I wounder how can structured text generate valid html or be used in wap applications. If structured text is hard coded to output unnecessary html then I