[Zope] validation-onClick

2000-11-23 Thread Angietel



The form="a" and its input field="custid" is being 
validated,when the alert message box came outtheni clicked on 
the 'OK' button which is inside the alert message box, but it return to another 
page insteadreturn to form="a".
( Ipreferto use 'onClick' 
insteadof 'onSubmit' )

The following is my JavaScript validation 
function:-

function 
checkid(){if(document.a.custid.value==""document.a.custname.value==""){alert("You 
must specify string character either in customer id or customer 
name.")document.a.custid.focus();return 
false;}}


The form events:-

input type="SUBMIT" name="Search" 
value="Search"  



Re: [Zope] New ZPatterns example... was Re: [Zope] New releases of Zwiff and ZCVSMixin...

2000-11-23 Thread Rik Hoekstra


 OK.. The new ZPatterns Example is up there   now off to fix
 some EMarket problems

for which the secret url is:
http://www.zope.org/Members/sspickle/DumbZPatternsExample

I hope you don't mind me reveiling it ;-)

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] Deleting files with URLs

2000-11-23 Thread ListBot

Hello,

I have the following method, having problems understanding how to get the "delete" 
link to work correctly. I get the following error:
No items were specified!

This is because there is no checkbox checked to pass on a file name? Is there another 
way to delete files by url?

Thanks for helping a newbie.

Regards, 

Sean 
[EMAIL PROTECTED]



FileArchive/index_html:


p
a href="upload_file"Add File/a | a href="upload_image"Add Image/a
p
hr
table border="0" width="100%" cellspacing="5"
trth valign="top" align="left"uType/u/thth valign="top" 
align="left"uName/u/thth valign="top" align="left"uSize/u/thth 
valign="top" align="left"uModified/u/thth valign="top" 
align="left"uInfo/u/thth valign="top" align="left"uActions/u/th/tr
dtml-in expr="FileArchive.objectValues()"
tr
td valign="top" align="left"type/td
td valign="top" align="left"a href="dtml-var absolute_url"dtml-var id/a/td
td valign="top" align="left"dtml-var getSize/td
td valign="top" align="left"dtml-var bobobase_modification_time/td
td valign="top" align="left"a href="dtml-var absolute_url/manage_workspace"img 
border="0" src="images/info.gif"/a/td
td valign="top" align="left"a href="dtml-var absolute_url"Fetch/a | 
a href="delete_file"Delete/a/td
/tr
/dtml-in
/table

-
delete_file:
-
dtml-var expr="FileArchive.manage_delObjects()"

Your file dtml-var id has been deleted from the File Archives.
p
a href="index_html"Return to File indexa/



___
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] New ZPatterns example... was Re: [Zope] New releases of Zwiff and ZCVSMixin...

2000-11-23 Thread Steve Spicklemire


Urp.. yes. sorry! 

Thanks!
-steve

 "Rik" == Rik Hoekstra [EMAIL PROTECTED] writes:

  OK.. The new ZPatterns Example is up there  now off to fix
 some EMarket problems

Rik for which the secret url is:
Rik http://www.zope.org/Members/sspickle/DumbZPatternsExample

Rik I hope you don't mind me re veiling it ;-)

Rik 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] sending thousands of emails in the background (returningthe webpage immediately) ?

2000-11-23 Thread Stefan H. Holek

On Thu, 23 Nov 2000, chas wrote:

 Goal: an end-user fills in a form on a webpage and clicks
   the 'submit' button.  As a result, thousands of 
   customized e-mail messages are sent.
 
 Problems: 
 (i)   The msgs are customized so Mailman is not appropriate.
   also, there is substantial workflow so Zope is preferred.
 (ii)  The end user only uses a web browser - s/he will not be
   expected to log in and use ZClient, so the previous solution
   suggested below is not viable.
 (iii) The confirmation webpage must return immediately... 
   ie. we do not want to wait for all the emails to be 
   sent before the page is returned to the user.
   This has to be processed in the background (perhaps
   for the next hour or so, even if the user logs off).
 
   Possible scenario : user logs on, fills in form, hits 'submit', 
   confirmation webpage is returned to the user saying it's ok,
   emails start to get sent out, user logs off, emails
   continue to get sent out, user logs back on 2 hrs later
   and its still processing.
 
 
 Anyone any ideas on this one ? Thanks a lot,

You might want to take a look at my bulk mailing how-to
http://www.zope.org/Members/shh/BulkMailHack/

Regards,
Stefan


___
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] Storing in ZODB

2000-11-23 Thread Chris Withers

Edward Muller wrote:
 
 How would you record data in the ZODB? Would you have to write a Product for
 each thing you want to store? If you can provide some links it would be great!

Well, HiperDom's XML templates product apparently contains some data
object thing which might do the job:

http://www.zope.org/Members/lalo/HiperDom

Otherwise, start with the Boring product and build what you need:
http://www.zope.org/Members/gtk/Boring
http://www.zope.org/Members/hathawsh/PythonProductTutorial

Good luck,

Chris

___
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] Tracker

2000-11-23 Thread Magnus Heino (Rivermen)


Hi.

What is the status of the Tracker product?

I remember someone saying that it had some problems with the latest version
of Zope a while ago, is that still true?

/Magnus

___
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] validation-onClick

2000-11-23 Thread Stefan H. Holek

On Thu, 23 Nov 2000, Angietel wrote:

 The form="a" and its input field="custid" is being validated, when the alert message 
box came out then i clicked on the 'OK' button which is inside the alert message box, 
but it return to another page instead return to form="a".
 ( I prefer to use 'onClick' instead of 'onSubmit' )

this is a good choice! onsubmit gives you troubles with some browsers.

 input type="SUBMIT" name="Search" value="Search" onClick="JavaScript:checkid()"  

make this ... onclick="javascript:return checkid();"

Regards,
Stefan


___
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] Problems with new Todo example.

2000-11-23 Thread Steve Spicklemire


Hmmm... er.. it's just page with a picture and some text there's
nothing zopey at all... I (almost) never run IE or Windowsso
I'll dig around here and see if I can reproduce it it's wierd
though.. it's just simple html! 

Does the app part work for you?

-steve

 "jimbo" == jimbo  [EMAIL PROTECTED] writes:

jimbo When I try to access the link on the index_html page, to
jimbo see what the Zope structure looks like, it crashes IE 4 on
jimbo win98.  Any thing special going on there in
jimbo zopeStructure.html?  -Jimbo




___
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] python methods

2000-11-23 Thread Lee Reilly CS1997

Hi,

I'm having problems with Python methods. I've followed the  instructions
for the guestbook example [1] to the letter but when I add the Python
method [2] is causes an error as follows:

Error Type: NameError
Error Value: context

TraceBack: Traceback (innermost last): File
/usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in
publish File
/usr/local/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in
mapply (Object: addEntryAction) File... etc. 

Can anyone offer any advice?

- Best regards,
Lee Reilly

[1] http://www.zope.org/Members/michel/ZB/SimpleExamples.html

[2] Python method
  """
  Create a guest book entry.
  """
  # create a unique document id
  id='entry_%d' % len(context.objectIds())

  # create the document
  context.manage_addProduct['OFSP'].manage_addDTMLDocument(id,
   title="", file=comments)

  # add a guest_name string property
  doc=getattr(context, id)
  doc.manage_addProperty('guest_name', guest_name, 'string')

___
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] Python Script comments

2000-11-23 Thread Chris Withers

Evan Simpson wrote:
 
 so it's official.  Zope 2.3 will introduce "Python Script"
 objects.

Sounds good enough to me :-)

When do DTML Methods become DTML Scripts?
(never, hopefully ;-)

 There will be no "Unrestricted" vs. "Restricted".  If you
 want to write unrestricted code, you can use a good old
 External Method, or write a small module and import it in a
 Script object.

:-)

 password, and you'll get your own private area in a trunk
 CVS checkout of Zope in which to play.

Is there going to be a python methdos help tab eventually?
The bindings tab looks very cool, by the way :-))

Interested about the parameters box...

If I specify parameters 'wibble, fish', and then do:

dtml-var "mypythonmethod('wibble',1)"

...will wibble='wibble' and fish=1 in the method?
Will the bound names still be bound to what they would have been, had I
just done dtml-var mypythonmethod ?

Likewise, if I do:
dtml-let wibble='wibble', fish="1"
dtml-var mypthonmethod
/dtml-let

...will it have the same effect?

Finally, I'm not sure, from a user confusion point of view that allowing
bound names to also appear in the parameter list is a good idea...

Apart from that, looks very cool :-)

cheers,

Chris

___
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] DTML source

2000-11-23 Thread Tom Deprez

Hi,

Are there some sites which publish there DTML source(structure)? I'm
particulary looking on how several navigation, menu, ... structures are
implemented in Zope.

On Zope.org you can see the DTML-source. Unfortunately not the
implementation of the navigation (or the menu on the left).

Tom.



___
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] DTML source

2000-11-23 Thread Oleg Broytmann

Hi!

On Thu, 23 Nov 2000, Tom Deprez wrote:
 Are there some sites which publish there DTML source(structure)? I'm
 particulary looking on how several navigation, menu, ... structures are
 implemented in Zope.

 On Zope.org you can see the DTML-source. Unfortunately not the
 implementation of the navigation (or the menu on the left).

   Russian Python and Zope User Group site: http://zope.net.ru/ The problem
is that it is really in russian (surprized? :)

   Horizontal navigation implemented in header, in method global-nav:
http://zope.net.ru/global-nav/view_source

   Vertical navigation in left column implemented with External Method.
Source will be freely available upon request (on first request I just put
the source on the site).
   External Method requires 'cause I need to play with aqcuisition,
recursion, etc - hardly achivable with DTML scripting.

Oleg.

 Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] [Urgent] Zope good for multiprocessor hardware

2000-11-23 Thread Shane Hathaway

 On Thu, 16 Nov 2000 Andreas Tille wrote:
 
  we intent to buy new web server hardware.  We want to run Debian GNU/Linux
  on a Sun system.  I wonder if zope could profit from a multi-processor
  architecture on such a system.

If you mix in ZEO (now open source), yes it can.  With ZEO you can run
independent Zope processes that all refer to the same site.  The global
interpreter lock becomes irrelevant.

  Zope server starts several threads.  So could they be split over the
  different processors automatically, can I enforce it or is it not
  possible.
 Sorry for quoting myself but I need this information today because we
 have a meeting with some salesman.  If I can not clearly answer this
 question it might be bad for implementing zope in our institute because
 a wrong designed hardware could lead to another software than zope and
 this would be a shame.

Then ZEO is exactly what you're looking for.

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

2000-11-23 Thread Chris Gray

Just one point of clarification added below since the original poster
seemed confused on this point. 

Chris


On Thu, 23 Nov 2000, Diny van Gool wrote:

 At 23:07 22-11-00 -0500, John Cappelletti wrote:
 [...]
 What is the process for connecting to a MS Access database? Can it be
 done?
 
 Yes, it can. I'm running Zope 2.2.0 on Windows98 with Access97. You'll have
 to use the ZODBCDA product.
 
 In Windows98:
 
 - Use the Control Panel - ODBC connection - Add a system DNS
 - Select the MS Access driver
 - Fill in an alias name and select the database you want to use

When you "Select" the database in the "ODBC Microsoft Access Setup" dialog
box you can point it to an .mdb file anywhere on your system.  It doesn't
have to be in your Zope directory.

 In Zope:
 
 - Add a Z ODBC database connection
 - Select the alias you defined above and Add
 
 Diny


___
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] DTML source

2000-11-23 Thread Dennis Nichols

At 11/23/00 01:38 PM, Tom Deprez wrote:
Are there some sites which publish there DTML source(structure)? I'm
particulary looking on how several navigation, menu, ... structures are
implemented in Zope.

I use the following DTML Method (probably shouldn't be done in dtml) to 
produce a vertical, indented menu where folders are expanded to subfolders 
only if you're in one of the subfolders. Three custom folders are used to 
build the site (Category-Top, Category-Middle, and Category-Bottom). Each 
folder has a menu_entry property. A folder appears in the menu only if its 
menu_entry is non-blank. If you are currently in Pop Culture/Reviews/Books, 
the menu looks like this:

Ask the Experts
College
Pop Culture
Quiz
Reviews
   Books
   Movies
   Music
Trends
Sports

Here's the dtml. It's called display_menu and is recursive. Replace 
home_id_here with the id of the site's base folder. The base folder does 
not appear in the menu display.

  dtml-unless topdown
dtml-call "REQUEST.set('topdown',[])"
dtml-call "REQUEST.set('homefound','n')"
dtml-in PARENTS skip_unauthorized
  dtml-if "homefound == 'n'"
dtml-call "topdown.insert(0, _['sequence-item'])"
dtml-if "_['sequence-item'].id == 'home_id_here'"
  dtml-call "REQUEST.set('homefound', 'y')"
/dtml-if
  /dtml-if
/dtml-in
dtml-call "REQUEST.set('level', 0)"
dtml-call "REQUEST.set('NodeToShow', topdown[0])"
  /dtml-unless
  dtml-if "level  0"
dtml-with NodeToShow
  dtml-var "'nbsp;'*3*(_.int(level)-1)"
  a href="dtml-absolute_url;" class=toolboxdtml-menu_entry;/abr
/dtml-with
  /dtml-if
  dtml-if "level  _.len(topdown) and NodeToShow.id == topdown[level].id"
dtml-in 
"NodeToShow.objectValues(['Category-Top','Category-Middle','Category-Bottom'])"
 sort=id skip_unauthorized
  dtml-if "_['sequence-item'].menu_entry"
dtml-call "REQUEST.set('level', level+1)"
dtml-call "REQUEST.set('NodeToShow', _['sequence-item'])"
dtml-var display_menu
dtml-call "REQUEST.set('level', level-1)"
  /dtml-if
/dtml-in
  /dtml-if

Not my finest piece of coding, but maybe it will help.

--
Dennis Nichols
[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] Objection to Python Script Name

2000-11-23 Thread Chris Gray

I know, I know.  It's a little late to speak up, but I think there is a
logical objection to this name:  inconsistency with "DTML Method" and
"ZSQL Method".

I think some better options were left off the vote.

ZIP Method (Zope Internal Python Method)
ZoPy Method
PyZo Method
ZPython Method

I think the name should indicate that it is a type of Zope method and that
it is a type of Python function peculiar to Zope.

Cheers,
Chris



___
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] Python Script demo site

2000-11-23 Thread Simon Michael

"Evan Simpson" [EMAIL PROTECTED] writes:
 A few announcements.  First, in the interests of sanity and
 getting things moving, I'm choosing the only name other than
 "Python Method" to get a positive score in the naming poll.

For the sake of future votes: did you actually hold a second poll ?
Last I heard was a call for name candidates, which I thought would be
the basis for a poll.

___
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] zope basics

2000-11-23 Thread Rik Hoekstra

Using Zope, I have managed to put together a nice site for friends to create
folders, pages and upload images, etc. But there are some fundamentals that
are eluding me.

I am able to 'register' a new user through a form to create a new acl_user.
But I cannot figure out how to let them login again using that name/password
and be an AUTHENTICATED_USER with that acl_user name--other than Anonymous
User. I tried to look at AUTHENTICATION_PATH, but my browser wants to
download it--an empty file.

[rh]If you have an object to which an Anonymous user has no access, an
authentication dialog automatically pops up. If you want a real login page,
just give it restricted access, but you could any page in a restricted area
for that. Using basic authentication this is a bit clumsy. There are more
sophisticated authentication mechanisms available for Zope.

I can manage objects using dtml pretty well: create, delete, edit. If I can
figure out how to authenticate a user, I would like to be able to add a
property to new objects as they are created: (createdby:AUTHENTICATED_USER)
so that I can control which objects get a checkbox (for delete) and an edit
link for a particular user. InOtherWords, if a user creates a object, I want
that same person to be able to go back and delete or edit that object.
Anyone else can see it, but they won't be able to delete or edit the object.

[rh]Objects normally get an Owner property (under the ownder tab). In this
case you could use something like (untested)

  !--#if "AUTHENTICATED_USER.has_role('Owner',this())"--
  You own this Folder.
  !--#/if--

this is taken from http://www.zope.org/Documentation/How-To/DetectRoles


This confuses me: manage_addProperty takes (id, value, type and optionally
REQUEST) as args. What is the id? Is it the ID of the object that you want
to add a property to? Or is it the ID of the new property? The Zope Quick
Reference doesn't say, but I think it is the property's ID.

[rh]It's the id of the property. Remember you call the method on an object
(or rather in the context of an object) with an id, so passing the
manage_addProperty the object's id once again would be superfluous.


I am trying to learn from looking at the Zope interface work. After
submitting the add property form, the page url looks like this:
appRoot/objectname/manage_addProperty. I see that the objectname is behind
manage_addProperty, I know the value, id and type are passed in the REQUEST.
How can I take advantage of this following a line like:

dtml-call expr="manage_addImage(id=title, file=file, title=title)"

...to add a property to that image?

several options (just in dtml, all not tested):

dtml-call expr="your_image.manage_addProperty(id=yourid,
value=yourvalue, type=yourtype)"

dtml-with your_image
   dtml-call expr="manage_addProperty(id=yourid, value=yourvalue,
type=yourtype)"
/dtml-with

Note that if the REQUEST has the right values (from a form)   you can
alternatively also just pass it the REQUEST , the manage_addProperty method
will know how to take the variables from the REQUEST.

I found some useful tidbits at a howto page on Zope site somewhere. But it
was pretty sparse and just whetted my appetite. I am coming from NT/IIS ASP
world. So I am struggling.

[rh] But you have much to win ;-)

Can anyone point me to a richer source of samples that will help me get up
this hill?

There are a faq and a ZSnippets on zdp.zope.org which may provide some more
examples. Also look at the many howtos. The documentation section of the
zope site should be making them more easily accessible in some time.

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 )




Re: [Zope] Objection to Python Script Name

2000-11-23 Thread Chris Withers

Chris Gray wrote:
 
 I know, I know.  It's a little late to speak up, but I think there is a
 logical objection to this name:  inconsistency with "DTML Method" and
 "ZSQL Method".

These are old, horrible and will hopefully be re-thought and given
different names ;-)

 ZIP Method (Zope Internal Python Method)
 ZoPy Method
 PyZo Method
 ZPython Method

:-(

All imply there is soem difference between the Python used by Zope and
any other python ,which isn't, and never should be, the case...

cheers,

Chris

___
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 Yes or No (I think...)

2000-11-23 Thread Ben Ocean

Hi;
Can Zope be used to create a *MyYahoo* style GUI?
TIA,
BenO


___
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] sending thousands of emails in the background (returning the webpage immediately) ?

2000-11-23 Thread chas

Thanks Stefan,

Nice analysis - esp. of the locking problems which explains
why I wasn't managing to scale with multiple threads, even 
from a straight python script (no Zope).  Pretty certain I'm
going to botch up qmail if I start writing directly to the 
maildrop, but will investigate.

As for my initial question (detaching the sending thread from 
the interactive part of Zope), I'm relieved to see that the 
'threading' module is taking care of everything for you ... 
I must have screwed up in my earlier attempts (using 'thread').
Will give it another shot now that I know this is the way to
go forward. 

Cheers,

chas




You might want to take a look at my bulk mailing how-to
http://www.zope.org/Members/shh/BulkMailHack/

Regards,
Stefan

 Goal: an end-user fills in a form on a webpage and clicks
   the 'submit' button.  As a result, thousands of 
   customized e-mail messages are sent.
 
 Problems: 
 (i)   The msgs are customized so Mailman is not appropriate.
   also, there is substantial workflow so Zope is preferred.
 (ii)  The end user only uses a web browser - s/he will not be
   expected to log in and use ZClient, so the previous solution
   suggested below is not viable.
 (iii) The confirmation webpage must return immediately... 
   ie. we do not want to wait for all the emails to be 
   sent before the page is returned to the user.
   This has to be processed in the background (perhaps
   for the next hour or so, even if the user logs off).
 
   Possible scenario : user logs on, fills in form, hits 'submit', 
   confirmation webpage is returned to the user saying it's ok,
   emails start to get sent out, user logs off, emails
   continue to get sent out, user logs back on 2 hrs later
   and its still processing.
 
 
 Anyone any ideas on this one ? Thanks a lot,


___
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] Objection to Python Script Name

2000-11-23 Thread Dany Rioux

I have to agree with Chris (Gray).

It is enough confusing already (for me it is that is :). I personnaly
think that a name like "ZoPy Scripting" (w/ or w/o Method) should be used.

My 0.02c

Dany


Subject: Re: [Zope] Objection to Python Script Name


Chris Gray wrote:

 I know, I know.  It's a little late to speak up, but I think there is a
 logical objection to this name:  inconsistency with "DTML Method" and
 "ZSQL Method".

These are old, horrible and will hopefully be re-thought and given
different names ;-)

 ZIP Method (Zope Internal Python Method)
 ZoPy Method
 PyZo Method
 ZPython Method

:-(

All imply there is soem difference between the Python used by Zope and
any other python ,which isn't, and never should be, the case...

cheers,

Chris

 smime.p7s


Re: [Zope] Python Script demo site

2000-11-23 Thread Jason Cunliffe



 "Evan Simpson" [EMAIL PROTECTED] writes:
  A few announcements.  First, in the interests of sanity and
  getting things moving, I'm choosing the only name other than
  "Python Method" to get a positive score in the naming poll.

 For the sake of future votes: did you actually hold a second poll ?
 Last I heard was a call for name candidates, which I thought would be
 the basis for a poll.

Yes ..but the Florida supreme court overruled that late yesterady afternoon
;-)

- Jason


___
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: Zope digest, Vol 1 #1067 - 68 msgs

2000-11-23 Thread Diarmaid Lynch

I'm interested in making a non-commercial "e-bay" type application 
for selling second hand books @ my university.

any suggestions?
Cheers.

___
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] Simple Yes or No (I think...)

2000-11-23 Thread Oleg Broytmann

On Thu, 23 Nov 2000, Ben Ocean wrote:
 Can Zope be used to create a *MyYahoo* style GUI?

   Yes.

   Actually, Zope can be used to create *anything*. But the amount of work
may differ :)

   Now, if you want to reformulate your question as "can zope be used to
create this without much effort?" the answer will be No. MyYahoo is pretty
complex application, sure. No tool will clone it without an effort, but
some tools may simplify the task. I think Zope can make life simpler, much
simpler, really.

Oleg.(All opinions are mine and not of my employer)

Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Objection to Python Script Name

2000-11-23 Thread Menard . Jean-Francois

I agree with you. 

My vote: ZPython Method. 

-Message d'origine-
De : Chris Gray [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 23 novembre 2000 11:29
À : [EMAIL PROTECTED]
Objet : [Zope] Objection to Python Script Name


I know, I know.  It's a little late to speak up, but I think there is a
logical objection to this name:  inconsistency with "DTML Method" and
"ZSQL Method".

I think some better options were left off the vote.

ZIP Method (Zope Internal Python Method)
ZoPy Method
PyZo Method
ZPython Method

I think the name should indicate that it is a type of Zope method and that
it is a type of Python function peculiar to Zope.

Cheers,
Chris



___
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] MyYahoo Functionality (was Simple Yes or No (I think...))

2000-11-23 Thread Chris Withers



Oleg Broytmann wrote:
 
 On Thu, 23 Nov 2000, Ben Ocean wrote:
  Can Zope be used to create a *MyYahoo* style GUI?
 
Yes.
 
Actually, Zope can be used to create *anything*. But the amount of work
 may differ :)

PTK?

Chris

___
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] Objection to Python Script Name

2000-11-23 Thread Hamish Lawson

Chris Gray:

I think there is a logical objection to this name [Python Scrpit]:
inconsistency with "DTML Method" and "ZSQL Method".

Chris Withers:

These are old, horrible and will hopefully be re-thought and given
different names ;-)

 ZIP Method (Zope Internal Python Method)
 ZoPy Method
 PyZo Method
 ZPython Method

:-(

All imply there is soem difference between the Python used by Zope 
and any other python ,which isn't, and never should be, the case...

This is why I proposed Python ZMethod. I further propose that ZMethod
be used generally for anything that Zope considers a method (but which
may not necessarily be a method in the implementation language - here,
Python). Thus we'd have DTML ZMethod, SQL ZMethod, Perl ZMethod. This
puts the decoration where it is most appropriate, i.e. ZMethod, and
leaves us to qualify it by the natural name of the implementation
language - Python, Perl, DTML, SQL, Tcl, whatever.

Hamish Lawson





Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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] Simple Yes or No (I think...)

2000-11-23 Thread Andy McKay

Yes. They are all websites.. try looking at
http://www.zope.org/Members/Roug/Yihaw

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Ben Ocean" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 23, 2000 9:04 AM
Subject: [Zope] Simple Yes or No (I think...)


 Hi;
 Can Zope be used to create a *MyYahoo* style GUI?
 TIA,
 BenO


 ___
 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] Objection to Python Script Name

2000-11-23 Thread Chris Withers

To Hamish, the other Chris, and anyone else who's going to jump in on
this.

To be quite blunt, this has now been _decided_ as I understand it. So
it's pointless to keep arguing and suggesting new and different names.
We now _have_ a president and it's name is 'Python Script' ;-)

Like it or hate it (I'm pretty neutral about it), it's here to stay, so
lets just get on with using them and making sure they work the way we
want them to.

cheers,

Chris (who, for once, won't be following up on this thread...)

___
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] Objection to Python Script Name

2000-11-23 Thread Chris Gray

Greetings to the Knights-Who-Until-Recently-Said-Python-Methods,

On Thu, 23 Nov 2000, Chris Withers wrote:

 Chris Gray wrote:
  
  I know, I know.  It's a little late to speak up, but I think there is a
  logical objection to this name:  inconsistency with "DTML Method" and
  "ZSQL Method".
 
 These are old, horrible and will hopefully be re-thought and given
 different names ;-)

Granted.  My objection doesn't really apply if the naming of all the
standard Zope object classes is up for grabs.  If that's where things are
headed then it would probably be a good idea to have a set of guidelines
for the naming of parts of Zope.  Zope should underline its OO nature with
consistent naming of related things.

  ZIP Method (Zope Internal Python Method)
  ZoPy Method
  PyZo Method
  ZPython Method
 
 :-(
 
 All imply there is soem difference between the Python used by Zope and
 any other python ,which isn't, and never should be, the case...

But there is a difference for the internal methods (restrictions on
security and builtins), as well as similarities with other Zope methods
(the way you call it from DTML or via URL).  I was thinking of the analogy
with ZSQL.

BTW, can you use DTML tags in Python Script the same way you use them in
ZSQL methods?

Cheers,
Chris


___
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] Objection to Python Script Name

2000-11-23 Thread Tom Deprez

Why not just 

Python Script
Perl Script

?

Tom.


At 13:17 23/11/2000 -0400, Dany Rioux wrote:
I have to agree with Chris (Gray).

It is enough confusing already (for me it is that is :). I personnaly
think that a name like "ZoPy Scripting" (w/ or w/o Method) should be used.

My 0.02c

Dany


Subject: Re: [Zope] Objection to Python Script Name


Chris Gray wrote:

 I know, I know.  It's a little late to speak up, but I think there is a
 logical objection to this name:  inconsistency with "DTML Method" and
 "ZSQL Method".

These are old, horrible and will hopefully be re-thought and given
different names ;-)

 ZIP Method (Zope Internal Python Method)
 ZoPy Method
 PyZo Method
 ZPython Method

:-(

All imply there is soem difference between the Python used by Zope and
any other python ,which isn't, and never should be, the case...

cheers,

Chris

Attachment Converted: "Z:\xrad002\eudora\Attachments\smime11.p7s"


___
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] Objection to Python Script Name

2000-11-23 Thread Andy Dawkins



 But there is a difference for the internal methods (restrictions on
 security and builtins), as well as similarities with other Zope methods
 (the way you call it from DTML or via URL).  I was thinking of the analogy
 with ZSQL.

 BTW, can you use DTML tags in Python Script the same way you use them in
 ZSQL methods?

NO!

Did you honestly need to ask that, or where you cracking a joke?

-Andy


___
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] Objection to Python Script Name

2000-11-23 Thread Chris Withers


Tom Deprez wrote:
 
 Why not just
 
 Python Script
 Perl Script

There goes the idea of reading the thread before you post ;-)

Chris (sorry, couldn't resist ;-)

___
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] DTML tags in methods(RE: [Zope] Objection to Python Script Name)

2000-11-23 Thread Chris Gray

Well, half-and-half (joking/serious, that is).  I was in a speculative
mood about the extent of the analogies among the different kind of
methods.

Actually the idea makes a little more sense to me on second thought than
it did at first blush.  Being able to build a Python Script on the fly
might have its advantages.  Is eval() allowed in restricted scripts?  If
not, DTML tags in restricted scripts might make sense.

Chris 

On Thu, 23 Nov 2000, Andy Dawkins wrote:
  BTW, can you use DTML tags in Python Script the same way you use them in
  ZSQL methods?
 
 NO!
 
 Did you honestly need to ask that, or where you cracking a joke?


___
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] Apology

2000-11-23 Thread Chris Gray

Sorry,

My intention was not to annoy Chris Withers or create a headache for him.  
Really, I'm pretty neutral about any name for any software item.  I was
just thinking out loud about consistent naming practices in an OO
environment.  It helps to talk about related things if they have related
names.  That's the main point I wanted to make.

Besides, as a Canadian citizen I'm not bound by any rulings of the Florida
Supreme Court  :-)

Now let's get back to Zoping around.

Chris


On Thu, 23 Nov 2000, Chris Withers wrote:

 To Hamish, the other Chris, and anyone else who's going to jump in on
 this.
 
 To be quite blunt, this has now been _decided_ as I understand it. So
 it's pointless to keep arguing and suggesting new and different names.
 We now _have_ a president and it's name is 'Python Script' ;-)
 
 Like it or hate it (I'm pretty neutral about it), it's here to stay, so
 lets just get on with using them and making sure they work the way we
 want them to.
 
 cheers,
 
 Chris (who, for once, won't be following up on this thread...)
 
 ___
 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] Python Script demo site

2000-11-23 Thread Chalu Kim

I can't help it. No, I won't say it. Dimples anyone?

Jason Cunliffe wrote:

  "Evan Simpson" [EMAIL PROTECTED] writes:
   A few announcements.  First, in the interests of sanity and
   getting things moving, I'm choosing the only name other than
   "Python Method" to get a positive score in the naming poll.
 
  For the sake of future votes: did you actually hold a second poll ?
  Last I heard was a call for name candidates, which I thought would be
  the basis for a poll.

 Yes ..but the Florida supreme court overruled that late yesterady afternoon
 ;-)

 - Jason

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


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



Re: [Zope] Zope Book: Catalog Aware -- Bug?

2000-11-23 Thread Chalu Kim


Did you un-comment re-index in add?

Hitting update catalog is not necessary.

Chris Gray wrote:

 I've gone through the catalog aware example in the Zope book but there was
 one small problem.  The vocabulary was not being updated until I went in
 and clicked the update catalog button.  Is this a known bug or should I
 retrace my steps to figure out where I messed up?

 Chris

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


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



Re: [Zope] [Urgent] Zope good for multiprocessor hardware

2000-11-23 Thread Chalu Kim



Shane Hathaway wrote:

  On Thu, 16 Nov 2000 Andreas Tille wrote:
 
   we intent to buy new web server hardware.  We want to run Debian GNU/Linux
   on a Sun system.  I wonder if zope could profit from a multi-processor
   architecture on such a system.

 If you mix in ZEO (now open source), yes it can.  With ZEO you can run
 independent Zope processes that all refer to the same site.  The global
 interpreter lock becomes irrelevant.

   Zope server starts several threads.  So could they be split over the
   different processors automatically, can I enforce it or is it not
   possible.
  Sorry for quoting myself but I need this information today because we
  have a meeting with some salesman.  If I can not clearly answer this
  question it might be bad for implementing zope in our institute because
  a wrong designed hardware could lead to another software than zope and
  this would be a shame.

 Then ZEO is exactly what you're looking for.


You are assuming one uses some sort of load balancing. A good question is how you
can control certain processes running on which processor?

Our experiences of ZEO have been a Zope Server and bunch of Zope clients serving
requests. We still contend that you get more out of single CPU and lots of memory
and no balancer.  Also, it depends on processor scheduling and thread modules of a
given OS. With single server, it is easier on administering your site. Well, that
is given..

KISS, Keep It Stupid Simple is what I come back to after having used all kinds of
stuff; balancer, SAN, etc.


 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 )


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



Re: [Zope] DTML source

2000-11-23 Thread Chalu Kim


Just don't put two of it into a page. You can have this problem when you use
frame sometimes.

Dany Rioux wrote:

 Hi Tom,

 There's a package for Zope called ZNavigation. I use it. It's very nice
 once you understand the basics. It's not very hard to use but it is a bit
 intimidating at first. I can't think of the link on top of my head but if
 you can't find it, get back to me, I'll do what I can to find it.

 HTH

 Dany

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom
 Deprez
 Sent: Thursday, November 23, 2000 8:39 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] DTML source

 Hi,

 Are there some sites which publish there DTML source(structure)? I'm
 particulary looking on how several navigation, menu, ... structures are
 implemented in Zope.

 On Zope.org you can see the DTML-source. Unfortunately not the
 implementation of the navigation (or the menu on the left).

 Tom.

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


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



[Zope] ZODBCDA problem?

2000-11-23 Thread Júlio Dinis Silva

Hi,

Some times my site stop responding. I have a winnt32odbc system
dsn to a sqlserver70. In my zope I have a ZOdbc_Connection using
this dsn. When my site hangs if I do a restart the python.exe process
grows to some size and then stop. I think he finished import Data.fs
and start ZServer but it just dont publish nothing.

The only solution I found was to delete the DSN restart the process
and after zope starts it now respond to gets with no problem,
then I create my DSN and voila my site is running ok.

Why do just deleting the DSN my zope starts correctly (not hanging)?
Could be the ZODBC connection object turned to some bad state on Data.fs, or 
the DSN on NT stop to connect to the sqlserver and became
"locked"?

Thanx for comments,
Júlio Dinis Silva

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.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] [Urgent] Zope good for multiprocessor hardware

2000-11-23 Thread Chalu Kim


This confirms my understanding of Zope and Python. ZEO does not solve your problem
explicitly because ZEO is more of distributed way of balancing the load. This is
another ball of wax and ,in theory, it works great. But it has its own particular
problems.

Until someone conclusively shows, our build of Zope server is based on single CPU.
We would rather spend more time making Zope more fault-tolerant through use of
journaled file system and high availability.

Our experiences of supporting large sites have pointed in this direction.

Daniel Dittmar wrote:

 I don't think Python (and therefor Zope) will profit from a
 multiprocessor as there is something known as the 'global lock' which
 prevents more than one Python thread to run at a time.

 Things look different if you're accessing a database (other than ZODB)
 because a properly written database module will release the lock while
 waiting for a reply. So Zope would use one processor and the database
 the other one(s).

 Other possibilities:

 - you have lots of static data, then these could be served by Apache
 directly (which would benefit from the additional processor)

 - you have some very expensive operations (generating GIFs from data
 etc.). Then you could implement those in a separate server.

 Andreas Tille wrote:
 
  On Thu, 16 Nov 2000 Andreas Tille wrote:
 
   we intent to buy new web server hardware.  We want to run Debian GNU/Linux
   on a Sun system.  I wonder if zope could profit from a multi-processor
   architecture on such a system.
   Zope server starts several threads.  So could they be split over the
   different processors automatically, can I enforce it or is it not
   possible.

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


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



RE: [Zope] Objection to Python Script Name

2000-11-23 Thread Dany Rioux

I know the subject is closed (or is it really???) but I have to say that a
name like Python Script or Perl Script sounds to me like any scripting not
associated with a product and that's why I have to agree with Chris Gray.

If I would see an addon telling me it's a Python Scritp I wouldn't even
think of using it and I frankly would wonder what it does on Zope. Maybe
I'd think it'd have to do with Zope a long way off...

Maybe it all stems from my newbie status but it would sounds confusing to
me.

Dany

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Tom
 Deprez
 Sent: Thursday, November 23, 2000 2:04 PM
 To: Zope Mailing List
 Subject: RE: [Zope] Objection to Python Script Name


 Why not just

 Python Script
 Perl Script

 ?

 Tom.


 At 13:17 23/11/2000 -0400, Dany Rioux wrote:
 I have to agree with Chris (Gray).
 
 It is enough confusing already (for me it is that is :). I
 personnaly
 think that a name like "ZoPy Scripting" (w/ or w/o Method)
 should be used.
 
 My 0.02c
 
 Dany
 
 
 Subject: Re: [Zope] Objection to Python Script Name
 
 
 Chris Gray wrote:
 
  I know, I know.  It's a little late to speak up, but I
 think there is a
  logical objection to this name:  inconsistency with
 "DTML Method" and
  "ZSQL Method".
 
 These are old, horrible and will hopefully be re-thought and given
 different names ;-)
 
  ZIP Method (Zope Internal Python Method)
  ZoPy Method
  PyZo Method
  ZPython Method
 
 :-(
 
 All imply there is soem difference between the Python used
 by Zope and
 any other python ,which isn't, and never should be, the case...
 
 cheers,
 
 Chris
 
 Attachment Converted: "Z:\xrad002\eudora\Attachments\smime11.p7s"
 

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




 smime.p7s


Re: [Zope] Re: is it possible to see whether any user is using a perticular zope object

2000-11-23 Thread Chalu Kim



subrahmanyan kalathur wrote:

 As you want to serialize access to your database, you might
 be interested in locking. Search the (searchable) list archive
 for "lock" and "locking" to find more information about it.
 For locking, too, my "SharedResource" can help you.

 *HOWEVER*, I follow other posters: it is probably much easier
 to switch to a different RDBMS.

 hi,

which RDBMS will u suggest.
 and for that what are the changes need to be done for my zope.
 and where can I get that.
 give the links please.


Is it important to keep transaction logs? Just avoid RDBMS without
row-leve locking. Typically, Sybase. I don't know about new one although
there is a trick of increasing page size and enabling it. Undocumented
feature. :-)

Why not build out role-based architecture with tracking include?


 thanks
 bye

 yours,

 K.H.Subrahmanyan

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


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



Re: [Zope] How to extend LoginManager:LoginUser with costum properties?

2000-11-23 Thread Chalu Kim


Develop UIs to set that for example?

pseudo thoughts

1. check getRoles() and getUserName()
2. right role or right owner
3. allow changing those things (which I have no clue how you implmented
your data; sheet provider, plugin)

Good luck.

Dirksen wrote:

 How can I do that, like setting somebody's real name or title, etc.?

 cheers
 Dirsen

 __
 Do You Yahoo!?
 Yahoo! Shopping - Thousands of Stores. Millions of Products.
 http://shopping.yahoo.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 )


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



RE: [Zope] DTML source

2000-11-23 Thread Dany Rioux

Hmmm... Good point.

I don't use frames so I never encountered that behavior/bug/feature :) but
on non-frames it does wonders. I really like the way it can be used and
it's easy to modify.

Dany

 -Original Message-
 From: Chalu Kim [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 23, 2000 3:11 PM
 To: Dany Rioux
 Cc: Tom Deprez; Zope Mailing List
 Subject: Re: [Zope] DTML source



 Just don't put two of it into a page. You can have this
 problem when you use
 frame sometimes.

 Dany Rioux wrote:

  Hi Tom,
 
  There's a package for Zope called ZNavigation. I use it.
 It's very nice
  once you understand the basics. It's not very hard to use
 but it is a bit
  intimidating at first. I can't think of the link on top
 of my head but if
  you can't find it, get back to me, I'll do what I can to find it.
 
  HTH
 
  Dany
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Tom
  Deprez
  Sent: Thursday, November 23, 2000 8:39 AM
  To: [EMAIL PROTECTED]
  Subject: [Zope] DTML source
 
  Hi,
 
  Are there some sites which publish there DTML
 source(structure)? I'm
  particulary looking on how several navigation, menu, ...
 structures are
  implemented in Zope.
 
  On Zope.org you can see the DTML-source. Unfortunately not the
  implementation of the navigation (or the menu on the left).
 
  Tom.
 
  ___
  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 )


 smime.p7s


Re: [Zope] How to get authentiedcated user name in pythong method?

2000-11-23 Thread Chalu Kim


look LoginManager.py under Products/LoginManager to look for how it is refered and 
figure it
out?

Dirksen wrote:

 How can I do that just as dtml-var "AUTHENTICATED_USER.getUserName()" in dtml? I 
don't
 want to pass AUTHENTICATED_user as a parameter. A hint please.

 cheers
 Dirksen

 __
 Do You Yahoo!?
 Yahoo! Shopping - Thousands of Stores. Millions of Products.
 http://shopping.yahoo.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 )


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



Re: [Zope] Re: Zope digest, Vol 1 #1067 - 68 msgs

2000-11-23 Thread Chalu Kim

eMarket comes to my mind... It has several features. Nothing that does
everything you need out of the box.

Little more involved now that ZPatterns is used.

Diarmaid Lynch wrote:

 I'm interested in making a non-commercial "e-bay" type application
 for selling second hand books @ my university.

 any suggestions?
 Cheers.

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


begin:vcard 
n:Kim;Chalu
tel;work:(212) 929-3087
x-mozilla-html:TRUE
url:www.egenius.com
org:eGenius, Inc  "Open-Source People"
adr:;;137 Varick Street, 6th FL;New York;New York;10013;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Navigator
end:vcard



Re: [Zope] ZCatalog: setting default to AND (not OR).

2000-11-23 Thread Andy McKay

Either a) fiddle with ZCatalog so it does or
b) add in an "and" in between search terms before the catalog a crude way
could be

_.string.join(_.string.split(_.str(query),' '), ' and ' )

And thanks for the holiday wishes but we had Thanksgiving a month ago in
Canada :)

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "The Doctor What" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 8:12 PM
Subject: Re: [Zope] ZCatalog: setting default to AND (not OR).


 I'm sorry.  I seem to have not explained myself very well.

 I want ZCatalog to use AND by default.  I think the extended
 behaviour, being able to AND and OR keywords together is fine.  I'm
 only concerned with the default behaviour (with *no* OR or AND
 keywords).

 When I first used zope.org's search engine, I couldn't figure out
 why if searched for "zcatalog siteaccess" it gave me (seemingly)
 every article on the site except the one(s) I wanted.

 It's because I expected AND to be the default (the union) of the two
 terms, not an OR list.  Frankly, I don't think OR is useful at all
 by it self.  It's usually with an AND that it's most useful.

 But that's just my humble opinion.  Oh wait, I don't do humbleso
 that's just my opinion. ;-)

 I wish everyone a happy holiday, whether it's Thanksgiving or
 "Laborday/Thanksgiving" (as NPR said Japan was having).

 Ciao!

   All good usability books (I'm going to just cite one: "Designing Web
   Usability: The Practice of Simplicity" by Jakob Nielsen
   http://www.useit.com/jakob/webusability/ ) say searches should be
   ANDed by default.
  
   ZCatalog is ORed by default.  How do I change this behavior?
  
   Ciao!
  
   --
   Room Service? Send up a larger room.
   -- Groucho Marx
  
   The Doctor What: Guru to the Gods
http://docwhat.gerf.org/
   [EMAIL PROTECTED]
KF6VNC
  

 --
 Now is the time for all good men to come to.
 -- Walt Kelly

 The Doctor What: fill in the blank http://docwhat.gerf.org/
 [EMAIL PROTECTED]   KF6VNC

 ___
 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] Objection to Python Script Name

2000-11-23 Thread Stefan H. Holek

On Thu, 23 Nov 2000, Chris Withers wrote:

 Chris Gray wrote:
  
  I know, I know.  It's a little late to speak up, but I think there is a
  logical objection to this name:  inconsistency with "DTML Method" and
  "ZSQL Method".
 
 These are old, horrible and will hopefully be re-thought and given
 different names ;-)

Ouch ;)

I had already made my point when the last poll was taking place.
Renaming the XY Methods will break all documentation, how-tos, snippets, 
whatever. After all the traffic the mismatch of the ZB and non-CVS Python
Methods has created, I really do not want to even imagine the flood of 
"My system does not have XY Methods" posts.

Hey, we are still using things like bobobase_modification_time...

Stefan


___
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] Zope with Microsoft Access

2000-11-23 Thread Chris Gray

Here's a fix.  Change the line:

dtml-call UpdateHours(REQUEST)

to:

dtml-call "UpdateHours(myval=_['myval'], mykey=_['mykey'],
sequence_item=_['sequence-item'])"

and change the name of the parameter in your ZSQL method from
sequence-item to sequence_item and change the dtml-var tag in the method
to dtml-var sequence_item.

Cheers,
Chris

On Wed, 22 Nov 2000, Mike Kelland wrote:

 What does dtml-var "0/0" actually do?  Looks like all it would do is
 divide by zero which *has* to be some kind of error.  The problem, I think,
 lies mainly in the arguments being passed to UpdateHours.  I have done a
 whole slew of tests to show that my if statement works perfectly (the
 _.string.find thing seems to return false if it finds the specified sub
 string which is odd, but works) and I've actually outputted the correct SQL
 in the DTML (ie displayed it within the page) and I've copied and pasted
 that SQL directly into a ZSQL Method and ran it on my database and that
 works fine.  However it seems to do absolutly nothing when I actually
 attempt to run everything together and call UpdateHours from the DTML
 document.  I've played a little with namespace as well, but as I said, I'm
 new to all this so there may be an error there.
 
 Thanks for everyone's insight so far, it's really helpful, and please keep
 those suggestions coming! : )
 
 Mike Kelland
 [EMAIL PROTECTED]
 
 - Original Message -
 From: "[EMAIL PROTECTED]" [EMAIL PROTECTED]
 To: "Mike Kelland" [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Wednesday, November 22, 2000 8:48 PM
 Subject: Re: [Zope] Zope with Microsoft Access
 
 
  You may not be entering UpdateHours.
 
  Try dtml-var "0/0" just before the call to UpdateHours.
  Or some other obvious way to know if your entering it.
 
  Here's how I coded the same kind of thing.
  Although I'm reading the Zope book right now to see how I should have done
  it.
  The book is good and I might just learn a better solution than 0/0 :)
 
  --- Part of addContact
  form action="insertNewContactForm" method="get"
  table
  trtdName:/tdtdinput type="text" name="name" /td/tr
  trtdTitle:/tdtdinput type="text" name="title"/td/tr
  trtdPhone:/tdtdinput type="text" name="phone"/td/tr
  /table
  tabletr
  tdinput type="submit" name="cmd" value="Insert"/td
  tdinput type="submit" name="cmd" value="Update"/td
  tdinput type="submit" name="cmd" value="Delete"/td
  tdinput type="submit" name="cmd" value="Clear"/td
  /tr/table
  /form
 
  ---insertNewContactForm
  dtml-if expr="_.len(name)  0"
   dtml-if expr="cmd=='Insert'"
 dtml-var insertNewContact
   dtml-elif expr="cmd=='Delete'"
dtml-call deleteWhere
   dtml-elif expr="cmd=='Update'"
dtml-call updateWhere
   dtml-elif expr="cmd=='Clear'"
   /dtml-if
  /dtml-if
  dtml-var "RESPONSE.redirect('addContact')"
 
  --Darrell
 
 
  ___
  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 )
 



___
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] Objection to Python Script Name

2000-11-23 Thread Jason Cunliffe

- Original Message -
From: Stefan H. Holek [EMAIL PROTECTED]
 On Thu, 23 Nov 2000, Chris Withers wrote:
 I had already made my point when the last poll was taking place.
 Renaming the XY Methods will break all documentation, how-tos, snippets,
 whatever. After all the traffic the mismatch of the ZB and non-CVS Python
 Methods has created, I really do not want to even imagine the flood of
 "My system does not have XY Methods" posts.

Stefan, Yes this is still a good point..

But pragmatically, it seems like 'Python Scripts' is now President [unless
major riots, appeals and insurgency follow..]

However, I hope to god that Someone

1. Will put post some clear glossary-dictionary explanation or translation
tables at zope.org to help Zope newbies and others relate the terminology of
'Python Scripts' vs. 'XY Methods' etc.

2. Fixes the OReilly book in some sensible manner - add highly legible note
on Page 1, update the index in useful manner to catch the differences.

3. Will explain to me 100% clearly what difference there is now between a
regular Python script and a 'Python Script' in Zope?

Thanks
- Jason

[who though 'Python ZMethods' was good]




___
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] Newbie Question

2000-11-23 Thread Dany Rioux

Hi everyone,

Simple newbie question... :)

I've made a directory called News into which I will put files named
newsXXX. X being a number from 999 to 001.

What I want to do is to tell zope to put each file into a document.
Now, here is what I figured out.

dtml-with News
  dtml-in ??? --- that's where I'm stuck. I don't know how to
iterate through a directory ... I want ALL the newsXXX displayed.
  /dtml-in
/dtml-with

How do I do that?

TIA

Dany

---.oo0O--O0oo.

Dany Rioux  UnderSoft Inc.
Business
www.dating-reviews.com
[EMAIL PROTECTED]

Personal
www.drioux.com
[EMAIL PROTECTED]

---.o00O---O00o.---


BEGIN:VCARD
VERSION:2.1
N:Rioux;Dany;;M
FN:Dany Rioux
ORG:UnderSoft Inc.
TITLE:President
TEL;WORK;VOICE:(506) 753-7515
ADR;WORK:;;78B Roseberry St;Campbellton;NB;E3N 2G7;Canada
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:78B Roseberry St=0D=0ACampbellton, NB E3N 2G7=0D=0ACanada
X-WAB-GENDER:2
BDAY:20010710
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:20001122T152751Z
END:VCARD



Re: [Zope] External Methods

2000-11-23 Thread Dieter Maurer

Phil Harris writes:
  Wouldn't it be better to pass in self?
  
  As in:
  
  def my_method(self,REQUEST=None):
'''my_method interpreting *REQUEST*.form.'''
if REQUEST is None:
  REQUEST=self.REQUEST # safety_valve in case you forget to pass in
  REQUEST
form= REQUEST.form # this is a dictionary containing form
   # variables and associated values

I would pass in "self" only if I need it (to access Zope objects
in the method).

I can trust ZPublisher that it will pass REQUEST.
Thus, there is no danger to forget passing REQUEST in this case.

And if I call the method directly from DTML, the danger
to forget passing "this()" (to be passed to 'self') is
as great as to forget passing "REQUEST". Just, that
"this()" is more nasty than "REQUEST" (requires more Zen).


Really knowledgable people can use:

   def my_method(self):
 REQUEST= self.REQUEST
 

and then call it in DTML by

dtml-call my_method


This will work, as an external method passes the folder containing
the method as the first argument, provided that

  1. the first argument is called "self"
  2. the method is called with precisely one argument less
 than the number of defined arguments.

The above "dtml-call" will result in "my_method()".
Therefore, both rules are satisfied.


However, should we really propose this?

I tend to favour the following rule:
  Whenever you call an external method from DTML,
  *ALWAYS* pass all parameters explicitely.


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 )




Re: [Zope] Newbie Question

2000-11-23 Thread Andy McKay

dtml-in "objectValues()"

--
  Andy McKay, Developer.
  ActiveState.
- Original Message - 
From: "Dany Rioux" [EMAIL PROTECTED]
To: "Zope Mailing List" [EMAIL PROTECTED]
Sent: Thursday, November 23, 2000 2:20 PM
Subject: [Zope] Newbie Question


 Hi everyone,
 
 Simple newbie question... :)
 
 I've made a directory called News into which I will put files named
 newsXXX. X being a number from 999 to 001.
 
 What I want to do is to tell zope to put each file into a document.
 Now, here is what I figured out.
 
 dtml-with News
   dtml-in ??? --- that's where I'm stuck. I don't know how to
 iterate through a directory ... I want ALL the newsXXX displayed.
   /dtml-in
 /dtml-with
 
 How do I do that?
 
 TIA
 
 Dany
 
 ---.oo0O--O0oo.
 
 Dany Rioux UnderSoft Inc.
 Business
 www.dating-reviews.com
 [EMAIL PROTECTED]
 
 Personal
 www.drioux.com
 [EMAIL PROTECTED]
 
 ---.o00O---O00o.---
 


___
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] Newbie Question

2000-11-23 Thread Chris Withers

Or even:

dtml-in objectValues

;-)

Chris

Andy McKay wrote:
 
 dtml-in "objectValues()"
 
 --
   Andy McKay, Developer.
   ActiveState.
 - Original Message -
 From: "Dany Rioux" [EMAIL PROTECTED]
 To: "Zope Mailing List" [EMAIL PROTECTED]
 Sent: Thursday, November 23, 2000 2:20 PM
 Subject: [Zope] Newbie Question
 
  Hi everyone,
 
  Simple newbie question... :)
 
  I've made a directory called News into which I will put files named
  newsXXX. X being a number from 999 to 001.
 
  What I want to do is to tell zope to put each file into a document.
  Now, here is what I figured out.
 
  dtml-with News
dtml-in ??? --- that's where I'm stuck. I don't know how to
  iterate through a directory ... I want ALL the newsXXX displayed.
/dtml-in
  /dtml-with
 
  How do I do that?
 
  TIA
 
  Dany
 
  ---.oo0O--O0oo.
 
  Dany Rioux UnderSoft Inc.
  Business
  www.dating-reviews.com
  [EMAIL PROTECTED]
 
  Personal
  www.drioux.com
  [EMAIL PROTECTED]
 
  ---.o00O---O00o.---
 
 
 ___
 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] Newbie Question

2000-11-23 Thread Andy McKay

Or even: dtml-in "objectValues(['File'])"
if this news thing is a file ;-P
--
  Andy McKay, Developer.
  ActiveState.
- Original Message - 
From: "Chris Withers" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: "Dany Rioux" [EMAIL PROTECTED]; "Zope Mailing List" [EMAIL PROTECTED]
Sent: Thursday, November 23, 2000 2:47 PM
Subject: Re: [Zope] Newbie Question


 Or even:
 
 dtml-in objectValues
 
 ;-)
 
 Chris
 
 Andy McKay wrote:
  
  dtml-in "objectValues()"
  
  --
Andy McKay, Developer.
ActiveState.
  - Original Message -
  From: "Dany Rioux" [EMAIL PROTECTED]
  To: "Zope Mailing List" [EMAIL PROTECTED]
  Sent: Thursday, November 23, 2000 2:20 PM
  Subject: [Zope] Newbie Question
  
   Hi everyone,
  
   Simple newbie question... :)
  
   I've made a directory called News into which I will put files named
   newsXXX. X being a number from 999 to 001.
  
   What I want to do is to tell zope to put each file into a document.
   Now, here is what I figured out.
  
   dtml-with News
 dtml-in ??? --- that's where I'm stuck. I don't know how to
   iterate through a directory ... I want ALL the newsXXX displayed.
 /dtml-in
   /dtml-with
  
   How do I do that?
  
   TIA
  
   Dany
  
   ---.oo0O--O0oo.
  
   Dany Rioux UnderSoft Inc.
   Business
   www.dating-reviews.com
   [EMAIL PROTECTED]
  
   Personal
   www.drioux.com
   [EMAIL PROTECTED]
  
   ---.o00O---O00o.---
  
  
  ___
  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 )
 


___
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] [Urgent] Zope good for multiprocessor hardware

2000-11-23 Thread Curtis Maloney

On Thursday 23 November 2000 18:46, Daniel Dittmar wrote:
 I don't think Python (and therefor Zope) will profit from a
 multiprocessor as there is something known as the 'global lock' which
 prevents more than one Python thread to run at a time.

 Things look different if you're accessing a database (other than ZODB)
 because a properly written database module will release the lock while
 waiting for a reply. So Zope would use one processor and the database
 the other one(s).

 Other possibilities:

 - you have lots of static data, then these could be served by Apache
 directly (which would benefit from the additional processor)

 - you have some very expensive operations (generating GIFs from data
 etc.). Then you could implement those in a separate server.


I would have to agree with this.  We are currently running Zope on a dual 
processor Sparc station.  However, also on that box is MySQL, and Apache.  
So, whilst Zope can only use one CPU, there is still plenty of CPU time for 
the DB and Apache to handle their requests.  I've not done any tests, but I 
can't see how this _wouldn't_ be faster than a single CPU.

And, of course, if you happen to be running Linux 2.4 on your system, the 
multi-threaded IP stack will definitely benefit from the extra CPUs.


Have a better one,
Curtis Maloney

___
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: a non-commercial e-bay type application

2000-11-23 Thread Red Pineseed


You can use ZOPE and the 6 XML files layed out in the XML
HANDBOOK with some other language. This is all you need for
your application. Let me once you are done.

Philip

 Message: 1
 From: "Diarmaid Lynch" [EMAIL PROTECTED]
 Organization: UUC
 To: [EMAIL PROTECTED]
 Date: Thu, 23 Nov 2000 17:47:30 GMT +
 Subject: [Zope] Re: Zope digest, Vol 1 #1067 - 68 msgs
 Reply-to: [EMAIL PROTECTED]
 
 I'm interested in making a non-commercial "e-bay" type application 
 for selling second hand books @ my university.
 
 any suggestions?
 Cheers.

___
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: [Urgent] Zope good for multiprocessor hardware (Chalu Kim)

2000-11-23 Thread Red Pineseed

Hi Chalu

I have been runing with Dual_CPU for a year without probelm.
You should be ok and gain the general muilti-cpu advantages,
in performance.



Philip

___
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] zope basics thanks

2000-11-23 Thread richard lanham


Thanks to all for the immense help.
Richard


___
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] Medusa Monitor

2000-11-23 Thread Anderson Ami

Hi People,

  Anybody knows What is Medusa Monitor ? What it do ? How can I use it ?

Thank you

hugs

___
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] ZEO

2000-11-23 Thread Anderson Ami

I´m trying install the ZEO in my Zope ( Windows NT System ) and when I use
this command :
  python ..\lib\python\ZEO\start.py -p 8800
to start the ZEO I get this :

Traceback (innermost last):
  File "..\lib\python\ZEO\start.py", line 304, in ?
if __name__=='__main__': main(sys.argv)
  File "..\lib\python\ZEO\start.py", line 286, in main
signal.signal(signal.SIGHUP, handler)
AttributeError: SIGHUP

please, can someone advice me ?

thanks
anderson


___
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] Problems with new Todo example.

2000-11-23 Thread jimbo


No problem here.  I thought I would mention it anyway.  The other parts of the app 
including links work.  I'm not sure why one link works and not the other, I'm guessing 
it's a problem between IE4 and win98.  I'm also not running the latest patches for IE.

Thanks for the good stuff.

-Jimbo

Hmmm... er.. it's just page with a picture and some text there's
nothing zopey at all... I (almost) never run IE or Windowsso
I'll dig around here and see if I can reproduce it it's wierd
though.. it's just simple html! 

Does the app part work for you?

-steve

 "jimbo" == jimbo  [EMAIL PROTECTED] writes:

jimbo When I try to access the link on the index_html page, to
jimbo see what the Zope structure looks like, it crashes IE 4 on
jimbo win98.  Any thing special going on there in
jimbo zopeStructure.html?  -Jimbo





___
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] is it possible to run a DTML method without using a browser.

2000-11-23 Thread subrahmanyan kalathur

Hi,
   To run a DTML method is there any other method than using a browser.
Or even if it is running in a browser, it should not be there in the task
bar.

I have an application which need to run for some times.
So one DTML method will be running continuously , and it will refresh it
self
after some duration. And this will continue for some times.

So Kindly suggest me what is better.

thanks
yours,

K.H.Subrahmanyan

