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] modifying objectValues from an external method?

2000-11-15 Thread Randall Kern
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 another Folder inside Test called "Lossy". Create some ra

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

2000-11-15 Thread Edward Muller
On Wed, 15 Nov 2000, 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') That looks ri

[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, i

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

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

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

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 field, a

Re: [Zope] Uploading files

2000-11-15 Thread Randall Kern
make sure you set the enctype correctly in your form tag: -Randy - Original Message - From: "Nolan Darilek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 15, 2000 5:07 PM Subject: [Zope] Uploading files > I'm trying to write a replacement form which allows use

[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 field, and I'm fairly sure that the data is being sent. When I create the Image however, I use

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

2000-11-15 Thread Phil Harris
Try 0"> YES! There's some data! no records found! or YES! There's some data! no records found! hth - Original Message - From: "zope" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 15, 2000 4:22 PM Subject: [Zope] DTML and SQL question... | Hi.

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

[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! Jean-François

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 t

[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 . [EMAIL PROTECTED] is also a good place for discussion at this time. -- Karl Anderson [EMAIL

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

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

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. > > XMLDocumen

[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 ... content ... and the definitio

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

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') > ' ?>\015\012\011\015\012\011\01

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 YES! There's some data! no records found! in your DTML Method not tested. but should work. regards. -- pashah -Original Message- From: zope <[EMAIL PROTECTED]> To: [EMAIL PROTEC

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

[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 - http://lists.zope.org/mailman/listinfo/zop

[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') '\015\012\011\015\012\011\011Medwebb Images \0 (lots of stuff snipped)

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

2000-11-15 Thread Jim Washington
Hi, Marc The SQL engine usually returns something that looks like a list of lists. So, you might try using (untested, but I have done similar things) "genericSQL(SQLStatement='Select count(*) from my_table where my_field = \'0\'')[0][0] == 0" The [0][0] identifies the first cell in the first r

[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. () My SQL statement is something like: Select count(*) from my_table where my_field = something What DTML code do I need to perform that if-statement? Somet

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

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 A

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 nowh

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 di

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 own

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

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

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.

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

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: > > > yes it's here > > not here > > > Id like to know whether this is the best/most efficient way to do it. > Things like hasattr() are subject to aquisition i.e. they would find > an index_ht

[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) t

[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 something?

[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: yes it's here not here Id like to know whether this is the best/most efficient way to do it. Things like hasattr() are subject to aquisition i.e. they would find an index_html method along the acquis

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 s

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