[Zope-dev] Structure-text : html
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 consider it a serious bug. And there should be coding rules that ensure in future no such bugs exist in Zope. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] MountedFileStorage : absolute_path return / instead of mounted poing
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 kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Zope 2.4: Unicode, Berkeley Storage?
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 - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] what to return for a manage_edit method
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 maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] __init__.py of ZServer is diff format?
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] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Manage Interface
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 interface on specific branch of the object tree will easy their jobs. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] convert zope objects to unicode
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 source, I can not find where is the appropriate place to do it. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.4 and unicode merge
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 kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] 27 million objects.
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 : putting cataloger in branches and make them catalog only those they were interested. for example, if we put catalog in every branch of tree, then they catalog only that branch. catalog can be set to propagate their collection into higher level. This can be done in background. Then a search on a higher level will result in : 1. result in that catalog which meet the search specification and result from the lower level of those the higher level does not known as which match the search specification. In such settings, for example, we can arrange the catalog into multi-layer or have catalog specialize in one section. And have the propagate hierarchical which they update their upper level catalog in batch. The user is allow to search in a level and get all results up to that level and below. for example, in zope.org, we can put catalog in every document level, which catalog one document and one mother catalog which combine all catalogs from every document and one level up to handle all zope site. The we can search specifically in whatever level we want. It seems very difficult for all the catalog hierarchical to share their storage, so there will be some storage inefficent. But this can provide the necessary scalability. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Python 2
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 - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] zwiki chinese
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 page is created, but zwiki fail to recognize the new page and fail to link to it. can anybody help point to me where should i make further changes? moreover, is it possible to create a corresponding wikiname - id link so the wikiname does not necessary a valid zope id? when we make editing the wiki page, is it a worth to have a list of all valid wiki name handy so we can make reference to them or avoid making an unexpected link? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] zWiki and Chinese
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 can not create new pages with name in Chinese. Because the way that wiki is create, it is very limited and ugly to include some unrelated WiKiNames in the middle of the text, and the link nevery self-explain. Is it possible to include quote or other encoding methods such that the utf-8 encoded text between [] were always converted to a correct ZODB id? Which might solve the currently id problem for zope? Moreover, zWiki use regular expression on the utf-8 text as if they were ascii. Is it possible to convert it to unicode before applying regular expression? Or can we store them as unicode? Rgs, Kent Sin Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] freebsd file: table is full when starting zope2
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 maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[zope-dev] Splitter
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. Moreover, building multi-lingual sites is certainly a must of the web age, make survey for the big corps, being globally business you must talk all languages. If zope really want to be the leader, zope must talk all languages. Instead of just taugh zcatalog to listern all language, I would like to see the lang= tag attributes were removed from the Zope source completely. Allowing the zope manager to set lang and encoding as his own will. Moreover, make Zcatalog use unicode internally. (may be turning zope completely a unicode app). Rgs, Kent Sin ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] build Zope on linux
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 maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZCatalog with UTF-8 Chinese
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 understand what getlexicon is doing and I would like to learn what q should looks like before it is passed to evaluate. I do not understand that vocabulary seems to store like integer, is getlexicon a step to look up the string to convert them to integer? I am getting lost. Could some experienced developer help me out of these? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net def query(self, s, default_operator = Or, ws = (string.whitespace,)): """ This is called by TextIndexes. A 'query term' which is a string 's' is passed in, along with an index object. s is parsed, then the wildcards are parsed, then something is parsed again, then the whole thing is 'evaluated' """ # First replace any occurences of " and not " with " andnot " s = ts_regex.gsub('[%s]+and[%s]*not[%s]+' % (ws * 3), ' andnot ', s) # do some parsing q = parse(s) ## here, we give lexicons a chance to transform the query. ## For example, substitute wildcards, or translate words into ## various languages. q = self.getLexicon(self._lexicon).query_hook(q) # do some more parsing q = parse2(q, default_operator) ## evalute the final 'expression' return self.evaluate(q) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZCatalog : UTF-8 Chinese
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) from Interscript the utf8 encoding conversion scheme. I separate the chinese with space by hand hoping the Zcatalog will work. After changing these, I have a catalog which looks good : I can see from the volucably the chinese were actually there (except with some which have html encode like inside the utf8. I generate the search interface, and test it. However, the search of the index terms return nothings. I search most entries found in the vocubalury but none works, those work will return many unwanted results also. What is causing this failure? What I can do to go further? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net Splitter.py
[Zope-dev] XML in Zope
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 - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope view as object file system instead of web content management
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 perl is being introduce to zope, I think this is just an start: more and more people will join in to use zope with their native language. However, the current zope status is not suitable to accept such an change, I shall say we should have something like DOM for xml for zope before we can invite them to explore the world of zope. 1, zope should based on unicode, having everything look at them as if it serve their native encoding by translating encoding during the publishing machanism. 2, zope should be prepared to meet the distribution world where multiple zope co-operative is possible. I can see the benefit to have unique zope object id by having a auto-gen local zope id and together with system identifier to form globally unique id. This will benefit many things: storing object to database, transfer them, archive, tracking their changes, etc. To solve the mirror and duplicate copy, the new objectid shall take the original id, plus the duplicate type and the new system id, to preserve link and unique id. 3. some zope object can be float around without a fixed location, this can be view as all of them are located in the root location or been placed to under a transparent folder. This make no big different but can free our way to utilize objects. 4. some interfaces of creating, modifing, publish through various protocol, access to meta data, attach method, make invisible (delete), duplicate, changing its storage method, spliting version, and such can be defined as what DOM does. 5. Make the publishing machenism forgiving by nature, i.e., one can access an object by putting before it some non-exist path, as if it were located in an non-existing location. This does not change many thing, but will give greate flexability to what people can do. 6. Map dtml to the new DOM model and let everybody happy using their own native language. I am not a programmer but I feel that the current zope have been very confusing with too many surprise in dtml and its syntax. If we continue to go on like this and introduce perl people, I am afraid the result will be fatal. Zope is very powerful but it might also its deadly weakpoint. Make zope stronger before injecting more power in it. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope view as object file system instead of web content management
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 perl is being introduce to zope, I think this is just an start: more and more people will join in to use zope with their native language. However, the current zope status is not suitable to accept such an change, I shall say we should have something like DOM for xml for zope before we can invite them to explore the world of zope. 1, zope should based on unicode, having everything look at them as if it serve their native encoding by translating encoding during the publishing machanism. 2, zope should be prepared to meet the distribution world where multiple zope co-operative is possible. I can see the benefit to have unique zope object id by having a auto-gen local zope id and together with system identifier to form globally unique id. This will benefit many things: storing object to database, transfer them, archive, tracking their changes, etc. To solve the mirror and duplicate copy, the new objectid shall take the original id, plus the duplicate type and the new system id, to preserve link and unique id. 3. some zope object can be float around without a fixed location, this can be view as all of them are located in the root location or been placed to under a transparent folder. This make no big different but can free our way to utilize objects. 4. some interfaces of creating, modifing, publish through various protocol, access to meta data, attach method, make invisible (delete), duplicate, changing its storage method, spliting version, and such can be defined as what DOM does. 5. Make the publishing machenism forgiving by nature, i.e., one can access an object by putting before it some non-exist path, as if it were located in an non-existing location. This does not change many thing, but will give greate flexability to what people can do. 6. Map dtml to the new DOM model and let everybody happy using their own native language. I am not a programmer but I feel that the current zope have been very confusing with too many surprise in dtml and its syntax. If we continue to go on like this and introduce perl people, I am afraid the result will be fatal. Zope is very powerful but it might also its deadly weakpoint. Make zope stronger before injecting more power in it. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] catalogaware dtml document
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 maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )