[Zope] 2.2.1 and zdiscussion
hi a clean install won't start properly with ZDiscussion product install. the same thing also with ZDiscussion based classes created. tracebacks when starting 2000-08-26T04:13:44 ERROR(200) Zope Couldn't import Products.ZDBase Traceback (innermost last): File /tmp/Zope/lib/python/OFS/Application.py, line 396, in import_products (Object: string) File /tmp/Zope/lib/python/Products/ZDBase/__init__.py, line 86, in ? File /tmp/Zope/lib/python/Products/ZDBase/ZDiscussions.py, line 106, in ? File /tmp/Zope/lib/python/App/class_init.py, line 109, in default__class_init__ (Object: ZDItem) File /tmp/Zope/lib/python/AccessControl/Permission.py, line 204, in registerPermissions ValueError: unpack sequence of wrong size -- 2000-08-26T04:13:44 ERROR(200) Zope Couldn't import Products.ZDConfera Traceback (innermost last): File /tmp/Zope/lib/python/OFS/Application.py, line 396, in import_products (Object: string) File /tmp/Zope/lib/python/Products/ZDConfera/__init__.py, line 3, in ? File /tmp/Zope/lib/python/Products/ZDConfera/ZDConfera.py, line 2, in ? ImportError: cannot import name ZDiscussions this is a bit frightening since i have a zclass subclass on zdbase in production server and this prevents me from being on the latest stable release. can anything be done? this on rh linux, 2.2.1 final thanks ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to implement a round through the whole web site
Christian Leutloff wrote: > > Hi, > > I want to add a round to a small Zope based web site. Therefor I would > like to add a prev and a next button on each page. So it is possible > to start on the first page and then move on to the next one by > clicking on the next button. After some clicks on the next button I'm > sure to have visited all pages. > > I want to realize this goal through adding an attribute named sequence > (´seq´) to every DTML document that should be reached through the > round. The value is a 4 digit number that defines the order in which > the pages should appear. Then I've started to implement a method using > DTML to generate the hyperlinks for prev/next. The strategy would be > to determine the sequence number of the actual document. Afterwards > all documents are searched and each id is compared to the actual > one. The results should be saved in variables that could be used to > set up the links after all documents have been processed. > > My problem is now how to store the intermediate results in > variables. I'm able to define a variable (myseq), but I'm not able to change > the value afterwards: I 'feel' like I may not know everything you're wanting to accomplish, but. By, 'small', do you mean 50 pages, 100 pages? How about each page gets an id that will put it in the proper order when it is appended to a list and then sequenced through? Start out with id's that are, maybe 10 numbers apart so that you can easily insert pages in the sequence with out renumbering the other pages. Or you could just as easily use your 'seq' property. Create and append to a list each of the pages sorted by id. Then your NEXT PREVIOUS links will be to; sequence-index +1 and sequence-index - 1. HTH, -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to implement a round through the whole web site
On 25 Aug 2000, Christian Leutloff wrote: > My problem is now how to store the intermediate results in > variables. I'm able to define a variable (myseq), but I'm not able to change > the value afterwards: > > < snip > > > > <-- wrong!!! You're going to kick yourself on this one : > Are there better solutions? > > Do you know of a predefined way to implement the round through the web > site? Given your description, which I'm not sure I completely understand, I'd suggest adding a Catalog to your site, and creating an index field in the catalog that indexes your document sequence number. Also make a meta data property in the catalog for the index field. To get your complete list of documents, just call the catalog, and you'll get back everything indexed. (If you index more stuff than your documents, just query the Catalog for meta_type DTMLDocument, or query your index field for >0 and do your processing Take a look at the Catalog HowTo's to decide what stuff you want in meta data fields and how to get the object given its Catalog pointer if you decide you need to do that. Hmm. To do prev and next buttons you could find the right document by doing a search on your index field for a value less then the current id (prev), sort in reverse, and do size=1 on the dtml-in. For next, do >id and normal sort order and again size=1. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to implement a round through the whole web site
Hi, I want to add a round to a small Zope based web site. Therefor I would like to add a prev and a next button on each page. So it is possible to start on the first page and then move on to the next one by clicking on the next button. After some clicks on the next button I'm sure to have visited all pages. I want to realize this goal through adding an attribute named sequence (´seq´) to every DTML document that should be reached through the round. The value is a 4 digit number that defines the order in which the pages should appear. Then I've started to implement a method using DTML to generate the hyperlinks for prev/next. The strategy would be to determine the sequence number of the actual document. Afterwards all documents are searched and each id is compared to the actual one. The results should be saved in variables that could be used to set up the links after all documents have been processed. My problem is now how to store the intermediate results in variables. I'm able to define a variable (myseq), but I'm not able to change the value afterwards: < snip <-- wrong!!! Seq: / sequence is missing! < snap What is the most efficient way to traverse all DTML documents in a given branch of a Zope server? Today I use something like this: , Properties: , Are there better solutions? Do you know of a predefined way to implement the round through the web site? Thank you Christian -- Dipl.-Ing. Christian Leutloff, Aachen, Germany [EMAIL PROTECTED] http://www.oche.de/~leutloff/[EMAIL PROTECTED] Debian GNU/Linux - http://www.de.debian.org/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ANN: ZUBB (Zope Ultimate Bulletin Board) 0.5.0 Release
Hi, I was happy to see ZUBB. It just happens that I am working on a similar product, however it is SQL based, and I have other features not available in UBB, or ZUBB. the development version is running at http://zope.heewar.com/aynaBB/. I have been a user of UBB for a while, and I find it lacking a lot of features that an SQL database can bring. If anyone is interested in helping out I will be open to making the code available for people to work on. Anyone intrested must contact me to adonis at egsx dot com Thanks Adonis On Mon, 31 Jul 2000, J. Atwood wrote: > I have uploaded the update to ZUBB. Both the changes and readme are linked > below. There are a few major presentation and feature changes but It still > does not work with Zope 2.2. I will work on that when I have a chance (if > anyone would like to help that would be great). > > http://www.zope.org/Members/BwanaZulia/ZUBB/ > > http://www.zope.org/Members/BwanaZulia/ZUBB/README > > http://www.zope.org/Members/BwanaZulia/ZUBB/CHANGES > > As always the sample / test / development board is > > http://www.bwanazulia.com/kenya/discussions/test/ > > > I have about 6 of these boards in production environments and things seem to > be pretty stable as I work to squash bugs. My major concern for now is to > see how many posts it can handle before I have to move to something like the > SQL based version (which is still in the basic planning stages and will be a > whole new game). > > Suggestions, comments are welcome. > > J > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Sub Class Question
On Fri, 25 Aug 2000, Daniel Rusch wrote: > def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): > print 'Sub Class __call__' > DTMLMethod.__call__(self, client, REQUEST, RESPONSE, kw) [...] > when I view the BasicMethod in Zope, I get: > Error Type: TypeError > Error Value: too many arguments; expected 4, got 5 > > I believe that I need the self arg, if I remove it I get an unbound > python method error. > > Any thoughts??? DTMLMethod's __call__ only takes three arguments: client, REQUEST, and RESPONSE. **kw turns any additional keyword arguments (x=y) into a dictionary kw. To pass the ones your __call__ receives on to DTMLMethod's __call__, you have to turn them back into a keyword list somehow. A quick check of the python language reference doesn't reveal any special syntactic sugar for doing this. However, in the definition of __call__ in DTMLMethod I found this: r = apply(HTML.__call__, (self, client, REQUEST), kw) Reading about apply in the python docs, it's obviously designed to do just the job you need . --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Sub Class Question
I've created a BasicMethod which is derived from the DTMLMethod. everything works great until I try to have the sub class's (BasicMethod) __call__ method call the super class's (DTMLMethod) __call__ method. class BasicMethod(DTMLMethod): """BasicMethod objects are DocumentTemplate.HTML objects that act as methods whose 'self' is the BasicMethod itself.""" meta_type='Basic Method' def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): print 'Sub Class __call__' DTMLMethod.__call__(self, client, REQUEST, RESPONSE, kw) Globals.default__class_init__(BasicMethod) when I view the BasicMethod in Zope, I get: Error Type: TypeError Error Value: too many arguments; expected 4, got 5 I believe that I need the self arg, if I remove it I get an unbound python method error. Any thoughts??? DR ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZCatalog - OR'ing on different colums (indices)
On Fri, 25 Aug 2000, Aleksander Salwa wrote: > Is there any better method of OR'ing on differend indices in quering > ZCatalog, then the method described in 'Advanced ZCatalog Searching' Ah, my solution obviously only works if all your fields are text indexes... --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZCatalog - OR'ing on different colums (indices)
On Fri, 25 Aug 2000, Aleksander Salwa wrote: > Is there any better method of OR'ing on differend indices in quering > ZCatalog, then the method described in 'Advanced ZCatalog Searching' > How-To: One way that works well but only works if you always do the same type of search (which it sounds like is true in your case) is to create a method for all of the objects that returns the concatenation of all of the data fields of intrest, and index that in the Catalog. You then search on the field, and return the relevant documents. Since the Catalog only stores word indexes and document indexes and not the text itself, this is not as inefficient as it sounds. It's also a little more execution-time efficient (which is good for a web ap) since you are effectively pre-computing the between-fields OR portion of the search. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Generic Workflow Products?
Kapil Thangavelu <[EMAIL PROTECTED]> wrote: The PTK has been undergoing radical changes as of late. Its worth taking another look at as the current design is much more supportive of alternative workflow designs. Disclamer: This is my gleaming -- I could be off. I have done a keyword search on the Zope-PTK list for workflow to understand the recent discussion on workflow design within PTK. It seems to me that workflow is tied to strongly with documents in the design plan. In the model of workflow being discussed there, documents march through workflow steps. What if a workflow step is a computation and requires multiple data sources to be done? Instead, a workflow step needs to have an explicit representation with data items (documents) associated with it having some kind of version info associated with them. This need comes from the use cases that I deal with in setting up workflow for science and engineering computation. For a good review of workflow requirements see: http://www.ics.uci.edu/pub/endeavors/docs/AdvancedWorkflow.pdf It would be nice if the workflow system understood how to act in a distributed way, like what SWAP, (an XML based protocol -- think webdav for workflow -- for distributing workflow) is trying to do: http://www.ics.uci.edu/~ietfswap/swap-prot.txt and the later work, Wf-XML by WFMC. This in turn is based on early WFMC's efforts. See the workflow & internet white paper and reference model at: http://www.aiim.org/wfmc/finalwp.pdf http://www.aiim.org/wfmc/standards/docs/tc003v11.pdf There are models (some UML) contained within that would be useful to use as guides for patterns for workflow I believe. Yours in workflow, Albert Boulanger [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FW: Simple(?) Syntax Question (dtml-in)
Actually, there are some extraneous "" in the prior post. Here's a corrected version: I also should have mentioned that this approach allows use of the &dtml-x; "entity syntax", within tags.. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Simple(?) Syntax Question (dtml-in)
Tim asked: >I want to only provide the first item of each list in this >SELECT: You can use Python "slice" syntax, where the first item of a sequence (index position 0), is indicated like: listname[0] try: ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ANNOUNCE: Zope 2.2.1 released
Sadly, 2.2.1 seems to break all my ZClass objects. The Products themselves look fine, but any object made with them comes up as broken. The Class ID (in the HTML source) looked like it had a * in front of it. I retrograded to 2.2.0 and the problems went away. -- andy dustman | programmer/analyst | comstar.net, inc. telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d "Therefore, sweet knights, if you may doubt your strength or courage, come no further, for death awaits you all, with nasty, big, pointy teeth!" ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] SV: [Zope] Oracle ZODB + Thanks
I am also interested in Oracle ZODB I also would like to take the opportunity to thank eveybody that helped clear the Zope & DB performace questions I had the other week. Thank you all, it was most helpfull. Sincerely, /dario - Original Message - From: Satheesh Babu <[EMAIL PROTECTED]> Sent: Friday, August 25, 2000 7:36 PM Subject: [Zope] Oracle ZODB (Paul's talk in Paris) > Hi folks, > > I read the mail about EuroZope conference. Notes on > Paul's speech says "they have an Oracle ZODB backend. > They have deployed it. Pending documentation..." > > Way to go DC! > > WHERE IS IT? > > I searched in CVS, couldn't find it at all... If anyone > can point me towards this, it'll be greatly appreciated? > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] copy / paste support
Andy McKay wrote: > > I know some people have helped me on this thread before but Ive had chance > to look at this again and Im still stumped on this. > > Newly created 2.2 objects still have a problem. Using custom class in Zope > 2.2.0. Try with 2.2.1: I had a copy/paste problem with 2.2.0 too. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZCatalog - OR'ing on different columns (indices)
Aleksander Salwa wrote: > Is there any better method of OR'ing on differend indices in quering > ZCatalog, then the method described in 'Advanced ZCatalog Searching' > > It seems to me to be common case, when we show to user simple search form > with only one input (that is where 'userInput' came from) and 'Go!' > button. User don't want to know, that we have our data splited in many > properties. But on Zope side it's very good to have it structured in that > way - so how to reconcile these things ? I use more than one ZCatalog at a time. One called SiteSearch stores full-text-search information on all the objects in a site. Then, I have other ZCatalogs for domain-specific searches. I use ZPatterns to do this. My objects are derived from DataSkins. I use CatalogTriggers to index my objects in the appropriate catalogs. CatalogTrigger is from Itamar Shtull-Trauring's ZPAddons package. (There will be a new version of this, renamed DataSkin addons released this weekend.) You could also modify CatalogAwareness.py to make an object aware of several catalogs at once. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Simple(?) Syntax Question (dtml-in)
I want to use the same DTML method for different operations. It gathers info from properties of DTML Documents and returns a list. The list is a list of lists. Each item in the list valid_prj contains a list of two strings, ie. valid_prj = [['abcd','1234'],['efgh','5678']] I want to only provide the first item of each list in this SELECT: ... ... But darn if I can get the right combination for the correct syntax to get only that first item of valid_prj. Thanks, -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search on ZCatalog or ZSQL in MySQL
Nestor A. Diaz L. writes: > I have to make a system to store news, so i have to migrate a old system > using perl cgi's and perform a search on text files to use Zope as the > search engine however i don't know if i have to use a SQL database like > MySQL or use the ZCatalog, i need full text search, and ZCatalog fits on > the true decision however the current database news is about 350M and i > would like to extend it to store images and file, so is possible that at > the final year if everyting comes ok it outperforms the 1GB data If you have a database or search engine that handles full text, I would go for it. However, most relational databases have difficulties with full text. I doubt, that MySQL can handle it well. The ZCatalog as it is now, is nice for small to medium size content. I, personally, would not use it for content bigger than 50 to 100 MB. Due to some weeknesses in the BTree implementation (which is used by ZCatalog to maintain its indexes) a considerable part of the index structure is rewritten if the index changes. This may lead to a fast growing ZODB with the need for frequent "pack"'s. Before you decide for ZODB, you should make some tests: something like this: * index about 10 MB of content * change content * search with the catalog * index another 10 MB of content (you now have 20 MB content) * change content * search with the catalog For each step: Look how the size of the ZODB changes: before and after packing Look how the main memory requirements changes (especially during indexing) Look how the timings changes (for all relevant operations: indexing, packing, searching) Try to extrapolate your results. You may need to add more 10 MB content chunks to recognize a tendancy. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Oracle ZODB (Paul's talk in Paris)
Hi folks, I read the mail about EuroZope conference. Notes on Paul's speech says "they have an Oracle ZODB backend. They have deployed it. Pending documentation..." Way to go DC! WHERE IS IT? I searched in CVS, couldn't find it at all... If anyone can point me towards this, it'll be greatly appreciated? Many thanks in advance vsb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] brief downtime
Zopatistas, We're having a brief downtime whilst we work out some issues that have been preventing zope.org from functioning normally. Thanks for your patience, -- ethan mindlace fremen Zopatista Community Liason Abnegate I! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] It Works!!!! I think I'm close, Product Creation and other threads
Great news, I did it...! The trick seems to be adding the legacy line to the BasicDocument __init__.py file (see below). This allowed the following line to work in the folderish (SimpleSite) product's manage_addSimpleSite function to quit barfing: ob.manage_addBasicDocument(id='index_html', title='') BTW, Remember I said that I my plan of attach, while I was praying for an epiphany, was to figure out how a Folder could create sub products. Well, I figured this out via an epiphany, I accidentally cd'd to OFSP instead of OFS and I looked at the __init__.py file, it was most illuminating. Ok it wasn't exactly an epiphany, but I'll still chalk it up to divine intervention DR This is the __init__.py file for the folderish product which contains the other product I created. __doc__="""SimpleSite product initialization""" __version__='$Revision: 0.1 $'[11:-2] try: import os, SimpleSite from Globals import ImageFile def initialize(context): context.registerClass( SimpleSite.SimpleSite, constructors=(SimpleSite.manage_addSimpleSiteForm, SimpleSite.manage_addSimpleSite), #icon='simpleSite.gif', legacy=(SimpleSite.manage_addSimpleSite,), ) context.registerBaseClass(SimpleSite.SimpleSite, 'Simple Site') except: print "She's sucking mud in SimpleSite land capt'n:" import traceback traceback.print_exc() This is the __init__.py file for the other product: __doc__="""BasicDocument product initialization""" __version__='$Revision: 0.1 $'[11:-2] try: import os, BasicDocument from Globals import ImageFile def initialize(context): context.registerClass( BasicDocument.BasicDocument, constructors=(BasicDocument.manage_addBasicDocumentForm, BasicDocument.manage_addBasicDocument), #icon='basicDoc.gif', legacy=(BasicDocument.manage_addBasicDocument,), ) context.registerBaseClass(BasicDocument.BasicDocument, 'Basic Document') except: print "She's sucking mud in BasicDocument land capt'n:" import traceback traceback.print_exc() Chris Beaumont wrote: > > Daniel, > > Would you let me know if you get a good answer to your question.. I'm > trying to do something quite similar.. > > Thank you. > > Chris > > Daniel Rusch wrote: > > > > Hello, > > > > (See bottom of this message for all the iterations I have tried) > > > > I've created a product called BasicDocument. I've installed it and it > > works great. > > > > I've also created a folderish product (called SimpleSite). When a user > > selects > > the SimpleSite product from the available objects list, thus creating an > > instance of that product, > > they have an option to create sub folders which contain objects like > > dtml documents, dtml > > methods, and my BasicDocument product (very similar to what happens when > > you instantiate a folder object, you > > can have a dtml method created in the new folder). > > > > I am able to have the manage_addSimpleSite function create > > DTMLDocument, DTMLMethod and Folder objects but I am unable to > > have the function create BasicDocuments (which live in the Products > > directory) additionally, I am unable to it create any Products from > > the Products directory, such as Local File System? > > > > The code below works great, I get a dtml document, two folders each > > with a dtml method in them > > > > > > HOW CAN I CREATE A BascicDocument, LOCAL FILE SYSTEM OR ANY OTHER > > OBJECT FROM THE > > PRODUCTS DIRECTORY IN THIS MANAGE_ADD FUNCTION??? > > > > Thanks, > > > > Dan > > > > def manage_addSimpleSite(self, id, title='', > > createNewFolder=0, > > createEditFolder=0, > > REQUEST=None): > > """Add a new SimpleSite object with id *id*. > > > > If the 'createNewFolder' and 'createEditFolder' parameters are set > > to any true > > value, an 'New sub Folder' and an 'edit sub Folder' objects are > > created respectively > > in the new SimpleSite. > > """ > > ob=SimpleSite() > > ob.id=id > > ob.title=title > > self._setObject(id, ob) > > try: user=REQUEST['AUTHENTICATED_USER'] > > except: user=None > > #ob.manage_addBasicDocument(id='index_html', title='')<-- This line > > generates: AttributeError: manage_addBasicDocument > > ob.manage_addDTMLDocument(id='index_html', title='') > > if createNewFolder: > > if (user is not None) and not ( > > user.has_permission('Add User SimpleSites', self)): > > raise 'Unauthorized', ( > >'You are not authorized to add User SimpleSites.' > >) > > ob.manage_addFolder(id='New'+id, title='', createPublic=1) > > if createEditFolder: > >
[Zope] simple question
Hi there, just a short question about the tree-tag: sould a tree based navigation placed in a seperate frame? I would like to create my sites with tables, so the tree navigation is placed in a table field. I don't want to use frames. The whole page should be in one table. But this seems to give some strange effects. please see: http://marcus.localguru.de:8080/b3/ Or is this normal behavior of a Zope tree? Thank you Marcus __ (0> Marcus Schopen //\ Bielefeld, Germany V_/_ __ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ODBC Bridge / SQL Server stuff
Hello, Easysoft (www.easysoft.com) supply a simple, efficient SQL bridge which works well with unixODBC (.org) and iodbc (.org) driver managers. We use it on one of our PHP sites to link to an SQL Server db from Linux. It works fine but its a close product. So given the easy of use of XML-RPC or SOAP from Python, it may be sufficient to create your own bridge which calls a remote DB connection made with ASP or Zope on NT. I've set this up with a Python method calling a remote DB connection in PHP using XML-RPC (just pass the query over and get the records back) and it works perfectly. Hope this helps. Phill ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FSSession problems...
On Fri, 25 Aug 2000, Curtis Maloney wrote: > Today, however, I find out that some mistakes have been happening. People > are finding themselves logged in when they haven't yet, and others finding > they're logged in as someone else. This is, obivously, a problem. Warning! Shot in the dark ahead. :-) Is it possible that your visitors who are experiencing this problem are sitting behind a proxy that is improperly caching their cookies. I've seen something like this where you could log in to zope.org, go to a different machine and find that you were logged in there too. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZCatalog - OR'ing on different colums (indices)
Is there any better method of OR'ing on differend indices in quering ZCatalog, then the method described in 'Advanced ZCatalog Searching' How-To: ... This seems to me too expensive - here three searches are made. Is there - or should be added - any support for it in ZCatalog ? Another fault of this method are superfluous repetitions in results - if some catalogued object matches search pattern on more then one index. It seems to me to be common case, when we show to user simple search form with only one input (that is where 'userInput' came from) and 'Go!' button. User don't want to know, that we have our data splited in many properties. But on Zope side it's very good to have it structured in that way - so how to reconcile these things ? [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ANNOUNCE: Zope 2.2.1 released
Hi all, Zope 2.2.1 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.2.1/ This release contains many bug fixes, including the fixes covered by all Hotfixes to date. Special thanks go to Dieter Maurer, Adam Karpierz, Jeff Sasmor and others who have been prolific patch submitters over the last few weeks. For more information on what is new in this release, see the CHANGES.txt and HISTORY.txt files for the release: http://www.zope.org/Products/Zope/2.2.1/CHANGES.txt http://www.zope.org/Products/Zope/2.2.1/HISTORY.txt Note that we have also posted "diff" updates as .tgz files that will let you easily upgrade an existing 2.2.x site. These updates are available for those currently using the 2.2.x source release or the 2.2.x binary releases for either solaris or linux. To apply a differential update to your site: - download the appropriate .tgz file from zope.org - shutdown your Zope process - copy the .tgz to your Zope directory and extract it - run w_pcgi or wo_pcgi *if you are not using a binary release* - restart your process Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Small Tip
THANK YOU!!! - Jason > Maik Roeder wrote: > > It always got on my nerves that I needed to change the column > > size of the DTML Method and DTML Document Edit Forms > > manually by pressing "Wider" and "Narrower". > > > > Instead of patching the Zope source code, I found the following > > a good approach: > > > > Define a property in your root folder: > > > > id: dtpref_cols > > type: int > > value: 80 > > > > The magic of acquisition does all the rest ;-) > > Or how about this (from Evan Simpson): > > In OFS/documentEdit.dtml change the line that reads: > > > to: > > > This should make the edit box expand automatically to the full width in > browsers that support this property, including IE 5.x and Mozilla but > not Netscape 4.x. > > Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Microsoft SQL Server Access under Linux?
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), but our "organizational >standard" is MS SQL Server 6.5. It might or might not be helpful for you. I also have a bunch of databases only accessible via ODBC, so we use Merants Sequelink-Socket product (since we bought it). So far I could get mxODBC to work with it flawlessy. Now I'm up to integrate it into the ZmxODBC DA published some days ago at zope.org. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Small Tip
Maik Roeder wrote: > It always got on my nerves that I needed to change the column > size of the DTML Method and DTML Document Edit Forms > manually by pressing "Wider" and "Narrower". > > Instead of patching the Zope source code, I found the following > a good approach: > > Define a property in your root folder: > > id: dtpref_cols > type: int > value: 80 > > The magic of acquisition does all the rest ;-) Or how about this (from Evan Simpson): In OFS/documentEdit.dtml change the line that reads: http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How do I create a folder full of "virtual" DTML objectsfrom records in a database records in a database
R. David Murray wrote: > http://www.yoursite.com/yourmethod/recordid This is really easy to do. Now, what do I have to do if I want to use URLs like this: http://www.yoursite.com/events/recordid/index.html http://www.yoursite.com/events/recordid/pics.html http://www.yoursite.com/events/recordid/[...]/edit The real data is stored in a RDBMS, only the user interface templates are in the ZODB. Currently I use the obvious: http://www.yoursite.com/events_display_info/recordid http://www.yoursite.com/events_display_pics/recordid etc. Is it possible to use methods which get the recordid and a possible /edit extension from the URL and create the requested objects on the fly? There was a discussion about this topic a few months ago but I don't remember the exact circumstances so it's difficult to search for in the mailing list archive. Cheers, Nils -- [EMAIL PROTECTED] | [EMAIL PROTECTED] (preferred) [EMAIL PROTECTED] | [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Where do I find out about cookies?
On Fri, 25 Aug 2000, Jean Jordaan wrote: > > > REQUEST.form['sort_key'])"> > > > REQUEST.cookies['sort_key'])"> > > > > > [...] > Since anything in any of the REQUEST dictionaries is on the name space stack, you should be able to reduce the above IF block to: If the 'cookie' dictionary is "closer" than the 'form' dictionary in the namespace stack you'd need to stick one more REQUEST.set in the inner if. Obviously, I haven't tested this :) --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FSSession problems...
On Fri, 25 Aug 2000, Curtis Maloney wrote: > > But if User A logs in with NS, this doesn't happen. > > I am really confused as to what's going on Me too! > > > My only thoughts are that FSSession is perhaps getting confused by Apache, > but surely it would re-issue the same Session ID the request came in with? SessionUID is a combination of a time stamp in seconds and a random integer between 1 and some billions. I just tested the behaviour of the random generator under multiple threads and it seems to be ok. So I suppose there is close to zero chance of two requests obtaining the same SessionUID. During load time FSSession gets SessionUID from a cookie if it exists. The only way I can see what you describe happening is in a situation where two or more threads share the same volatile attributes, which as far as I know is not the case. ZODB creates separate copies of each object in each individual thread and nothing is really shared apart from global variables and class (not instance) attributes. I will do some tests ... Puzzled Pavlos ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZClass and Custom Personal Zclass included
Hi, I created a ZClass named 'Z1' and another one classed 'Z2', I defined a Property Sheet 'P1' into Z2, how is it possible to declared a property inside P1 of the type Z1 ? Thanks ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [ez] ZMenu 0.0.2 product
Hi Hugo ! Hugo Ramos wrote: > ZMenu is a complete navigational system that uses a tree like display. > It allows you to dinamicly add a navigational link menus system to your site. I have added part of your Product into the ZDP-Tools by adding a DTML method to my DocumentFolder ZClass, and it works out of the box;-). Have a look at: http://zdp.zope.org/projects/eurozope/ZMenus_Tree_Navigation or from the top: http://zdp.zope.org/ZMenus_Tree_Navigation This shows the hierarchy of the ZDP site. It still needs to be integrated, but it already is some kind of a SiteMap. It is also some kind of Pike lookalike, that I may use for my Weblog thingie I have been thinking about.: > This ZClass based product is still in a development stage and I'dd like to > have some feedback about it... so email me about any problems or sugestions. Your product assumes that the users manually add links to other content on the site, but the funny thing is that this can be automatized. Why add links when the content is already there ? > You can download it here (there is also a pic): > http://www.zope.org/Members/hramos/products/ZMenu This is the only method I have adopted from your Product: "> () "> () Best regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FSSession problems...
On Fri, 25 Aug 2000, Curtis Maloney wrote: > Greetings, > > I'm using FSSession to store login details about visitors to our site. It is > important that users only be able to see their own data (of course). > > Today, however, I find out that some mistakes have been happening. People > are finding themselves logged in when they haven't yet, and others finding > they're logged in as someone else. This is, obivously, a problem. > > I cannot see how this could be happening, since the Session ID is stored in a > cookie, which should be unique to the client. > This is very weird indeed. Nobody has ever reported a similar problem. Can you send me the DTML method that calls the FSSession? Pavlos ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Small Tip
Hi ! It always got on my nerves that I needed to change the column size of the DTML Method and DTML Document Edit Forms manually by pressing "Wider" and "Narrower". Instead of patching the Zope source code, I found the following a good approach: Define a property in your root folder: id: dtpref_cols type: int value: 80 The magic of acquisition does all the rest ;-) Greetings, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ANN: External Methods and Products ebook
hello all, Beehive is pleased to announce its 3rd ebook "External Methods and Products". If your thinking about developing Zope products or writing External Methods this 67 page ebook can save you several days of trial and error. Find out more about this and other beehive Zope ebooks via our website: http://www.beehive.de regards, mark -- mark pratt (managing director) [EMAIL PROTECTED] beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Imagemap in an image object
Yes, that did the job. Thank you. Radim On Fri, Aug 25, 2000 at 11:06:43AM +0100, Peter Bengtsson wrote: > Have you tried this?: > > If you have and this returns and error, give us the error. > > > > > > Greetings, > > > > is there an easy way to add imagemapping to an image object or do I > > have to create a new class for such a purpous? > > > > Thank you > > > > Radim > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Imagemap in an image object
Have you tried this?: If you have and this returns and error, give us the error. > Greetings, > > is there an easy way to add imagemapping to an image object or do I > have to create a new class for such a purpous? > > Thank you > > Radim > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Imagemap in an image object
At 11:36 25-8-00 +0200, Radim Gelner wrote: >Greetings, > >is there an easy way to add imagemapping to an image object or do I >have to create a new class for such a purpous? I don't know exactly what you mean by imagemapping, but if you mean the html tag then you can use something like this in your dtml-method: Diny DIVA, Faculty of Veterinary Medicine Utrecht University, The Netherlands http://www.vet.uu.nl ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Where do I find out about cookies?
Hi Loren, J. Atwood, Maik Thanks for all the info! I'll digest & give feedback where I can. In the meantime, this is what I've fixed up for myself (with a LOT of help from Roche Compaan) .. In DTML Document 'index_html':: In DTML Method 'docsSorted':: Title Origin Series [Edit] [... and so on for the other possibilities ...] The rationale is: 'docsSorted' is called as method by 'index_html'. - Upon the first iteration, there is no cookie and no form variable. A cookie and a form variable is set to 'title' as default. The form variable governs. - Upon subsequent iterations, if there is a form variable, then 'index_html' was called from 'docsSorted' and the sort-order has *just* changed. The cookie is changed (which will not be noticed during this iteration since it first has to be received again) and the form variable governs. - If there is a only a cookie and no form variable, it governs. Now I want to extend it so that choosing a sort-order for the *second* time reverses the order -- does this really entail repeating the entire '' section for '"order=='reverse'"'? I think I'm probably better off using the catalog for this, rather than dtml-in batching .. -- Jean Jordaan --technical writer-- Mosaic Software--Zope 2.1.6 on WinNT and W2K ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Imagemap in an image object
Greetings, is there an easy way to add imagemapping to an image object or do I have to create a new class for such a purpous? Thank you Radim ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Not like ASP complaint - any good answers
Sean Just ignore them. I used to be an ASP developer myself not long code ago. What do you mean "intermingle"? If you want to loop though a list or db-table row, you will have to "intermingle" your good old and tags. There is no way of getting around that in ASP as far as I know, unless something amazing has happens since I left the community. Yes, markup tends to be mixed with external/python methods. I guess that is out of conveniece only. You could: ...if you really want to make the externalmethod() generic... What ever you like! Take control over your code. Don't let the code take controll over your options. Zope coding feels like "do it either way". ASP coding feels like "do the one and only way". Maybe "your" ASP developers, have seen external/python methods written by people who use the method for themselfs (not caring about reusing the method again), but has decided to let other developers use it. Maybe? Take care, be strong, Peter > All, > > I have had a number of e-mails from developers > using Microsoft ASP in recent days. The paraphrased consensus > in the e-mails is that the external > methods/python methods approach to mixing markup > with code in Zope is more clunky than in ASP where > you can intermingle the two at will. > > Has anyone written anything on this topic I could > point them to? > > regards, > Sean > > > > http://www.pyxie.org - an Open Source XML Processing library for Python > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZClass Property : DTML Document ?
Vincent wrote: > > Dow do I create a ZClass Property of the type : DTML Document ? > If you want a DTML Document accessible in all ZClasses - just include it in the ZClass. If you want you may make it available as a View by mapping it under the 'Views' tab (in the ZClass definition area) hth Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: [Squishdot] Yes Please!
Hi Chris > I'm very willing to include tidied versions of the demo sites > in the next version of Squishdot :-) Very good news :) I've already made a couple for own use, but will try and make one to be general and comment it, & send when I'm done. Anyone else who'd like to be in on this, please let me know. -- Jean Jordaan --technical writer-- Mosaic Software--Zope 2.1.6 on WinNT and W2K ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZClass Property : DTML Document ?
Dow do I create a ZClass Property of the type : DTML Document ? Thanks Vincent ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Run a java applet in Zope
on Thursday, August 24, 2000 Michel Houben wrote : MH> I have a dtml-document with a Java-applet and I can't get it runnning in MH> the Zope envirronement. I hope someone knows it and can solve my problem. I run loads of applets in a DTML-environment. No problems whatsoever . :-) What seems to be the problem ? Does it work in a pure HTML-page ? Check the differences between the working HTML and the output of your DTML.. -- Geir Bækholt web-developer/designer [EMAIL PROTECTED] http://www.funcom.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Sequence-key-note
I don't know if this is usefull to someone but I've found that using a token property you can sort the elements with sequence-key(the first char is the key). For example -> token property "citynames": London Liverpool Rome New York &dtml-sequence-key;: &dtml-sequence-item; The output is: L: London L: Liverpool N:New York R: Rome ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] strange login behaviour
I finally found the reason. I was redirecting with a property as URL. When i gave the url in *plain* text it worked OK. I still don't understand why. Thanks for the responses. Le 24 Aug 00, à 15:27, Chris Withers a écrit : > Is it possible that your browser is just caching the old page the first > time round? Le 24 Aug 00, à 22:15, Dieter Maurer a écrit : > I am not sure... > ... but it might be possible that the browser sets a cookie only > after the redirect. Didier georgieff. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Not like ASP complaint - any good answers
I can't say I see too much difference between the way Zope and ASP accomplish things, Zope has External Methods and Products, ASP has COM objects which I'd say are a darn sight harder to grok. Fact is that if these developers say you can do everything in VB/Jscript in an ASP page then they are sadly mistaken. Phil - Original Message - From: "Sean McGrath" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 24, 2000 9:29 PM Subject: [Zope] Not like ASP complaint - any good answers > All, > > I have had a number of e-mails from developers > using Microsoft ASP in recent days. The paraphrased consensus > in the e-mails is that the external > methods/python methods approach to mixing markup > with code in Zope is more clunky than in ASP where > you can intermingle the two at will. > > Has anyone written anything on this topic I could > point them to? > > regards, > Sean > > > > http://www.pyxie.org - an Open Source XML Processing library for Python > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Linux and ODBC
Hello Andrew.. Thanks for the quick reply... I'm using the ODBC Divers.. Any help is very appreciated > +---[ Tony Corrente ]-- > | Hello.. > | > | I am currently using the openlink ODBC drivers to access Progress DB's > | on a HPUX System from A Linux Web Server using Apache and PHP4. It > | Works... > | The rest of my site has been moved to Zope. Everything I've read states > | that the Zope DA's for ODBC only run under the Win32... Is anyone > | working on this ?? or how do I do it from Linux ?? I don't want to > | install a N(asty)T(hing) server if I can avoid it.. > > Geez these things go in cycles... > > Are you using the UDBC drivers or the ODBC drivers? I can help with the > former :-) > > -- > Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton > The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | > ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon > PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Run a java applet in Zope
Michel Houben wrote: > > Dear, > > I have a dtml-document with a Java-applet and I can't get it runnning in > the Zope envirronement. I hope someone knows it and can solve my problem. > AFAIK, this is perfectly possible. We need more details to be able to help you. Any specific point where it goes wrong - any tracebacks or other error messages? Does it work in a plain (not dtml) HTML page? If so, what did you change with dtml to make it stop working? Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FSSession problems...
On Fri, 25 Aug 2000, Curtis Maloney wrote: > Greetings, > > I'm using FSSession to store login details about visitors to our site. It > is important that users only be able to see their own data (of course). > > Today, however, I find out that some mistakes have been happening. People > are finding themselves logged in when they haven't yet, and others finding > they're logged in as someone else. This is, obivously, a problem. > > I cannot see how this could be happening, since the Session ID is stored in > a cookie, which should be unique to the client. > > I am using: > > Zope 2.1.6 on Solaris 2.7 > FSSession 0.4.0 > Further details: Some internal testins has shown that is User A logs in with IE, and User B opens the page fresh (from another machine) they will be logged in as User A. But if User A logs in with NS, this doesn't happen. I am really confused as to what's going on My only thoughts are that FSSession is perhaps getting confused by Apache, but surely it would re-issue the same Session ID the request came in with? Curtis ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FSSession problems...
Greetings, I'm using FSSession to store login details about visitors to our site. It is important that users only be able to see their own data (of course). Today, however, I find out that some mistakes have been happening. People are finding themselves logged in when they haven't yet, and others finding they're logged in as someone else. This is, obivously, a problem. I cannot see how this could be happening, since the Session ID is stored in a cookie, which should be unique to the client. I am using: Zope 2.1.6 on Solaris 2.7 FSSession 0.4.0 Have a better one, Curtis. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )