[Zope] Currency formatting

2001-01-09 Thread Menard . Jean-Francois

I would like to output currency as: 1 300 459,63$
I looked at the documention, and I cannot figure how to:

- Place spaces instead of commas as thousand separators.
- Replace the dot by a comma for the decimals.

Any clues?

Jean-Franois Mnard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e tage
  Montral, Qu. H2L 4P5


___
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] Currency formatting

2001-01-09 Thread Menard . Jean-Francois

Tanks!  Work great!


-Message d'origine-
De : Andy McKay [mailto:[EMAIL PROTECTED]]
Envoy : mardi 9 janvier 2001 14:31
 : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : Re: [Zope] Currency formatting


From the quick hack department:

1: hack the source: DT_Var line 375... or
2: Write a bit DTML method that is along the lines of:

return_money:
dtml-var value thousands_commas fmt=dollars-and-cents

then a DTML Document that has wher value is the value you want:
dtml-call "REQUEST.set('v', return_money(_.None, _, value=value))"
dtml-call "REQUEST.set('v', _.string.replace(v, ',', ' '))"
dtml-call "REQUEST.set('v', _.string.replace(v, '.', ','))"
dtml-var v

3: This could of course using PythonScript much better

--
  Andy McKay.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 09, 2001 10:41 AM
Subject: [Zope] Currency formatting


 I would like to output currency as: 1 300 459,63$
 I looked at the documention, and I cannot figure how to:

 - Place spaces instead of commas as thousand separators.
 - Replace the dot by a comma for the decimals.

 Any clues?

 Jean-Franois Mnard
 Intranet DPAS
 Pratiques d'affaires et orientations
 *(514) 840-3000  poste 3939
 *  (514) 840-5585
 *  [EMAIL PROTECTED]
 * 855 Ste-Catherine est, 6e tage
   Montral, Qu. H2L 4P5


 ___
 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] filename extension

2001-01-08 Thread Menard . Jean-Francois

Untested:

dtml-in "_['fac_browse_method.sql'](id=10)"

Does it work?

-Message d'origine-
De : Olaf Zanger [mailto:[EMAIL PROTECTED]]
Envoy : lundi 8 janvier 2001 08:41
 : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : [Zope] filename extension


hi there,

some information on zope.org says that in the early future ftp access
should be possible not only to dtml-methods, -documents but also to
Zsql-methods.

to be future proof (and windows software proof) we'd like to have .xxx
extensions for all our methods (fac_browse_method.sql that lovely
windows understands what programm to start [textpad for sql ...])

unfortuanetly if called like dtml-in
expr="fac_browse_method.sql(id=10)" zope gernerates an error.

if there is a solution: how?
or if not: does anything needs to be changed in the file handling of
zope 

thanks

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.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] Microsoft IIS 4.0 and Zope

2000-12-08 Thread Menard . Jean-Francois

Hi Petter,

I have the same problem.  Could you tell me if you find a way?  I
hope someone on this list have an answer!



-Message d'origine-
De : Petter Enholm [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 8 décembre 2000 07:53
À : [EMAIL PROTECTED]
Objet : [Zope] Microsoft IIS 4.0 and Zope


Hi,

This may be more of a Microsoft IIS questions than Zope question, but I give
it a shot!

I have installed Zope (on port 8080) on a Windows NT 4.0 server with IIS
4.0, followed to Howto that explains how to set up PCGI with IIS, and all
works very well. I can access Zope through
http://localhost/scripts/zope.pcgi

Next step: I want to access the Zope site through a given DNS name, f eks
www.mydomain.com. How can I do this with IIS 4.0? I find no way to redirect
a virtual host and at the same time rewrite the URL so that the user gets
http://www.mydomain.com in the browser, not .../scripts/zope.pcgi.

Anybody out there with knowledge on this issue?

Best regards

Petter Enholm
Snapper as


___
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] manage_main in python product

2000-12-05 Thread Menard . Jean-Francois

I'm developping a python simple product. I want to define a tab in the
management interface as the manage_main of a subobject in it.  Is it
possible, and if it is, how can I do that?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] come see new.zope.org

2000-11-27 Thread Menard . Jean-Francois

It is very, VERY quick!  Wow...

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


-Message d'origine-
De : ethan mindlace fremen [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 27 novembre 2000 14:51
À : [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]
Objet : [Zope] come see new.zope.org


Zopatistas!

The cluster is up and running.  Please go pound it to see if it breaks:

http://new.zope.org

That lovely color is to remind you that you are *not* at the live site.  
Any changes you make here *will* be lost.

If you have any questions or comments, please email [EMAIL PROTECTED]

A full report on how we did it will be appearing soon after the site 
goes live.

ethan mindlace fremen  
Zopatista Community Liason



___
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] how to display contents of a folder?

2000-11-24 Thread Menard . Jean-Francois

Hi Andrei,

  You can try:

dtml-with MyFolder
dtml-in "objectValues('DTML Document')"
  stuff
/dtml-in
/dtml-with

Good luck!
Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


-Message d'origine-
De : Andrei Belitski [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 24 novembre 2000 09:16
À : [EMAIL PROTECTED]
Objet : [Zope] how to display contents of a folder?


Hi
I would like to display contnent of a zope folder on my HTML-page
preferrebly only the DTML Documents of a particular folder, how can I do
it?
Thank you very much in advance
Andrei

___
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] Problem with 2.2.4b1

2000-11-24 Thread Menard . Jean-Francois

I installed 2.2.4b1 over 2.2.3, and everything seems to work fine, but, when
I IE5.5 to manage my sites, I loose some icons and graphics (not all!).
But, if I clear my cache, The icons reappears, but only for a while!  Am I
the only only experiencing this problem?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


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




[Zope] How reindex the Catalog programatically

2000-11-15 Thread Menard . Jean-Francois

To work around my problem with my Catalog reindexing (see previous
message...), I would like to let my users manually reindex the Catalog, as
the "Update Catalog" button in the "Cataloged Objects" do.  When I use this
button, my Catalog get fixed and work again.  

So I looked at the method used by the button source (manage_catalogReindex),
and created a method calling this function.  When I invoke this method,
there is no error, but the Catalog still doesn't work!

Any ideas ?$%%?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] Catalog sort-on parameter

2000-11-15 Thread Menard . Jean-Francois

I'm trying to use the 'sort-on' parameter in a Catalog search, and it
doesn't work.  I use Zope 2.2.2.  

I read in pasts messages that the 'sort-on' feature was broken, is it still
?

I'm not sure if I use the right syntax so could someone post an sample code
here please ?

Thanks!

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


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




[Zope] ZCatalog problem on insert

2000-11-14 Thread Menard . Jean-Francois

I'm experiencing some problems with the zCatalog.  I made some customized
forms for inserting data.  Yes, I use the ...reindex_object.  And Yes, I
use ...manage_addProduct.

I can see the objects in the Catalog, but my search results are always
empty!  If I update the Catalog manually (in the "Cataloged Objects" tab),
everything is OK, until I insert data again.

It only happens when I insert data, not when I modify or delete an object.
So, as soon as I insert objects via my custom form, my Catalog search stop
working ! 

Am I the only one experiencing this problem ?

I use Catalog in a lot of sites, it's the first time I have such problem.  

Any clue would be very appreciated...  I'm supposed to demo the site
tomorrow morning... :\

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] Advanced search in ZCatalog

2000-11-13 Thread Menard . Jean-Francois

Usually, I use an external method returning a string containing the text
from all the fields I want to search on, and I index THAT field in the
Catalog.  It works great!

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


-Message d'origine-
De : daniel dias [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 13 novembre 2000 12:51
À : ZopeList
Objet : [Zope] Advanced search in ZCatalog


Hi!
I´m trying to discover how to make a ZCatalog perform
queries on several "fields" (as in the property
sheets) of the cataloged objects, but with no sucess.
I´d like to execute queries using a "or" chain of
tokens, to be applied on several fields of the
cataloged objects, given that each field has a
priority in the search results.

Any ideas on how to implement this? I´ve tried several
approaches with absolutely no sucess, and I´m pretty
stuck, so any help will be welcome.

Thanks,

Daniel Dias



Do You Yahoo!?
Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres!
http://mail.yahoo.com.br

___
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] Id ZopeStudio Dead?

2000-11-03 Thread Menard . Jean-Francois

I just looked at the Zope Studio last snapshot release date, and it is july
18.

Is the Zope Studio Dead?  Is there a projected alternative?


Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] Cookie problem with IE5, 5.5, ...

2000-10-24 Thread Menard . Jean-Francois

 I developped a toggle button to let the users hide/show the menus.
 
 I use a cookie to store the current value.  The code I use is:
 
 dtml-if "State=='ON'"
   dtml-call "RESPONSE.setCookie('affmenu', '1')" 
 dtml-else
   dtml-call "RESPONSE.setCookie('affmenu', '0')" 
 /dtml-if
 /head
 dtml-call "RESPONSE.redirect(Retour)"
 
 in a dtml method.  It works great in netscape, but not in IE 4, 5 or 5.5.
 Why???
 
 I know I could use a session product, but I'm worried about session
 expiration.  Could I set one of these products to expirate ***only*** when
 the browser is closed?
 
 And, why a session variable doesn't exist?  It's the ONLY thing I miss
 from ASP...
 
 Jean-François Ménard
 Intranet DPAS
 Pratiques d'affaires et orientations
 *(514) 840-3000  poste 3939
 *  (514) 840-5585
 *  [EMAIL PROTECTED]
 * 855 Ste-Catherine est, 6e étage
   Montréal, Qué. H2L 4P5
 

___
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] Cookie problem with IE5, 5.5, ...

2000-10-23 Thread Menard . Jean-Francois

I developped a toggle button to let the users hide/show the menus.

I use a cookie to store the current value.  The code I use is:

dtml-if "State=='ON'"
  dtml-call "RESPONSE.setCookie('affmenu', '1')" 
dtml-else
  dtml-call "RESPONSE.setCookie('affmenu', '0')" 
/dtml-if
/head
dtml-call "RESPONSE.redirect(Retour)"

in a dtml method.  It works great in netscape, but not in IE 4, 5 or 5.5.
Why???

I know I could use a session product, but I'm worried about session
expiration.  Could I set one of these products to expirate ***only*** when
the browser is closed?

And, why a session variable doesn't exist?  It's the ONLY thing I miss from
ASP...

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] Catalog AND Zieve

2000-09-01 Thread Menard . Jean-Francois

I'm trying to use the Zieve product with my Catalog to sort the results on a
variable key.  Since the Catalog do not return the actual objects, how can I
use Zieve with it?  

Maybe an external method returning the object list?  If so, how
shold I do that?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


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




[Zope] zCatalog and subobjects

2000-08-17 Thread Menard . Jean-Francois

I'm trying to search a zCatalog to find all the objects containing a certain
type of sub-object.  

Right now, I use a dtml-if inside the result loop, but the result count is
obviously wrong.

There must be a better way to do this, right?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


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




[Zope] zCatalog and subobjects

2000-08-17 Thread Menard . Jean-Francois

(Post #2)
I'm trying to search a zCatalog to find all the objects containing a certain
type of sub-object.  

Right now, I use a dtml-if inside the result loop, but the result count is
obviously wrong.

There must be a better way to do this, right?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] Bug zClass subobjects?

2000-08-16 Thread Menard . Jean-Francois

(Second post)

(I speak french, sorry for my english!)
I created a ZClass, zRow.  This class can contain other ZClass: zField_Text,
zField_Date, etc.
This let me define the columns contained in a zRow.
I then defined a Class zTable, wich contains zRows.

Question:

-  In my manage tabs, I needed to have a tab "Define columns".  To
achieve this, I inserted a ZRow Instance (with id "Definition") in my zTable
product definition, and a method called "Define_Columns", containing:

dtml-with Definition
  dtml-var manage_main
/dtml-with

And I defined a view "Define Columns" pointing to that method.  When
i click on the "Define Columns", I can see the manage screen of the instance
"Definition", that's what I wanted.

But when I try to add a zField to "Definition" instance, the zField
instance is created at the zTable level,
not IN "Definition" instance!  All the classes are derived from on
CatalogAware, ObjectManager.

I HAVE to deliver the product for the end of the week, so PLEASE
help me!


Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] Managing subobjects

2000-08-15 Thread Menard . Jean-Francois

(I speak frech, sorry for my english!)
I created a ZClass, zRow.  This class can contain other ZClass: zField_Text,
zField_Date, etc.
This let me define the columns contained in a zRow.
I then defined a Class zTable, wich contains zRows.

Question:

-  In my manage tabs, I needed a have a tab "Define columns".  Do
achieve this, I inserted a ZRow Instace (with id Definition) in my zTable
product definition, and a method called Define_Columns, containing:

dtml-with Definition
  dtml-var manage_main
/dtml-with

And I defined a view "Define Columns" pointing to that method.  When
i click on the "Define Columns", I can see the manage screen of the instance
"Definition", that's what I wantwd.

But when Add a zField, the instance is create in the zTable level,
not IN Definition instance!  All the classes are Based on CatalogAware,
ObjectManager.

Any ideas how to fix that?  Any sugestion how I could implement
this?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


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