Re: [Zope] List from another list in DTML?

2000-10-16 Thread Kapil Thangavelu
Alexander Chelnokov wrote: Hello All, A form contains data items ['firstname','secondname','dofb' etc] and some "service" fields ['submit','sid','form','nform']. With REQUEST.form.items() all these fields are included in a single list. How can another list be created from the list which

Re: [Zope] NEWBIE: assign next free ID automatically

2000-10-16 Thread Kapil Thangavelu
ola, the below will should work fine, although the _string.atoi is unesc since you can just use 0, or 1 by itself inside "" and have it treated as an int and its a bit inefficient to use objectValues over objectIds (list of objects vs. list of strings) although it saves you from having to do a

[Zope] bunch patches for zopeshell uploaded to sourceforge...

2000-10-16 Thread Anthony Baxter
FWIW, I just posted a series of patches for ZopeShell, and a few other bits, that add: editing of PythonMethods and Z SQL Methods (also enables ZSQL through FTP) Add host:port to the prompt Add a 'login' command to switch to a different Zope Server Don't upload the file if the temp

Re: [Zope] image attachments in dtml-sendmail and dtml-mime

2000-10-16 Thread Kapil Thangavelu
Matt wrote: I have benn having a problem with attaching images to a dtml-sendmail. The following is my dtml code : dtml-sendmail mailhost="MailHost" To: Feedback Recipient [EMAIL PROTECTED] From: Zope Feedback Form [EMAIL PROTECTED] Subject: Feedback from the web Feedback from :

Re: [Zope] image attachments in dtml-sendmail and dtml-mime

2000-10-16 Thread Kapil Thangavelu
spoke to soon.. replace dtml-var "paris" with dtml-var "paris.data" Kapil Matt wrote: I have benn having a problem with attaching images to a dtml-sendmail. The following is my dtml code : dtml-sendmail mailhost="MailHost" To: Feedback Recipient [EMAIL PROTECTED] From: Zope Feedback

Re: [Zope] image attachments in dtml-sendmail and dtml-mime

2000-10-16 Thread Matt
Thanks Kapil, that works brilliantly, I didn't see a 'data' member in the quick reference and certainly didn't see a data() method which I was expecting. I guess I should be looking at the source. The following is what I ended up with dtml-sendmail mailhost="MailHost" To: Feedback Recipient

RE: [Zope] backing up

2000-10-16 Thread Cornelis J. de Brabander
You can export specific folders and save the resulting file either to the server or to your local machine (in the management interface view the content of a folder, choose the import/export tab and click export) cb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On

Re: [Zope] ZClass derrived from Image does not call view fromwithin dtml-var

2000-10-16 Thread Stefan H. Holek
On Sun, 15 Oct 2000, Noah wrote: I'm a Zope beginner. I'm trying to create an ImageTemplate ZClass. This will work similar to an Image, but the user can insert it directly in DTML using dtml-var MyImage and it will get expanded into HTML (with formatting, img tag, caption, etc.) FWIW the

[Zope] I want to use html_quote as a function

2000-10-16 Thread Soren Roug
Hi, I can render text that potentially has html in it safely with dtml-var description html_quote but what if I want to assign the quoted result to another variable. I tried dtml-call "REQUEST.set('htmldesc',html_quote(REQUEST['description']))" It didn't work. How do I solve this problem?

Re: [Zope] Distribution Tab

2000-10-16 Thread Chris Withers
Seb Bacon wrote: In the Zope PTK there are a couple of products that have been packaged as product.dats. What format are these? How do I do it? If you go into any of your TTW products in the Control Panel, you'll see a 'Distribution' management tab. That'll let you create your own

[Zope] MySQL and Zope struggles

2000-10-16 Thread Richard Moon
I'm struggling to migrate an application from Zope/PostgreSQL to Zope MySQL (Why ? - because I've got a kind offer of free hosting if I use MySQL). MySQL offers a limited set of features and is missing, among other things, the ability to use subqueries - so for example in PostgreSQL you can

Re: [Zope] MySQL and Zope struggles

2000-10-16 Thread administrator
I don't know if the following link can solve your problem, but maybe it gives you an idea: http://www.zope.org/Members/Roug/new_record_with_subrecords (How-To: Creating a new record with subrecords in MySQL) Arno I'm struggling to migrate an application from Zope/PostgreSQL to Zope MySQL

[Zope] How to use the date fmt's

2000-10-16 Thread Jonathan Cheyne
Hi all, in the various docs it shows various fmt= to display different date types etc. It also shows some date formats that seem more like methods themselves, ie IsCurrentMonth returns true if etc. How can I use these in expressions? Jonathan ___

[Zope] Manipulating acl_users with DTML methods

2000-10-16 Thread Harris Peter
Hi I am new to this, and probably trying to do things the wrong way but: I have a PostgreSQL table of users for my Zope application, and ZSQL methods for inserting, updating and deleting users from the table. The only reason I am doing this is to associate their real name and email address with

Re: [Zope] How to use the date fmt's

2000-10-16 Thread Tony McDonald
At 2:08 pm +0100 16/10/00, Jonathan Cheyne wrote: Hi all, in the various docs it shows various fmt= to display different date types etc. It also shows some date formats that seem more like methods themselves, ie IsCurrentMonth returns true if etc. try this

[Zope] Need help with date comparisons

2000-10-16 Thread Jonathan Cheyne
Hi all again. I have a blank in my mind where I hoped the answer might be to this probably straightforward exercise. I have a zclass containing a date property called event_date. I want a page that loops through the months of the year, starting with the current month, and in each loop displays

[Zope] Zope Discussion Forum @ DevShed.com

2000-10-16 Thread J. Atwood
http://www.devshed.com/cgi-bin/ubb/forumdisplay.cgi?action=topicsforum=Zope number=10DaysPrune=60LastLogin= I found this awhile ago and it has been pretty inactive (until last week when I started posting.. :) ). It would be great to see some of the list subscribers here and other members of the

Re: [Zope] Need help with date comparisons

2000-10-16 Thread Jason Spisak
Jonathan: You can try: dtml-in "['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']" dtml-if "event_date.Month() == _['sequence-item']" dtml-var event_date /dtml-if /dtml-in The source for

[Zope] LoginManager - With SQL

2000-10-16 Thread ed colmar
Thanks for the tips everyone! I keep going between UserDb and LoginManager to try to get this to work. UserDb gives me weird errors, and isn't really current, so I'm focusing on LM. I feel like I'm getting closer to a solution, but I'm still having difficuties... I followed jPenny's how to

Re: [Zope] Creating Recursive Folders

2000-10-16 Thread Jason Spisak
Dieter: Perhaps you misunderstood me. THis is an example of how convuluted DTML can get, but if you have an example of how to do it clearly, I'd love to see it. Jason Spisak writes: dtml-in expr="_.range(0, 10)" dtml-call "_.getitem(_.str(a), 1)._.getitem(_.str(a),

Re: [Zope] Using ProxyPass and SiteRoot

2000-10-16 Thread Marcin Kasperski
"\"Geoffrey L. Wright\" knight writes: Timothy, Without going into too much detail, you are going to want to set up a virtual host in apache for the hostname www.isd197.k12.mn.us, and inside that virtual host you will want to add your ProxyPass lines similar to my example:

Re: [Zope] I want to use html_quote as a function

2000-10-16 Thread Ryan M. Dolensek
try... dtml-call "REQUEST.set('htmldesc',utils.httpEscapedString(REQUEST['description']))" ryan Soren Roug wrote: Hi, I can render text that potentially has html in it safely with dtml-var description html_quote but what if I want to assign the quoted result to another variable. I

[Zope] how to include Flash/SWF objects in Zope website?

2000-10-16 Thread Fred Yankowski
I want to include some Flash/SWF objects in a Zope website, but I don't see any built-in way to do this or any Product that would help. Any suggestions? If all else fails, I'm thinking about creating a simple product for this, modeled on ImageFile.py. -- Fred Yankowski [EMAIL

[Zope] HELP! Permissions problem, ZClass

2000-10-16 Thread Eric Walstad
Help, pls! I have a ZClass that is functioning beautifully if I am logged in, but the anonymous user keeps getting prompted for a password. The problem occurs when my DTML method trys to create a new instance of the ZClass. I tried giving that DTML method a Proxy of "Manager" but that isn't

RE: [Zope] Help Debugging External Methods

2000-10-16 Thread Robert_J_Roberts
I do pretty much the same things myself. I assign sys.stderr = sys.stdout, then I create my own log file object from a module I wrote a few years ago, and then assign something like sys.stderr = self.logObj. That works well for any errors that occur after those assignments have occurred but

[Zope] Microsoft Zope

2000-10-16 Thread Damien Morton
http://msdn.microsoft.com/library/default.asp?URL=/library/techart/DesignKMS ols.htm Looks like MS has embraced the Zope way of doing things ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or

Re: [Zope] how to include Flash/SWF objects in Zope website?

2000-10-16 Thread J. Atwood
You could just upload them into Zope and point to them. http://www.gotschool.com (see flash demos). It uploads as a "application/octet-stream" I am sure you are talking about much more interaction. J From: Fred Yankowski [EMAIL PROTECTED] Date: Mon, 16 Oct 2000 11:06:53 -0500 To: [EMAIL

RE: [Zope] MySQL and Zope struggles

2000-10-16 Thread dale . w . lance
Or you could renormalize your data to have: - --- | Artist | | Note | |-|---|---| | id | | id| -| artist_id | | note_str | --- you now have a list of notes

[Zope] Question!

2000-10-16 Thread Carlos Vasconez
Hi I am read about zope. Question? I can use Zope with NT Server, IIS 4 and SQLServer ? I have a Database in SQLServer Thanks Carlos -

Re: [Zope] how to include Flash/SWF objects in Zope website?

2000-10-16 Thread Jim Washington
N.B. You probably should add your Flash/SWF objects as "File" objects. DTML Method/Document objects can do amusing things with binary data, which is why there are "File" objects. -- Jim Washington J. Atwood wrote: You could just upload them into Zope and point to them.

RE: [Zope] Question!

2000-10-16 Thread Farrell, Troy
Yes you can. You will need ZODBC to connect to the SQLServer. Make sure that SQL server is available as a "System DSN" on it's host. You will also need a username and password to connect. Zope will ask you for this in the DSN string. Best of luck to you. Troy Troy Farrell Video Operations

Re: [Zope] how to include Flash/SWF objects in Zope website?

2000-10-16 Thread Fred Yankowski
Thank you both for the help. File objects are just the ticket (but it turns out that Image objects work nearly as well). For the record, here's what I did: + create File object with id "foo_swf". + upload my local foo.swf file into foo_swf. + create DTML Method object "foo_flash" to provide

[Zope] Re: Zope digest, Vol 1 #1018 - 39 msgs (I will be out of theoffice Monday, October 16th)office Monday, October 16th)

2000-10-16 Thread Darin Lee
I will be out of the office on Monday, October 16. If you require assistance, please contact the DEQ helpdesk at 241-7495. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

[Zope] What's the status of ZEO?

2000-10-16 Thread Oliver Sturm
Hi, is there any information available about the general usability of ZEO? Mainly stability is interesting to me, feature completeness is not so important. MfG, Oliver Sturm -- Who is General Failure and why is he reading my disk? -- Oliver Sturm / [EMAIL PROTECTED] Key ID: 71D86996

Re: [Zope] Medusa Monitor

2000-10-16 Thread Karl Anderson
Terry Kerr [EMAIL PROTECTED] writes: I don't think the monitor gives you any advantage? I have never used a ptyhon prompt before...I will have to give it a go. terry Actually, the advantage of the monitor is that it runs in the same process as your server, so you can track resource

RE: [Zope] how to include Flash/SWF objects in Zope website?

2000-10-16 Thread Bob Corriher
Hi Fred, We use Flash in most of the sites we develop with Zope. We just upload the swf file into a File object and call it from the index_html method as follows: HTML HEAD TITLEsplashpage/TITLE /HEAD BODY bgcolor="#FF" !-- URL's used in the movie-- !-- text used in the movie-- CENTER

Re: [Zope] Zope Discussion Forum @ DevShed.com

2000-10-16 Thread J. Atwood
I am more than happy to set up a ZUBB somewhere as well. A sort of Zope starter, question and/answer forum. Is this something that the community is generally interested in or not? J From: "Peter Bengtsson" [EMAIL PROTECTED] Date: Mon, 16 Oct 2000 20:19:09 +0100 To: "J. Atwood" [EMAIL

[Zope] About your ShareWare

2000-10-16 Thread aschneider
As a Shareware Author, you should be listing your files on FileMine... it's fast, easy and free! This Week's Most Popular file, Bugtoaster 1.0.00.2710 BETA, has been downloaded 17331 times! There's no reason this can't be your file - use the link below to add it now:

[Zope] test

2000-10-16 Thread Jens Grewen

Re: [Zope] Zope Discussion Forum @ DevShed.com

2000-10-16 Thread Bak @ kedai
On Tuesday 17 October 2000 09:57, J. Atwood wrote: I am more than happy to set up a ZUBB somewhere as well. A sort of Zope starter, question and/answer forum. Is this something that the community is generally interested in or not? J i would think that having a forum at Zope.org or zdp.org

Re: [Zope] I want to use html_quote as a function

2000-10-16 Thread Kapil Thangavelu
Hello, "Ryan M. Dolensek" wrote: try... dtml-call "REQUEST.set('htmldesc',utils.httpEscapedString(REQUEST['description']))" huh??, what is this, i'm not aware of anything resembling this being in zope's core, i think you are using some type of custom lib. if not i'd like to hear about

[Zope] new LocalFS release: 0.9.6

2000-10-16 Thread Jonothan Farr
Changes v0.9.6 - Fixed saving large File and Image objects. - Added ZCatalog support. http://www.zope.org/Members/jfarr/Products/LocalFS/ --jfarr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross

Re: [Zope] Newbie question : ZopeTime permissions

2000-10-16 Thread Manuel Amador (Rudd-O)
access contents information I guess. Aaron Straup Cope wrote: Hi, My name is Aaron. I am trying to set up zope with (atleast) three roles : manager, admin, user. I'd like to give the last two the bare minimum Security permissions possible and adding them as needed later on. My problem is that I

Re: [Zope] DTML Method not working

2000-10-16 Thread Manuel Amador (Rudd-O)
dtml-with "PARENT[0]"> dtml-tree> Phil Harris wrote: Is the code you used in a DTML Method or a DTML Document? Is it in a DTML Method being called from a DTML Document? If the answer to either of these is 'yes' then it's doing as you ask! The thing that gets most new zope users is that a DTML

Re: [Zope] Socket.error problem

2000-10-16 Thread Manuel Amador (Rudd-O)
user processes cannot bind to ports lower than 1024. Never forget dat. "Ronald L. Chichester" wrote: I'm getting the exact same socket.error message that appeared on this list in March, 2000. (See the attached problem.txt file.) Specifically, this is the error message that I get when I start

Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-16 Thread Manuel Amador (Rudd-O)
which publications? it sounded like dunno, if there is a publication that dares to say that, they ARElying. knight wrote: > Don't you all Zope mailinglist participants think that Aitor Grajal owe us all an excuse in the form of a NEW TEST with the Win32 ZServer running properly? > ;-) >

Re: [Zope] security quickie

2000-10-16 Thread Manuel Amador (Rudd-O)
I too have a doubt about security stuff. It so happens that I have this setup rootfolder + myfolderobjects + inheritedstuff i have an user X in root folder. Roles are so that anonymous doesn't have permission for anything. Then, there is a user role, that is allowed some stuff, and i assign

Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-16 Thread Manuel Amador (Rudd-O)
I feel zserver somewhat dumber on windows 95 than on linux. a p200 machine with windows 95 is considerably slower inrentering pages than a p166 with linux. Toby Dickenson wrote: On Sat, 07 Oct 2000 01:57:40 +0200, "Ansgar W. Konermann" [EMAIL PROTECTED]> wrote: >Definitely, yea! > >> I would

Re: [Zope] Animated GIFs

2000-10-16 Thread Manuel Amador (Rudd-O)
correct me if i'm wrong, but the repeat attribute is IN the gif file. that means zope is mangling the file. try creating the image as a file changing its mimetype and referrring it outside zope via an HTML page, to see if that's the case. Lars Heber wrote: Peter Bengtsson schrieb: > [Just

Re: [Zope] How: /foo?var=bar equiv to /foo/bar

2000-10-16 Thread Manuel Amador (Rudd-O)
Question marks are used for GETmethods. I think that if you're trying to make a form send you to another page without question marks, you'd have to use POST method in the form. Heymann William wrote: I am trying to get rid of those question marks in my urls since it seems to confuse the users

Re: [Zope] zope 2.2.2 not compiling

2000-10-16 Thread Manuel Amador (Rudd-O)
I think you need the cygwin development environment. Or there is a zip around, called UnxUtils.zip. do a google search and get it. Lace its contents into a folder in your PATH. Roland Tepp wrote: Hi. I downloaded Zope 2.2.2 source and I am trying to compile it on WinNT to run without pcgi and it

Re: [Zope-dev] Wrox Book

2000-10-16 Thread Chris Withers
Brad Clements wrote: Yeah, that project has just been pulled, I think ;-) Pulled as in cancelled? yup... Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! **

[Zope-dev] ZMYSALDA - Ports

2000-10-16 Thread Andy Dawkins
People Has anyone managed to patch the MYSQLDA so that you can access a MySQL server on a different port? i.e. port 3307 instead of the default 3306 If so would you care to share the breakthrough with me please? Andy Dawkins ___ Zope-Dev maillist

[Zope-dev] Writelocking Proposal rev 3.1

2000-10-16 Thread Jeffrey P Shell
http://dev.zope.org/Wikis/DevSite/Proposals/WriteLocking The proposal has been updated with a new deliverable discussing documentation as noted and requested by Brian. Jeffrey P Shell, [EMAIL PROTECTED] http://www.digicool.com/ | http://www.zope.org

[Zope-dev] SQL user source, how is this?

2000-10-16 Thread Harry Henry Gebel
I am writing a UserSource that gets it's information from an SQL database, here it is: ''' CCUserSource, a LoginManager user source for the # project. ''' from sha import sha from Products.LoginManager.UserSources import BasicUserSource class CCUserSource(BasicUserSource): """

[Zope-dev] Recursive folders from Python

2000-10-16 Thread Jason Spisak
Zopists, Yesterday I was trying to create recursive folders from DTML. I'd like to do the same from Python. Does anyonw know why this code won't create a folder within a folder. It's tells me the id is already in use, so that means it's not descending into the newly created folder to make

Re: [Zope-dev] Recursive folders from Python

2000-10-16 Thread Andy McKay
Try using getattr to get the object... heres a python script to do it a little more cleanly: import string def create_folders(self): path = '/a/b/c' # create a folder for each part of the string, nested. for p in string.split(path, '/'): if p != '': self = create_folder(self, p)