Re: [Zope] Do Zope Haz Templates?

2000-11-15 Thread Ender
Curtis Maloney wrote: On Wed, 15 Nov 2000, Padrino wrote: I Was Serching And looking For Templates and I Was Guessing if Zope really Has It? DTML. Document Template Markup Language. DTML is Zopes templating language. Look at DTML Documents and DTML Methods. Have a better one,

Re: [Zope] creating ZClass instances from an external method

2000-11-15 Thread Maik Röder
Hi Gary ! Gary Reynolds wrote: I have a need to do some creating of objects from python code. Am I correct in thinking that to add a new object, that is one of my products, I need to do something like: folder.manage_addProduct['ProductName'](id='foo', title='bar') I have sample

[Zope] Avoiding acquisition aka testing for contained objects

2000-11-15 Thread Stefan H. Holek
If I want to know whether a certain object is contained in the current folder I do this: dtml-if "'index_html' in this().objectIds()" yes it's here dtml-else not here /dtml-if Id like to know whether this is the best/most efficient way to do it. Things like hasattr() are subject to

[Zope] ZCallable

2000-11-15 Thread Stefan H. Holek
I have this ZCallable product (from the PTK, I think). I do however not manage to derive a ZClass from ZCallable. The error is something like "Too many datafull base classes". Is ZCallable not intended to work like that (the source hints to some ExtensionClass business) or am I missing

[Zope] _delObject errors

2000-11-15 Thread seb bacon
When I try to call self._delObject('foo') from my Product, it seems to work, but I get an error logged: AttributeError: 'string' object has no attribute 'manage_beforeDelete' The offending line is in ObjectManager.py: def _delObject(self, id, dp=1): object=self._getOb(id)

Re: [Zope] Avoiding acquisition aka testing for contained objects

2000-11-15 Thread Johan Carlsson
If I want to know whether a certain object is contained in the current folder I do this: dtml-if "'index_html' in this().objectIds()" yes it's here dtml-else not here /dtml-if Id like to know whether this is the best/most efficient way to do it. Things like hasattr() are

[Zope] Installation Troubles

2000-11-15 Thread Ben Ocean
Hi; I d/l'd the latest distro. Looked inside and couldn't find any installation instructions. Went to the Web site and found some instructions here: http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO They didn't work for me. I have crazy ownership problems all over the

Re: [Zope] Installation Troubles

2000-11-15 Thread Oleg Broytmann
On Wed, 15 Nov 2000, Ben Ocean wrote: I d/l'd the latest distro. Looked inside and couldn't find any installation instructions. It seems you've problems with searching. There are a lot of information in distro - in directory doc. There are INSTALL.txt, WEBSERVER.txt, etc. Oleg.

RE: [Zope] Do Zope Haz Templates?

2000-11-15 Thread Steve Drees
DTML. Document Template Markup Language. alternatively if you want real templates that enforce separate logic and presentation take a look at hiperdom. How are DTML documents and methods not "Real Templates"? ___ Zope maillist - [EMAIL

[Zope] How reindex the Catalog programatically

2000-11-15 Thread Menard . Jean-Francois
To work around my problem with my Catalog reindexing (see previous message...), I would like to let my users manually reindex the Catalog, as the "Update Catalog" button in the "Cataloged Objects" do. When I use this button, my Catalog get fixed and work again. So I looked at the method used

Re: [Zope] Installation Troubles

2000-11-15 Thread Chris McDonough
Hi Ben (I wrote that howto). I d/l'd the latest distro. Looked inside and couldn't find any installation instructions. Went to the Web site and found some instructions here: http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO They didn't work for me. I have crazy

Re: [Zope] Installation Troubles

2000-11-15 Thread Oleg Broytmann
On Wed, 15 Nov 2000, Ben Ocean wrote: and d/l'd the latest distro, which I believe was Zope-2.2.x-to-2.2.2-src.tgz It's not a distro - it's a patch to upgarde to 2.2.2. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't

Re: [Zope] Installation Troubles

2000-11-15 Thread Ben Ocean
Forgive my stupidity, but I've looked all over and don't see a directory.doc, install.txt or webserver.txt I went to this page http://www.zope.org/Products and d/l'd the latest distro, which I believe was Zope-2.2.x-to-2.2.2-src.tgz I opened it up with WinZip and the aforementioned files are

Re: [Zope] Installation Troubles

2000-11-15 Thread Chris McDonough
You downloaded the update... you need the full source version, available at http://www.zope.org/Products/Zope/2.2.2/Zope-2.2.2-src.tgz/view - Original Message - From: "Ben Ocean" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 15, 2000 9:51 AM

[Zope] How to mix perl and dtml

2000-11-15 Thread Schut, Koos (Koos)
Hi all, Situation: I have a fairly strong background in perl. I've lots of custom perl-tools on an Informix-database unix-machine on which I have the zope web-server running now. What I want is to create some web-pages, displaying information as distilled from the database. This destillation, I

Re: [Zope] How to mix perl and dtml

2000-11-15 Thread Chris McDonough
JJ, You probably want to take a look at the Zope-Perl mail list at http://lists.zope.org/mailman/listinfo/zope-perl. Archives of the list are available at http://lists.zope.org/pipermail/zope-perl/ - Original Message - From: "Schut, Koos (Koos)" [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[Zope] DTML and SQL question...

2000-11-15 Thread zope
Hi. I want to test if there is some data in a table. If so, I want to perform some action, otherwise I wan't to print out a message. (dtml-if..dtml-else../dtml-if) My SQL statement is something like: Select count(*) from my_table where my_field = something What DTML code do I need to perform

[Zope] How do I form an XML-RPC query to a remote server?

2000-11-15 Thread Tony McDonald
Hi all, I'm experimenting with collating data from a remote database that uses XML-RPC. I can send it messages like; import xmlrpclib medweb = xmlrpclib.Server("http://bogus.server.com") medweb.getImages('scar') '?xml version="1.0" encoding="ISO-8859-1"

[Zope] restarting

2000-11-15 Thread ethan mindlace fremen
Please bear with me, this nonsense will be over soon ~ethan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] How to mix perl and dtml

2000-11-15 Thread Andy McKay
The recently released beta 3 of zope-perl is available at: ftp://ftp.activestate.com/Zope-Perl/ http://www.ActiveState.com/download/Zope-Perl/ And there is a wiki here: http://www.zope.org/Wikis/zope-perl/FrontPage -- Andy McKay, Developer. ActiveState. - Original Message

Re: [Zope] DTML and SQL question...

2000-11-15 Thread Pavel
good day, create a ZSQLMethod ... let`s call it genericSQL having your sql query in it, then do a dtml-if "genericSQL(_.None,_)" YES! There's some data! dtml-else no records found! /dtml-if in your DTML Method not tested. but should work. regards. -- pashah -Original Message-

Re: [Zope] How do I form an XML-RPC query to a remote server?

2000-11-15 Thread Michel Pelletier
Tony McDonald wrote: Hi all, I'm experimenting with collating data from a remote database that uses XML-RPC. I can send it messages like; import xmlrpclib medweb = xmlrpclib.Server("http://bogus.server.com") medweb.getImages('scar') '?xml version="1.0" encoding="ISO-8859-1"

[Zope] would like to join

2000-11-15 Thread SAFE-As Houses
hello i would like to join cos i need help on how to post images from ma ZOPE space on forum pages using this tag [img]urlgoeshere[/img] thanx _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

[Zope] How to separate markup from presentation

2000-11-15 Thread Tom Sheffler
I'm aware of HiperDom, but I'm wondering if anyone has a good suggestion for how to structure docs so that docs can be written using abstract tags whose definition is separate. What I've done is a simple variable substitution. My doc uses constructs like dtml-var MyH2Start ... content ...

Re: [Zope] Where to store my data?

2000-11-15 Thread Karl Anderson
Karl Anderson [EMAIL PROTECTED] writes: "Andy McKay" [EMAIL PROTECTED] writes: XML (page contents)-- every URL should result in an XML document, containing all the information that will be presented on that page. Written in DTML? XMLDocument. XMLDocument might or might

Re: [Zope] How to separate markup from presentation

2000-11-15 Thread Stefan H. Holek
On Wed, 15 Nov 2000, Tom Sheffler wrote: I'm aware of HiperDom, but I'm wondering if anyone has a good suggestion for how to structure docs so that docs can be written using abstract tags whose definition is separate. [snip] This is the first part of the problem. Additionally, I would

[Zope] structure text named link hassles

2000-11-15 Thread Karl Anderson
I'm having a hard time making proper named links using Structured Text (in a ZWiki). Each of these formats produce the proper link (to the remote URL), but the valid link is followed by the ? link to create the wikiname in the quotest (including the colon). I don't want to cause confusing for

[Zope] the Parsed XML project

2000-11-15 Thread Karl Anderson
The Parsed XML project is now public and ready for input. Parsed XML is the successor to XMLDocument. We have a wiki at http://www.zope.org/Wikis/DevSite/Projects/ParsedXML. [EMAIL PROTECTED] is also a good place for discussion at this time. -- Karl Anderson [EMAIL

Re: [Zope] FYI: Digital Creations secures $12M round of investment

2000-11-15 Thread Jimmie Houchin
I would also like to add my congratulations to all at Digital Creations. I think this will help DC, Python and Zope become more formidable in the web app and content management marketplaces. This provides DC with increased ability to implement what is in their heads. :) This is an exciting time

[Zope] Catalog sort-on parameter

2000-11-15 Thread Menard . Jean-Francois
I'm trying to use the 'sort-on' parameter in a Catalog search, and it doesn't work. I use Zope 2.2.2. I read in pasts messages that the 'sort-on' feature was broken, is it still ? I'm not sure if I use the right syntax so could someone post an sample code here please ? Thanks!

[Zope] using if with date values

2000-11-15 Thread Herring, William O.
I would like to insert into the this sql table the form variable birth.x. I would like to do it only if the date variable identification.birthdate is greater the that listed below. I know the current 'if' statement is incorrect and probably not even close. However, I haven't been able to find

Re: [Zope] DTML and SQL question...

2000-11-15 Thread Phil Harris
Try dtml-if "_.len(genericSQL(SQLStatement='Select count(*) from my_table where my_field = \'0\''))0" YES! There's some data! dtml-else no records found! /dtml-if or dtml-in "genericSQL(SQLStatement='Select count(*) from my_table where my_field = \'0\'')" dtml-if sequence-startYES!

[Zope] Uploading files

2000-11-15 Thread Nolan Darilek
I'm trying to write a replacement form which allows users to upload images into a folder. I'm almost there, but not quite. I'm having difficulties getting the file contents into the database. I have an input type="file" field, and I'm fairly sure that the data is being sent. When I create the

Re: [Zope] Uploading files

2000-11-15 Thread Randall Kern
make sure you set the enctype correctly in your form tag: form action="foo" method="post" enctype="multipart/form-data" -Randy - Original Message - From: "Nolan Darilek" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 15, 2000 5:07 PM Subject: [Zope] Uploading files

Re: [Zope] Uploading files

2000-11-15 Thread matt
use : file=REQUEST['file'].data On Thu, 16 Nov 2000, Nolan Darilek wrote: I'm trying to write a replacement form which allows users to upload images into a folder. I'm almost there, but not quite. I'm having difficulties getting the file contents into the database. I have an input

[Zope] ZClasses on top of my Python classes?

2000-11-15 Thread Randall Kern
I've seen several doc tidbits suggesting one create ZClasses derived from their Python classes, sticking all the biz logic in the python classes, and the presentation in the ZClasses... Could someone provide some insight into why this is better than simply writing separate python classes

[Zope] Newbie Install: Solaris/Zeus

2000-11-15 Thread Lee Hunter
I'm trying to install Zope 2.2.2 on a shared web host that uses Zeus running on Solaris. When I try to run "python w_pcgi.py" I get the following error: Zope requires Python thread support! The version of Python on the machine is 1.5.2 Any thoughts on what I'm doing wrong?

[Zope] modifying objectValues from an external method?

2000-11-15 Thread Bowyer, Alex
You may remember I have posted a couple of times about problems I have had with manage_delObjects to delete a news article object from a news page which contains several child news article objects. I thought I would try and avoid the problem and make a Python method to remove the item. This

[Zope] New release of HiperDom and ZUnit

2000-11-15 Thread Lalo Martins
I made releases of both HiperDom and ZUnit yesterday. (Yes, yesterday, Tuesday. I just forgot to make the announcement. Duh.) The big news is that HiperDom is fully ZUnit-tested (which gives you an idea of its API if you check the source of HiperDomTests.py) and some buglets were fixed in the

[Zope] Help needed with LoginManager and REMOTE_USER authentication

2000-11-15 Thread Jay, Dylan
I want to use REMOTE_USER authentication so that I can authenticate people using IIS NT authentication intergration. IIS is set up and passing the correct REMOTE_USER to Zope. I set up LoginManager with a GenericUserSource. Now I figure I want anyuser that can pass the IIS security to be a user,

Re: [Zope] modifying objectValues from an external method?

2000-11-15 Thread Randall Kern
dtml-call expr="manage_delObjects(ids=objectIds())" Place this in a DTML method, and it will remove all the sub-objects in the folder you call it on. Example: Create a folder "Test". In that folder, create a DTML method called remove_all, and put the DTML from above in it. Then create

RE: [Zope] ZClasses on top of my Python classes?

2000-11-15 Thread Max Møller Rasmussen
From: Randall Kern [mailto:[EMAIL PROTECTED]] I've seen several doc tidbits suggesting one create ZClasses derived from their Python classes, sticking all the biz logic in the python classes, and the presentation in the ZClasses... Could someone provide some insight into why this is better

Re: [Zope-dev] ZClasses - Two glaring omissions

2000-11-15 Thread Chris Withers
There was lots of talk a while back about redoing ZClasses. I wonder what ever happened to that? cheers, Chris Andy McKay wrote: Of course all those points can be done in python, im assuming you are talking about ZClasses. -- Andy McKay, Developer. ActiveState. - Original

Re: [Zope-dev] large PersistentMapping

2000-11-15 Thread Chris Withers
Talk to Tres Seaver about the observer interface and the event channel stuff. He has lots of ideas about this and I think it does pretty much what you want... cheers, Chris Robin Becker wrote: I'm trying to build a Reverse Cross Referencing Product. The idea is to enable documents to know

Re: [Zope-dev] TTW Product distribution

2000-11-15 Thread Chris Withers
jimbo wrote: Hi, If I try to distribute it and leave it set for "Allow redistribution". Its not showing up in the Zope products directory tree after I untar the 3 files into the file system products directory and restarting Zope. I have a Dataskin based ZClass, 2 Specialist, the

Re: [Zope-dev] License issues

2000-11-15 Thread Paul Everitt
Some quick points on this. First, feel free to talk on this list about ways that Zope developers can license their stuff. It's a constructive discussion, and since I'm not a Zope developer, I can ignore it. :^) Second, regarding the licensing of Zope itself, ChrisP is right that I'm the guy

Re: [Zope-dev] __replaceable__ or whatever it is ;-)

2000-11-15 Thread Chris Withers
Shane Hathaway wrote: FYI I actually added the docs in two places, but they were promptly removed from the place they did not belong: the help system. Unfortunately the InterfacesWiki is currently the only good place. Guess we'll have to wait for 2.3 :-) Could whoever did the coding

[Zope-dev] Automatic conversion to pdf format

2000-11-15 Thread stefano . ciccarelli
Newbie Alert I am currently setting up a support website using Knowledge Kit. I would like to integrate it with ZpdfDocument, so that some documents could be automatically converted to pdf, without the need to cut and paste from Knowledge Kit to ZpdfDocument. Since I am a Zope newbie I did not

[Zope-dev] Local Factories in Products

2000-11-15 Thread Johan Carlsson
Zopers, In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. (I this correct by the way?) What I need to do is someway restrict in what Containers (myContainer subclass

[Zope-dev] is _getCopy slow?

2000-11-15 Thread seb bacon
My product is performing incredibly badly. I profiled it and got the following results: ncalls tottime percall cumtime percall filename:lineno(function) ...snip... 4/10.0100.0036.3606.360 WebFactory.py:92(change_theme) 37/60.4400.0126.330

Re: [Zope-dev] __replaceable__ or whatever it is ;-)

2000-11-15 Thread Phillip J. Eby
At 11:14 AM 11/15/00 +, Chris Withers wrote: Thanks... I guess the behavior that was associated with ObjectManager.NOT_REPLACEABLE is obtained by just not havign a __replaceable__ attribute? ..or does ObjectManager.NOT_REPLACEABLE exist, just in an undocumented fashion ;-) Also, when is

[Zope-dev] ZopeBug: No Last-Modified for misc_/.../*.gif objects!!!!

2000-11-15 Thread The Doctor What
I was looking at the cacheability of my website in zope, and saw that the misc_/OFSP/*.gif images (as in the icon objects) are NOT cacheable because they don't return *any* date info. If they *at least* returned a Last Modified, they'd be cacheable. I looked at the Zope Source and it looks

[Zope-dev] TTW Product not showing up.

2000-11-15 Thread jimbo
In my ZClass I selected CatalogAware and dataskin as base. I'm not sure what else I'm suppose to do. SystemError: Failed to import class _ZClass_for_CatalogAware from module Product s.ZCatalog -Jimbo ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Simulate DTML-Method Proxy-Roles for python-product-methods ?

2000-11-15 Thread Martin Grönemeyer
Hello. I've started to implement a small Product in Python. One method should be able to access an object in a folder which isn't accessible by anonymous but only by a special role. Is it possible to give a proxy-role to the python-method to access this object ? cheers Martin i.A. Martin

Re: [Zope-dev] License issues

2000-11-15 Thread Jimmie Houchin
I personally do not have a problem with the Zope license. However, I do use a lot of GPLed software and appreciate it. I also am appreciative of the ability to use Zope and to take advantage of the wonderful work that DC has produced. When the original debate occurred I was in support of DC

Re: [Zope-dev] License issues

2000-11-15 Thread Ty Sarna
In article [EMAIL PROTECTED], Jimmie Houchin [EMAIL PROTECTED] wrote: The GPL would protect DC from predatory competitors. It would also allow for Zope's adoption in certain environments. I also believe some people And prevent it in others. would relicense their products to the GPL if it