( [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] Re: is it possible to run a DTML method without using a browser.

2000-11-23 Thread Chalu Kim


Well, using HTTP to run an application is not the right way to go. It is
because of the nature of HTTP or TCP/IP. There is such naggin thing as time
out and a notion of transaction.

Short answer is to break things into parts; initiation and completion. If a
task takes longer than N minutes, it is reasonable to say it is a
long-running task. So, a good way is to use HTTP to create an event or
initiation. Then, use a daemon to complete. You can run Zope application from
the command line.

Use RPC?  Perhaps install ZEO and use one server to work on ZODB and the
others to serve HTTP requests? This way, you have a delivery machine and a
report machine.

I can ramble on about two things; message queue and guaranteed delivery. For
enterprise (which just means stability and certainty among others), these are
two features I think Zope needs but does not have.

If you can be more specific, it would be helpful but anyway.

subrahmanyan kalathur wrote:

 Hi,
To run a DTML method is there any other method than using a browser.
 Or even if it is running in a browser, it should not be there in the task
 bar.

 I have an application which need to run for some times.
 So one DTML method will be running continuously , and it will refresh it
 self
 after some duration. And this will continue for some times.

 So Kindly suggest me what is better.

 thanks
 yours,

 K.H.Subrahmanyan

 ( [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] Re: is it possible to run a DTML method without using a browser.

2000-11-23 Thread subrahmanyan kalathur


 Use RPC?  Perhaps install ZEO and use one server to work on ZODB and ?
the
 others to serve HTTP requests? This way, you have a delivery machine and a
 report machine.

hi,
   what is RPC ? , ZEO, ZODB.
how to install it.
where to install it.

using that how to run my DTML method.

thanks

yours,

K.H.Subrahmanyan

( [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] DC request re: Objection to Python Script Name

2000-11-23 Thread Ron Bickers

On Thu, 23 Nov 2000, Chris Withers wrote:

 To Hamish, the other Chris, and anyone else who's going to jump in on
 this.
 
 To be quite blunt, this has now been _decided_ as I understand it. So
 it's pointless to keep arguing and suggesting new and different names.
 We now _have_ a president and it's name is 'Python Script' ;-)

With all due respect to everyone, this should not be considered a closed
issue.  My understanding is that there would be a vote for a name.
Skipping that in the name of getting things moving after it was offered by
Digital Creations seems to go against the open source nature of the
product.  Not to mention that the name chosen does nothing to distinguish
it from an everyday Python "script" outside of Zope, which is what sparked
the name change to begin with.  "It's not really a Python method, so let's
change the name."  Well, it's not just a "Python Script" either.  It's
Zopified.

I agree with Hamish Lawson on the renaming of methods to use a language
name with a ZMethod suffix for consistency and for all of the other
reasons he mentioned.  The argument that all documentation would be
rendered incorrect should not be an excuse for keeping bad naming
conventions.  A document describing new names vs. old names could easily
be provided in the book and in an easily accessible location on the Zope
site.  Over time the "problem" would go away and we would end up with
something that is consistent, representative, and easy to understand. On
that same note, maybe Zope *should* provide an "alias" for
bobobase_modification_time and depricate its use?  Maybe I'm pushing it on
that one since I don't know what major internal chaos it might cause, but
I hope you understand my point.  The new getId() comes to mind as an
example in the right direction.

Please, Digital Creations, keep this issue open for consideration in the
name of a better product.  *Before* the book is published is the time to
pick a naming convention that isn't confusing.  I do care about the name.
I took great care in naming my child, and though it's not quite the same
thing, I think DC should do the same.

Thanks, and I *love* Zope.

---
Ron Bickers
Logic Etc, Inc.
[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] ZopeBook - URL to SQL

2000-11-23 Thread Chris Gray

The Zope book discusses calling a ZSQL Method via a URL, saying that a
request for a URL like:

  http://localhost:8080/zsql_method/parameter/value

"will return a result object", but what I get is the index_html document
at the root, although I do get a rendered record with:

  http://localhost:8080/zsql_method/parameter/value/dtml_method

Am I supposed to be getting something like I do with:

  dtml-var expr="zsql_method(parameter=value)"

and why am I not getting it?

Cheers,
Chris


___
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-dev] ANNOUNCE: PartitionedFileStorage

2000-11-23 Thread Chris Withers

Shane Hathaway wrote:
 What couldn't be tested by my limited resources:
   - Platforms other than Linux.

I'm running this on my NT4 Workstation, not high load but I'll let you
know if anything weird happens (that isn't caused by me ;-)

I wonder if this will help with the conflict errors I've been getting?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage

2000-11-23 Thread Phil Harris

Chris,

Any hints/tips on how you did this (just to save me from having to do any
work of course ;))

Phil

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Shane Hathaway" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 23, 2000 10:31 AM
Subject: Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage


 Shane Hathaway wrote:
  What couldn't be tested by my limited resources:
- Platforms other than Linux.

 I'm running this on my NT4 Workstation, not high load but I'll let you
 know if anything weird happens (that isn't caused by me ;-)

 I wonder if this will help with the conflict errors I've been getting?

 cheers,

 Chris

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Method calls

2000-11-23 Thread Roch'e Compaan

I have a method called getModulesForProduct to which I pass a ProductID eg:
dtml-in "Products.Modules.getModulesForProduct(this(), _, ProductID)"
sort=name

If ProductID is passed on from a form variable it works fine.

If I set the ProductID through REQUEST.set:
  dtml-call "REQUEST.set('ProductID',_.str(Product.id))" ,

I get a TypeError:

Error Type: TypeError
Error Value: hasattr, argument 2: expected string, int found

I've been banging my head against this problem the whole day so help would
really be appreciated.

Roché






___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] PartitionedFileStorage Fun @;-S

2000-11-23 Thread Shane Hathaway

On Thu, 23 Nov 2000, Chris Withers wrote:

 Chris Withers wrote:
  
   Error Type: AttributeError
  Error Value: _tstatus
 
 Problem found...
 
 Shane, you did your stuff on version 1.48 of FileStorage.py, while Zope
 2.2.x uses version 1.37.12.8 of SileStorage.py
 
 Sadly, it appears the two are incompatible :-(

It would appear so.  I didn't realize until now that there are significant
new features for 2.3.x FileStorage.

So a new qualification: you have to be using Zope CVS in order to try out
this version.

 Is it just me, or should plugging in a new type of storage not feel
 quite as hacky as this?

Some things are just hacky by nature. :-)

BTW this *won't* reduce any conflict errors.

Shane


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Method calls

2000-11-23 Thread Steve Spicklemire


Hi Roch,

   The whole traceback would be helpful.. one clue:

Error Type: TypeError
Error Value: hasattr, argument 2: expected string, int found

'hasattr' is the function that is complaining do you use
it in your code? 

-steve
 "Roch'e" == Roch'e Compaan [EMAIL PROTECTED] writes:

Roch'e I have a method called getModulesForProduct to which I
Roch'e pass a ProductID eg: dtml-in
Roch'e "Products.Modules.getModulesForProduct(this(), _,
Roch'e ProductID)" sort=name

Roch'e If ProductID is passed on from a form variable it works
Roch'e fine.

Roch'e If I set the ProductID through REQUEST.set: dtml-call
Roch'e "REQUEST.set('ProductID',_.str(Product.id))" ,

Roch'e I get a TypeError:

Roch'e Error Type: TypeError Error Value: hasattr, argument 2:
Roch'e expected string, int found

Roch'e I've been banging my head against this problem the whole
Roch'e day so help would really be appreciated.

Roch'e Roché






Roch'e ___ Zope-Dev
Roch'e maillist - [EMAIL PROTECTED]
Roch'e http://lists.zope.org/mailman/listinfo/zope-dev ** No
Roch'e cross posts or HTML encoding!  ** (Related lists -
Roch'e http://lists.zope.org/mailman/listinfo/zope-announce
Roch'e http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




RE: [Zope-dev] Method calls

2000-11-23 Thread Roch'e Compaan



OK.. it's the 'in' tag that's causing the problem. Why not try:

 dtml-var "experession that's causing problem with in" html_quote

 and see what 'in' is choking on...

It's choking on a list of instances.  This is what is returned when I "var"
the expression:

[Module instance at 8b97660, Module instance at 88f04b0, Module
instance at 8994730, Module instance at 8b46a08]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Method calls

2000-11-23 Thread Steve Spicklemire


Hmm... OK ... next question... what are you doing *in* the 'in' tag?

Somehow you're trying to access an object contained in an
object manager (one of your modules?) and you're using an
'int' rather than a string as an id. Can you post the code?

thanks,
-steve

 "Roch'e" == Roch'e Compaan [EMAIL PROTECTED] writes:

 OK.. it's the 'in' tag that's causing the problem. Why not try:
 
 dtml-var "experession that's causing problem with in"
 html_quote
 
 and see what 'in' is choking on...

Roch'e It's choking on a list of instances.  This is what is
Roch'e returned when I "var" the expression:

Roch'e [Module instance at 8b97660, Module instance at
Roch'e 88f04b0, Module instance at 8994730, Module instance
Roch'e at 8b46a08]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )