[Zope] Can't import objects ... is transparent folder still the reason ?

2000-12-24 Thread Didier Georgieff

I have a problem importing objects (Yihaw Folder derived from Object Manager) on 
2.2.4 and Transparent Folder (see traceback at the end).

Some months ago i had some similar problem with the first/removed Transparent 
Folder version.
Is this same problem still there on Transparent Folder 0.3, or do i have to search the 
problem elsewhere for a workaround ?

Any idea about a temporary workaround for importing such objects ? Because it will be 
quite difficult to transfer things from developpement server to production server.
This is what Shane respond to this earlier problem. I was not able to see if TP0.3 is 
now ObjectManager safe or not.

> The TransparentFolders product patches ObjectManager so that objects
> in transparent folders are searched.  Unfortunately, the patch causes
> the pickling mechanism to fail when ZODB pickles a class definition
> derived from ObjectManager.  
> The
> reason it fails is because the pickler doesn't recognize the new
> __getattr__ method as a Python Method and tries to pickle it, which is
> not possible.  There is actually a way to solve that bug by patching
> more Zope source, but I don't think that's the right solution.

> The better solution will involve the same method SiteAccess uses to
> change traversal behavior. Once SiteAccess has
> settled, it should be easy to create a much improved
> TransparentFolders.  But for now, I have removed TransparentFolders
> from the available products.

This is the new traceback :

{HYPERLINK "http://www.zope.org/Credits"}{PRIVATE "TYPE=PICT;ALT=Powered by 
Zope"}{HYPERLINK "http://www.zope.org/Credits"}Traceback (innermost last):
  File C:\Zope\Portal224\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File C:\Zope\Portal224\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Zope\Portal224\lib\python\Zope\__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File C:\Zope\Portal224\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Zope\Portal224\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: manage_importObject)
  File C:\Zope\Portal224\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: manage_importObject)
  File C:\Zope\Portal224\lib\python\OFS\ObjectManager.py, line 
537, in manage_importObject
(Object: ApplicationDefaultPermissions)
  File C:\Zope\Portal224\lib\python\OFS\CopySupport.py, line 
406, in _verifyObjectPaste
(Object: ApplicationDefaultPermissions)
Copy Error: (see above)


Regards.
Didier.

___
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] première version de l'interface francisée de Zope

2000-12-23 Thread Didier Georgieff

Bonjour,

* Vous pouver télécharger une première version de l'interface francisée de 
Zope (actuellement 2.2.4) à l'adresse suivante :

http://zdp.zope.org/projects/zi18n/zzlocale/zzlocale_fr.tar.gz

* il vous faut installer le produit zzlocale :

http://www.zope.org/Members/yemartin/zzLocale

* Créer un répertoire lib/python/locales sous votre racine de Zope et 
décompacter zzlocale_fr.tar.gz dans ce répertoire.

Vous devez alors avoir :

lib/python/locales/fr/buttons
lib/python/locales/fr/tabs
lib/python/locales/fr/AccessControl/access.dtml
lib/python/locales/fr/AccessControl/addUser.dtml
[...]

* Dans le Control_Panel (oops Paneau_de_controle) vous 
avez un onglet de gestion de la langue (fixe ou selon le 
navigateur)

Il reste pas mal de coquilles, de maladresses de rédaction, et 
de manque de cohérence. N'hésitez pas a faire part de vos 
remarques et corrections.

PS : Rémy pour le prochain tar.gz, est il possible d'intégrer le chemin 
lib/python/locales/fr directement ?

Didier.

___
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] pb : transparent folder 0.3 and ZSQL methods

2000-12-22 Thread Didier Georgieff

Hello,

I have a (regular) folder on root level with ZSQL methods.
I have a transparent folder on root level with a ZMySQLdatabase connection

When i manage any of the ZSQL method, i get that :
Warning: There are no SQL database connections. You need to add a Zope 
SQL database connection before you can use an Zope SQL Method
BUT test tab works fine, and overall, the ZSQL methods called thru DTML are 
still working (it didn't broke my application)

When i put a ZMysqldatabase connection in the folder with ZSQL methods, 
suddently, managing the ZSQLmethod brings all the right informations (but with the 
"new" ZmySQLdatabase connection).

So, as all works fine, except the "edit" tab on ZSQLMethod, I tried to look at the 
"SQLConnectionIDs" to see if i can workaround it but this is (much) over my python 
knowledge so 
Is it a problem in TP 0.3 or in ZSQL methods ? Any idea ?

I'm on Linux, 2.2.4, siteroot, the 3 latest hotfix, and transparent Folder 0.3
ZMysqlDA 1.2.0

PS : i don't know if the problem was there on TP 0.2 because i didn't touched the 
ZSQL methods for a while (before reorganizing with the Tranparent Folder, which is a 
great great great (tm) product.

Regards.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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: I guess i found a new ZCatalog problem (on meta-type) ??

2000-12-20 Thread Didier Georgieff

On 20 Dec 2000, at 20:13, Didier Georgieff <[EMAIL PROTECTED]> ([EMAIL PROTECTED]) 
wrote:

> I'm on 2.2.4 with the 3 latest Hotfix, Transparent Folder 0.3 and your 
> catalog path.

Well, i mean Petrilli's latest ZCatalog PATCH (and not path, sorry)
Didier.

___
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] I guess i found a new ZCatalog problem (on meta-type) ??

2000-12-20 Thread Didier Georgieff

Hello,

* I have a regular Catalog.
* It is used by Yihaw (ZClass product, CatalogAware, with contained 
ZClasses).
* I done the normalize_paths (0 updated)
* I can browse the catalog without any problem and acces the objects

*** method testCatalog1
OUTSIDE

 INSIDE


produce only :
OUTSIDE

while 

*** method testCatalog2
OUTSIDE

 INSIDE


produce A LOT of INSIDE


I'm on 2.2.4 with the 3 latest Hotfix, Transparent Folder 0.3 and your 
catalog path.

Regards
Didier.


___
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] read_raw() not allowed below root ?

2000-12-20 Thread Didier Georgieff

Hello,

I have a new problem wich i suspect is related with the weird things i didn't solved 
yet. I 
still don't found if it's a misunderstanding about new 2.2 security (like setting a 
local 
role ONLY if you have this local role) or a real problem.

I have a view_code method (stolen from Yihaw) wich basically look at code, properties, 
folders and print it.

It was working like a charm under 2.1.6.

Now on 2.2.4 (with the 12-08, 12-15a and 12-18 hotfix) and TransparentFolder 0.3:
 
* I don't have access to read-raw() (Unauthorized traceback below) , even if i'm 
manager (and even on folders without local roles) and even with manager as proxy role 
for this method.
* ownership is implicit
* and i deleted the remaining "superuser" having a local role on this method.

Until i understand what is going on (a bug or a misunderstanding), i guess i'll 
(gently ;-) 
flood the list.
I'm deeply sorry to post again, but i found no information on the archive (read_raw), 
the 
explanations on the new security model didn't ring a bell, so 

Thanks for any help or tip.

Unauthorized
You are not authorized to access read_raw. 
Traceback (innermost last):
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 222, 
in publish_module
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 187, 
in publish
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 171, 
in publish
  File /zope/2-2-2/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
(Object: view_code)
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 112, 
in call_object
(Object: view_code)
  File /zope/2-2-2/lib/python/OFS/DTMLMethod.py, line 172, in 
__call__
(Object: view_code)
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_String.py, 
line 528, in __call__
(Object: view_code)
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_In.py, line 
691, in renderwob
(Object: objectItems('DTML Method'))
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_Var.py, line 
278, in render
(Object: read_raw())
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_Util.py, 
line 331, in eval
(Object: read_raw())
(Info: read_raw)
  File /zope/2-2-2/lib/python/OFS/DTMLMethod.py, line 194, in 
validate
(Object: view_code)
  File /zope/2-2-
2/lib/python/AccessControl/SecurityManager.py, line 139, in 
validate
  File /zope/2-2-
2/lib/python/AccessControl/ZopeSecurityPolicy.py, line 183, in 
validate
Unauthorized: (see above)


--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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 2.2.4 security/role bug ?? (ZCatalog related ??)

2000-12-18 Thread Didier Georgieff

Brian,

Le 18 Dec 2000, à 11:54, Brian Lloyd a écrit :

> Note that 'Manager' does not automatically give you "full 
> authorization". It is only a convention that Manager often 
> has all permissions. 
> This is important, because in Zope 2.2, you can't give a 
> proxy role unless you have *that role* yourself. 

OK. So if i understand well, i need to create a user with manager AND 
ALL the roles so i'll be able to set any proxy role with that user.
Thanks for the explanation.

So i guess my other weird problem with not accessing objects via the 
catalog and accessing them directly has something to do with some new 
security feature in 2.2 i didn't understood ?
But i can't figure wich one, even in re-reading carefully the zope book.

Anyway, thanks for your clear explanation.

Regards.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] new 2.2.4 security/role bug ?? (ZCatalog related ??)

2000-12-18 Thread Didier Georgieff

Hello,

I'm experimenting some really weird and annoying things since i upgraded 
to 2.2.4 with 12-08 and even with 12-15a hotfix (seems to be ok in 2.2.2) 

For all objects, I can access directly (URL) with no problem (according to 
the roles and the local roles. This is ok).

For some of those objects (seems to be all the one i've added in 2.2.4 in 
folders with local roles) I can't (exeption raise) access the objects while in 
the context of the catalog (those objects are Catalog Aware via Yihaw 
product).

I epurate the method until this minimal test method who still raise the 
exeption 


  

  


I have a workaround with a  but i miss all the objects, while they 
are fully reachable directly via their URL

The problems seems to be on objects with local roles (anonymous has no 
view, no access content and other roles have this autorisations via local 
roles).

The second weird thing (should help for a diagnostic) is :

While i have  "manager" role (i can do whatever i want on the manage 
interface), i tried to give a proxy role to my test method, to see if i could 
investigate further. 
And trying to change the proxy role raised an execption, despite the fact i 
have manager role with full autorisations.

This last thing makes me think is an acquisition/role/security bug.

Any idea/solution because we offcially open tomorrow morning, and i'm in 
a deep well embarassed ;-))

===> This is the FIRST traceback.
Zope Error

 Zope has encountered an error while publishing this resource. 

 Unauthorized

 You are not authorized to access title_or_id. 

 Traceback (innermost last):
   File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/Publish.py, line 222, in publish_module
   File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/Publish.py, line 187, in publish
   File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/Publish.py, line 171, in publish
   File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/mapply.py, line 160, in mapply
 (Object: test_latest)
   File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/Publish.py, line 112, in call_object
 (Object: test_latest)
   File /home/georgieff/Zope-2.2.2-
src/lib/python/OFS/DTMLMethod.py, line 172, in __call__
 (Object: test_latest)
   File /home/georgieff/Zope-2.2.2-
src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__
 (Object: test_latest)
   File /home/georgieff/Zope-2.2.2-
src/lib/python/DocumentTemplate/DT_In.py, line 611, in renderwb
 (Object: Catalog(bobobase_modification_time=ZopeTime()-14,
   bobobase_modification_time_usage='range:min',
   sort_on='bobobase_modification_time',
   sort_order='reverse'))
   File /home/georgieff/Zope-2.2.2-
src/lib/python/DocumentTemplate/DT_With.py, line 146, in render
 (Object: Catalog.getobject(data_record_id_))
   File /home/georgieff/Zope-2.2.2-
src/lib/python/OFS/DTMLMethod.py, line 194, in validate
 (Object: test_latest)
   File /home/georgieff/Zope-2.2.2-
src/lib/python/AccessControl/SecurityManager.py, line 139, in validate
   File /home/georgieff/Zope-2.2.2-
src/lib/python/AccessControl/ZopeSecurityPolicy.py, line 209, in validate
 Unauthorized: (see above)


===> This is the SECOND traceback.

Zope Error

  Zope has encountered an error while publishing this resource. 

  Forbidden

  You are not authorized to change test_latest because you do not have 
proxy roles. 

  Traceback (innermost last):
File /home/georgieff/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 222, in publish_module
File /home/georgieff/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 187, in publish
File /home/georgieff/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 
221, in zpublisher_exception_hook
  (Object: test_latest)
File /home/georgieff/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 171, in publish
File /home/georgieff/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, 
line 160, in mapply
  (Object: manage_proxy)
File /home/georgieff/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 112, in call_object
  (Object: manage_proxy)
File /home/georgieff/Zope-2.2.2-src/lib/python/OFS/DTMLMethod.py, 
line 278, in manage_proxy
  (Object: test_latest)
File /home/georgieff/Zope-2.2.2-src/lib/python/OFS/DTMLMethod.py, 
line 271, in _validateProxy
  (Object: test_latest)
  Forbidden: (see above)


--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : h

[Zope] Response.redirect problem **sometimes** on netscape

2000-12-13 Thread Didier Georgieff

Hello,

I'm doing a form for deleting objects within our site design (no manage 
interface).

All goes well, with a FORM

. [ we create the ids:list here]
  

myDelete method does also the redirect on the calling page.


  



In IE5 works fine, but NO REDIRECT on Netscape 4.51 (blank page and 
the post data still there), while the RESPONSE.redirect **works** on other 
occasions with N4.51.

Is it a known problem, or a problem calling manage_delObjects bfore 
redirection ?
If not, seems like a bug somewhere in the headers ?

Thanks in advance.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] strange ZClass method problem

2000-12-08 Thread Didier Georgieff

Hello,

* I have 2 Folders (Yihaw ZClass instances)
* both folders have News objects (cataloged)

I put the news on the front page via (this is taken from Yihaw, simplified for the 
demonstation, but still have the problem) this code




  - 
 




Problem is that some news items are OK and some raise an exeption on  told to be missing (!!??)

It puzzle me because all news items are same ZClass instance and can be accesed 
normally via the zope interface, or directly, works well on view etc ...

An other strange thing is when i supress the  option, an authentication 
windows show up and gives an other traceback (see below).

So when i put the  option, to the  it works well except 
nothing shows on the  , and the right  is 
correctly 
shown for ALL the news item (including the b"bad" ones.

In the context of both Yihaw Folder i have access content, view authorisation and view 
(via a local role).

Only difference is :
* in the folder with problem
access content, view authorisation, view are given by hand at this level (without 
permission acquisition for those 3 for anonymous restriction)
* in the folder without problem
it's acquired from above (no anonymoiyus restriction)

It happens even when i'm "manager".

So i suspect some strange security problem, or more sure something i didn't 
understood on the acquisition/security machinery.
And I'm not sure if it has relation with the fact those items are custom ZClass 
instances

I hope this was clear and not too cryptic.

The 2 traceback :

1- WITHOUT html_quote

Unauthorized
You are not authorized to access title_or_id. 
Traceback (innermost last):
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 222, 
in publish_module
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 187, 
in publish
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 171, 
in publish
  File /zope/2-2-2/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
(Object: yihaw_test1)
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 112, 
in call_object
(Object: yihaw_test1)
  File /zope/2-2-2/lib/python/OFS/DTMLMethod.py, line 172, in 
__call__
(Object: yihaw_test1)
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_String.py, 
line 528, in __call__
(Object: yihaw_test1)
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_In.py, line 
611, in renderwb
(Object: Catalog(meta_type='Yihaw News Item',
  sort_on='bobobase_modification_time',
  sort_order='reverse'))
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_With.py, 
line 146, in render
(Object: Catalog.getobject(data_record_id_))
  File /zope/2-2-2/lib/python/OFS/DTMLMethod.py, line 194, in 
validate
(Object: yihaw_test1)
  File /zope/2-2-
2/lib/python/AccessControl/SecurityManager.py, line 139, in 
validate
  File /zope/2-2-
2/lib/python/AccessControl/ZopeSecurityPolicy.py, line 209, in 
validate
Unauthorized: (see above)


2 - WITH html_quote
KeyError
Sorry, a Zope error occurred.

Traceback (innermost last):
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 222, 
in publish_module
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 187, 
in publish
  File /zope/2-2-2/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 171, 
in publish
  File /zope/2-2-2/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
(Object: yihaw_test1)
  File /zope/2-2-2/lib/python/ZPublisher/Publish.py, line 112, 
in call_object
(Object: yihaw_test1)
  File /zope/2-2-2/lib/python/OFS/DTMLMethod.py, line 172, in 
__call__
(Object: yihaw_test1)
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_String.py, 
line 528, in __call__
(Object: yihaw_test1)
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_In.py, line 
611, in renderwb
(Object: Catalog(meta_type='Yihaw News Item',
  sort_on='bobobase_modification_time',
  sort_order='reverse'))
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_With.py, 
line 146, in render
(Object: Catalog.getobject(data_record_id_))
  File /zope/2-2-2/lib/python/DocumentTemplate/DT_Var.py, line 
276, in render
(Object: title_or_id)
KeyError: title_or_id

--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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: Strange Catalog problem.

2000-12-08 Thread Didier Georgieff

Le 8 Dec 2000, à 11:44, Søren Roug a écrit :

> I think you should do "Find Items to ZCatalog" and do a clean index of the
> whole website. 

Yes. But problem is to get the *whole* objects or nothing but can't get 
only the Yihaw objects and subclassed objects (see below).
I guess it's a ZCatalog problem (or a feature ?)

> Apparently "Update Catalog" doesn't touch the old invalid
> pointers in the index.

Yes. Is it a feature or a bug ? Because this causes a lot of trouble when 
you want to transfer a 2.1.6 to 2.2.x site (because of the lack of subclass 
objets proposal when you want to do a new clean index..

> Also, for Yihaw you must find object of all types otherwise it won't catalog
> the subclassed objects!

That's weird. It only shows the main Zclass. So doing that the catalog 
ends up with thousands of other objects !

Is this also a feature or a bug ?

Thanks for the help.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] Strange Catalog problem.

2000-12-08 Thread Didier Georgieff

Hello,

I'm using a modified (french, adding programatically and new classes but 
the ground features are untouched) Yihaw on 2.2.4 (linux).

I've got a strange behaviours (YihawNews boxes don't show the new items) 
until i found that "old" (before upgrading to 2.2.2 + 2.2.4 update) items on 
the catalog don't start with "/" and the new ones does start with "/".

Reindexing gives me the same 2 categories and change nothing.

I'm puzzled with :
* what is the "correct behaviour / or no / ?
* why reindexing doesn't homogenize the / ?

The "new" items are now added programatically and the "old" ones where 
done thru Zope interface.

And sometimes i still get a "problem uncataloging before catalogging" 
message on the Zope console.

Am i missing some important change ?
Thanks in advance.


--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] ZClass report

2000-12-07 Thread Didier Georgieff

Hello,

I have some scripts for describing and generating a report about Zclass, 
but only partial  and method foucused (nothing on permissions, property 
sheets, subobjects, etc ...).

Strangely i found nothing on the list ot on the products. Did i missed 
something about existing scripts, or should i upgrade mine ?

Thanks for any tip.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] It's NOT a Zope error

2000-12-03 Thread Didier Georgieff

On 3 Dec 2000, at 12:00, Jason Cunliffe" <[EMAIL PROTECTED]>  wrote:

> But his post does in fact seem to be a common first-time experience. So I
> would like to suggest a sensible super-newbie-oriented adjustment to _all_
> future Zope installations:

While i really agree to that (always in term of bringing Zope to the 
masses), this remains me a **very common** comment i often receive.

First, forget all what you know about web programming, languages, python 
and zope.
Imagine you're just a good buddy who only wants to be convinced to allow 
you to use whatever tool you propose (yes evangelization...)

Each time they see the message "Zope Error" (even for unauthorized login 
! or your own programing error) they are telling "pfff this software is really 
buggy", and the poison is here.

So i would suggest, as a "marketing" feature to change the error message 
to something more accurate or at least who doesn't imply Zope 
(something like "your code sucks" ..  just kidding !).

I know that i can patch zope (and i've done it) to change the general error 
message but this would be a general benefit for non technical people if 
they can leave this bad feeling about "Zope Error", because it's NOT a 
zope error, and finaly this simple thing makes more against Zope than a 
lot of real complain wich remains out of the knowledge area for managers 
or executives.

Regards.
Didier.

___
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-to list all the zclasses constructors ?

2000-11-20 Thread Didier Georgieff

Hello,

I need to have a simple list choice for adding ZClasses instances instead 
of using manage_workspace (because the users are really *end* users 
and speaks french).

We are using Yihaw and extending it with news Zclasses.
So we have a Zclass, a my_addForm in french , my_add methods and a 
my_factory.

All works fine when i call that directly from DTML giving the method name 
in **hard coding**, and works fine when i use manage_workspace (it 
propose all my new factories in the Add list but in english with zope 
interface).

What i want is getting the list of factories (automatically) in my 
personnalized page (instead of hard coding it).

I guess it should be simple to generate the list of constructors and 
proposing the associated methods, but i just can't figure how to do that ;-<

Any tip and/or explanation would be welcome, and i'll summarize all that in 
an how-to (in complement of the Adding Zclasses instances 
programatically) 

Thanks in advance.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] traceback when exporting in XML on 2.2.2

2000-11-17 Thread Didier Georgieff

Hello,
I've switched to a fresh 2.2.2 from source (+ the 2 hotfix +transparentFolders) , and 
when i try to export in XML (download to local machine), i get this error.
It works in zexp format, and i never had this problem before.

Any idea ? Thanks in advance.

AttributeError
Sorry, a Zope error occurred. 
Traceback (innermost last):
  File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/georgieff/Zope-2.2.2-
src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_exportObject)
  File /home/georgieff/Zope-2.2.2-
src/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_exportObject)
  File /home/georgieff/Zope-2.2.2-
src/lib/python/OFS/ObjectManager.py, line 484, in 
manage_exportObject
(Object: ApplicationDefaultPermissions)
AttributeError: exportXML

--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] zope book AppendixA error

2000-11-03 Thread Didier Georgieff

Hello,
I guess DC people is already aware, but i get an error since 
yesterday while pointing to ZB/AppendixA.html

Document Template Parse Error

 invalid parameter: "="Expression"]...", for tag , on line 421 of 
AppendixA.html

Didier.

___
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 tabs within my standard_html_header

2000-09-29 Thread Didier Georgieff

Hello,

I want to use some standard manage tabs within my site design.

1 - If i call url/manage_main it brings the tabs *without* my header 
and footer.

2 - if i put a method manage_mylook with 


 


it works fine for *this* tab, but fails if i call the other tabs from this 
screen.

3 - i was thinking about having all manage_xxx methods (calling 
the proper manage_xxx) in my root, but infinite loop.

Is there a way to have *all* the allowed tabs working within my 
header/footer framework ? or do i have to rewrite the management 
screen calling the right functions each time ;-<< ?

Thanks in advance.
Didier.

___
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] logout from basic authentication ... almost

2000-09-29 Thread Didier Georgieff

Hello,

On the archive i got the way to logout from the basic authentication.

i have DTML method called "logout"
with only :


   Logout requested. OK


Calling the logout method calls the authenticated window. And i 
can give a new id/pass. So login as a new user works fine.

But if i only want to became Anonymous again, when i click on the 
CANCEL button, i have theLogout requested. OK 
message at the end of the regular traceback with the Unauthorized 
error..

I tried to modify my standard_error_message to catch it but with no 
luck (i still catch other errors within my standard_error_message 
for generate a clean page).

Anyone succeeded in generating a clean "you've been logout" page 
with this method ?

Didier.

___
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: "private" Yihaw folders and yihaw_latest method.

2000-09-29 Thread Didier Georgieff

Soren,
Works like a charm. Thanks.
Never used dtml-try before, but it looks like a great feature. I'll look 
deeper
Didier.

Le 29 Sep 00, à 15:08, Søren Roug a écrit :

> Yes, put aaround the problem. Look in
> yihaw_whatsnew for an example.
> 
> || -Original Message-
> || From: Didier Georgieff [mailto:[EMAIL PROTECTED]]
> || Subject: "private" Yihaw folders and yihaw_latest method.

> || If i remove also the "access content" on the yihaw folder , 
> || no more listing on toplevel. Fine.
> || 
> || But, when i do that, the "latest" method raise the 
> || authentication window, and 
> || even a manager role fails, it's an autorisation problem on 
> || the Catalog.


___
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] "private" Yihaw folders and yihaw_latest method.

2000-09-29 Thread Didier Georgieff

Hello,

i have a security/viewing concern.

I have some Yihaw folders who are not public. I removed the "view" permission 
on the folder, and trying to get in call the authentication windows. Fine.

On my main page, i have the whatsnew, latest and toplevel methods with the 
skip_unauthorized option within the toplevel dtml-in.

If i only have the "view" permission off, the yihaw folder and subfolders are still 
listed on the toplevel method.
If i remove also the "access content" on the yihaw folder , no more listing on 
toplevel. Fine.

But, when i do that, the "latest" method raise the authentication window, and 
even a manager role fails, it's an autorisation problem on the Catalog.

Any idea for solving that ?
Thanks in advance.


* TRACEBACK *
Unauthorized
You are not authorized to access approved. 
[... SKIP ...]

  File /zope/2-1-6-
clean/lib/python/DocumentTemplate/DT_In.py, line 611, in 
renderwb
(Object: 
Catalog(bobobase_modification_time=ZopeTime()-14,
  bobobase_modification_time_usage='range:min',
  sort_on='bobobase_modification_time',
  sort_order='reverse'))
  File /zope/2-1-6-
clean/lib/python/DocumentTemplate/DT_With.py, line 148, 
in render
(Object: Catalog.getobject(data_record_id_))
  File /zope/2-1-6-
clean/lib/python/DocumentTemplate/DT_Util.py, line 329, 
in eval
(Object: _.has_key('approved') and approved or not 
_.has_key('approved'))
(Info: approved)
Unauthorized: (see above)


--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] Yihaw authorisation pbs

2000-09-27 Thread Didier Georgieff

Hello Soren,

It's me again (sorry to bother you so often).

1 - You report a pb in upload Yihaw Files on 2.2.0 but i have a 
similar problem under 2.1.6 (fresh install from source) with *both* 
FAQ and files. Other classes works fine.

I have a Yihaw user has Access content, Add Yihaw Objects, Add 
Yihaw Tops, Delete Objects, Manage Yihaw Objects, Manage 
Properties, Use Mailhost.

Adding FAQ or files makes an authorisation error and prompt for 
the login windows. 

+++ If i do an ESC, i have a traceback with :

"Unauthorized
"You are not authorized to access YihawFAQItem. 
"YihawFAQItem.createInObjectManager(REQUEST['id'],REQUEST))
"(Info: YihawFAQItem)

+++ If i give my manager login,it works fine.

Do i forgot some Permissions for the Yihaw user ?
Is it 2.1.6 related ?

2 - On your readme.txt you say that for having a control on 
Approval on news items we have to swich off "manage yihaw 
objects".

It seems that if I do this i'm unable to add any objects.
Am i right ?
If it's a problem, i'm thinking about just adding a ZopePermission 
for the Review in the Product/YihawDirectory, and test it in 
"send_notifications" and other needed methods instead of "manage 
yihaw objects".
Is it the right way to get a finer control ?

Thhaks in advance.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] What options exist for dealing with traceback

2000-09-23 Thread Didier Georgieff

On 23 Sep 2000, at 10:27, [EMAIL PROTECTED] <[EMAIL PROTECTED]> ([EMAIL PROTECTED]) wrote:

>From: Skip Montanaro <[EMAIL PROTECTED]>
> Subject: What options exist for dealing with tracebacks?
> 
> I would love it if I could set some debug environment variable, run with
> -D="[EMAIL PROTECTED]" or subclass some Error class and have tracebacks mailed
> to me.  I wouldn't even care about the flood of email.  At least I'd have
> all the inputs.

I have modified the Standard Error Message for emailing each time 
an error occurs. Works fine for me.

-
 * MAIL a l'administrateur *

To : Zope Admin <[EMAIL PROTECTED]>
>From : Zope Web Server ERROR <[EMAIL PROTECTED]>
Subject : Zope Error at 

URL de la page : 
modifiée le 
[other parameters, version, etc ...]


 : 



 


[whatever you need]



Valeur de l'erreur: 
--- End of forwarded message ---
-- 
Divine Rites - Strasbourg, France
===
10" Storming the Citadel available via mail order only !
Check it on http://www.divinerites.com/dr_drr.htm

Radio Birdman, New Christs, Deniz Tek, Citadel Records & more ...
http://www.divinerites.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 )




[Zope] Re: Re(2): [Zope] Zope not starting after VaryTag install

2000-09-19 Thread Didier Georgieff

Le 18 Sep 00, à 15:49, Tino Wildenhain a écrit :

> I just checked with 2.1.6 (winNT) and it worked without problems.
> Can anybody else confirm this?

Sounds like it's Varytag under Linux related.

A - first step :
1 - I reinstalled a fresh 2-1-6 from the source (on Corel Linux and 
python from the source).
2 - Reinstalled my products : 
 * ZMySQLDA 1.2.0
 * NFGnav 0.6
 * Yihaw 1.0
3 - copied my ancien Data.fs
4 - packed the database
5- all works fine again. No problem.

B - second step :
1 - made a tar file from this install (to avoid long reinstalls after 
each try)
2 - installed Varytag 1.0
3 - even a simple index_html makes the traceback.

C - third step :
1 - delete the (now) bad install, and untar the previous one. 
2 - Works fine.
3 - remove the 3 products from the panel control and from the 
Products directory
4 - Works fine.
5 - compact the database. Works fine.
so now i have a Zope 2.1.6 without any product.
6 - install Varytag
7 - same traceback.

> > Just after installing VaryTag, Zope (2-1-6)  restart fine, but when i
> > try to connect to my zope adress, i got an error (traceback further).

ImportError

 Sorry, a Zope error occurred.

 Traceback (innermost last):
   File /zope/2-1-6/lib/python/ZPublisher/Publish.py, line 214, in 
publish_module
   File /zope/2-1-6/lib/python/ZPublisher/Publish.py, line 179, in publish
   File /zope/2-1-6/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /zope/2-1-6/lib/python/ZPublisher/Publish.py, line 165, in publish
   File /zope/2-1-6/lib/python/ZPublisher/mapply.py, line 160, in mapply
 (Object: index_html)
   File /zope/2-1-6/lib/python/ZPublisher/Publish.py, line 102, in 
call_object
 (Object: index_html)
   File /zope/2-1-6/lib/python/OFS/DTMLMethod.py, line 150, in __call__
 (Object: index_html)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_String.py, line 502, in 
__call__
 (Object: index_html)
   File /zope/2-1-6/lib/python/OFS/DTMLDocument.py, line 162, in __call__
 (Object: zope_powered)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_String.py, line 443, in 
__call__
 (Object: zope_powered)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_String.py, line 381, in 
cook
 (Object: zope_powered)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_String.py, line 231, in 
parse
 (Object: zope_powered)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_Var.py, line 248, in 
__init__
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_Util.py, line 357, in 
name_param
 (Info: ({'': '"zope_logo.tag(BORDER=\'0\')"'}, 'var', 1, 'name'))
   File /zope/2-1-6/lib/python/DocumentTemplate/VSEval.py, line 157, in 
__init__
 ImportError: No module named gparse
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] Acl_user and user informations on MySQL (was ZMYSQLDA)

2000-09-18 Thread Didier Georgieff

>I ´ve got it running. ZMYSQLDA could not find the libraries from
> mysqldb. Yes, you´re right, it was a FAQ. BTW: Is there any product
> that acts as acl_users which allows to collect more information from
> my users, like company name, adress ... ?

Hello Peer,

We've got the other "half-empty bottle" for that pb.
We have built a product (ZAnnu) with people's informations for 
differents organizations hosted within a MySQL base, and we are 
on the proccess to use GUF (waiting for a stable LoginManager) as 
an acl-user replacement (end of this week or next week).
Should be cool to share our experiences on that, and i can improve 
ZAnnu if some functions are missing.

http://www.zope.org/Members/dgeorgieff/ZAnnu.

Didier Georgieff

___
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] Zope not starting after VaryTag install

2000-09-18 Thread Didier Georgieff

Hello,

Just after installing VaryTag, Zope (2-1-6)  restart fine, but when i 
try to connect to my zope adress, i got an error (traceback further).

So i stopped Zope, removed the VaryTag product, and the error is 
still here.
So, i don't have access to my manage screen to remove the 
VaryTag traces or anything slse.

Any quick tip would help me a lot, an avoid killing myself for 
loosing access to my site ;-))

Thanks in advance



 Zope Error

 Zope has encountered an error while publishing this 
resource. 

 ImportError

 Sorry, a Zope error occurred.

 Traceback (innermost last):
   File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line 
214, in publish_module
   File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line 
179, in publish
   File /zope/2-1-6s/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line 
165, in publish
   File /zope/2-1-6s/lib/python/ZPublisher/mapply.py, line 
160, in mapply
 (Object: index_html)
   File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line 
102, in call_object
 (Object: index_html)
   File /zope/2-1-6s/lib/python/OFS/DTMLMethod.py, line 
150, in __call__
 (Object: index_html)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
 (Object: index_html)
   File /zope/2-1-6s/lib/python/OFS/DTMLDocument.py, 
line 162, in __call__
 (Object: zope_powered)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_String.py, line 443, in __call__
 (Object: zope_powered)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_String.py, line 381, in cook
 (Object: zope_powered)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_String.py, line 231, in parse
 (Object: zope_powered)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_Var.py, line 248, in __init__
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_Util.py, line 357, in 
name_param
 (Info: ({'': '"zope_logo.tag(BORDER=\'0\')"'}, 'var', 1, 
'name'))
   File /zope/2-1-
6s/lib/python/DocumentTemplate/VSEval.py, line 157, in __init__
 ImportError: No module named gparse

___
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] Yihaw translation

2000-09-18 Thread Didier Georgieff

Hello,

I'm going to adapt Yihaw 1.0 in French (for the visible part for our 
users).
I'll use VaryTag (and not ZBabel to avoid SQL dependency).

In order to avoid duplicate work, is there anybody already involved 
in adapting Yihaw to multi-languages ?
Regards. 
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] SQLRelay vanish ??

2000-09-14 Thread Didier Georgieff

Hello,

Since several days, the {HYPERLINK 
"http://www.firstworks.com/"}http://www.firstworks.com/ 
 web site is unavailable. 
(SQLRelayDA
 and SQLRelayDA).

Any information about the 
SQLRelay future, and download 
site ?
Thanks.
Didier.



___
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] repost : pb with acl_users "domains" for clients behind a proxy/firewall

2000-09-08 Thread Didier Georgieff

Hello,

I'm reposting here, since i couldn't solve this strange problem.

Our users are acessing to the Zope server (wich is on the Internet) thru 
corporate (government) firewall/proxys.

Some users in acl_users are declared with a "domain" restriction.
wich is a generic "gouv.fr" or "agriculture.gouv.fr".

It doesn't seems to be effective and the login is rejected, while the same user 
without any "domain" restriction works fine.

I'm suspecting some changes in the REQUEST made by the corporate proxys.
Is there any doc about what REQUEST variable is used in the 
"domains" restriction ? 

I have a HTTP_FORWARDED in the REQUEST but with the 
*proxy* name (unfortunately without the .gouv.fr). 

I can't find anything on the site and the list either.Thanks in advance.

Didier Georgieff.



___
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] domains (acl_users) and access via proxy

2000-09-04 Thread Didier Georgieff

Hello,

Our users are acessing to the Zope server thru corporate 
(ministers) proxys.

I can't get the "domains" working, while trying (agriculture.gouv.fr, 
gouv.fr, fr) even with simple one.
I'm suspecting some changes in the REQUEST made by the 
corporate proxys.

Is there any doc about what REQUEST variable is used in the 
"domains" restriction ? (I have a HTTP_FORWARDED with the 
*proxy* name (unfortunately without the .gouv.fr). I can't find 
anything on the site and the list either.

Thanks in advance.


___
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-dev] Redirection and Authentication

2000-08-30 Thread Didier Georgieff

On 30 Aug 2000, at 19:03, [EMAIL PROTECTED]  
([EMAIL PROTECTED]) wrote: 

> > The problem is now that after the Redirect AUTHENTICATED_USER is again
> > set to Anonymous (which I tested by printing AUTHENTICATED_USER). If I
> > do no redirect but put a normal link back to the list document,
> > everything works as expected (thus showing the edit button).

Reminds me some strange behaviour i had while redirecting to an 
URL with a variable. When i changed the redirect with "hard 
coding" the URL this disapeared. 

___
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] is possible ?

2000-08-27 Thread Didier Georgieff

On 27 Aug 2000, at 11:49, Rik Hoekstra <[EMAIL PROTECTED]> (Rik Hoekstra) wrote:

> RH: Um, as you describe it, you mix up the name of the 
> property and its value 
> Try something like the following
> 
> 
> 

> note that 1) this will only work if there is a myPropName and a defaultvalue
> variable in the namespace and 2) this won't change the value of the property

Well, i was not clear.

In 

 

the problem is SOMEREQ is *hard* coded in the DTML document.

I need to have EXACTLY the same behaviour (checking if 
SOMEREQ is in the REQUEST, and set it.

If i use a property (PropName) for putting the name of what i want 
to check (SOMEREQ in my case), only the REQUEST.set works.

the  (but that might be a matter of desciption). 
Sorry, but as you already guess it, Zope is not my native language 
and English either ;-<
So thanks for trying to understand MY english ;->

Didier.

___
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 possible ?

2000-08-26 Thread Didier Georgieff



I have a lot of REQUEST like this one to check, depending on what 
documents are in the folder.





so i gave all documents concerned 2 properties 
myPropName,myPropValue

(in our example 
myPropName : SOMEREQ
myPropValue : defaultvalue)

So i'm able to iterate the documents and check the properties and 
set the REQUEST.


 
  
 


this works OK.

But, I can't find a way to generate the 
 tag.

Passing the value of myPropName seems to fail (erreur while 
parsing the syntax, or check the 'myPropName' instead of his 
value).
I tried a lot of things and syntax around , but it failed.

Is it a dtml-unless limit, or just a bad syntax i'm writing ?
Thnaks in advance.

___
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] strange login behaviour

2000-08-25 Thread Didier Georgieff

I finally found the reason.

I was redirecting with a property as URL. 
When i gave the url in *plain* text it worked OK.
I still don't understand why.
Thanks for the responses.

Le 24 Aug 00, à 15:27, Chris Withers a écrit :

> Is it possible that your browser is just caching the old page the first
> time round?

Le 24 Aug 00, à 22:15, Dieter Maurer a écrit :

> I am not sure...
> ... but it might be possible that the browser sets a cookie only
> after the redirect.

Didier georgieff.

___
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] import from 216 to 213 fail

2000-08-24 Thread Didier Georgieff

Hello,

I'm trying to import a folder From 2.1.6 (Linux) to 2.1.3 (Linux) and i get this 
error :

Type d'erreur: TypeError
Valeur de l'erreur: ('len() of unsized object', , None)

I tried to import the zexp in 2.1.6 on Win and it works fine.
AFAIK i have the correct objects in the acquired folder.

I saw some postings on the list about that problem and i suspect it's the 
2.1.3. I'm i correct or do i have to check something else with my zexp ?
Thanks.
Didier Georgieff

___
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] strange login behaviour

2000-08-24 Thread Didier Georgieff

Hello,

I have really simple login wich is a link to a Method "login" wich 
comprise

.. REDIRECT for login


and 'login' method has NO autorizations for anonymous.

It redirects me on the right "baseURL" page, but the "baseURL" 
inludes an "info" Document with 




who shows ONLY anonymous after the first login..

IF I do a second login (exactly the same) then it works fine and i 
got the right Names and Roles..

Is it a known problem, or do i have some magic acquisition trick 
who eludes me ?

I'm on 2.1.6 win.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)

___
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] Pb getting local roles ... strange

2000-08-18 Thread Didier Georgieff

Hello,

I'm on 2.1.6.
I'm trying to have an information box with all roles.


 


works OK. But doesn't give the local roles.
So i tried 


 
  
 


But it only gives ['owner'] and not the other local role ['roleFoo'].
But the response is correct if i test with 

 is 
True.

Is it a bug or a misunderstanding ? I found nothing on the archives.
Thanks in advance.

 
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)

___
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: Pb with MIME Type x-vCard

2000-08-17 Thread Didier Georgieff

Le 17 Aug 00, à 11:31, [EMAIL PROTECTED] a écrit :

> I'm doing a method for getting vCards from a directory.
> It works fine, until i want to put some  with the x-vCard 
> MIME type

I respond to my own post.
It seems that vCard doesn't like a line WITH propertyname AND 
WITHOUT propertyvalue.

So some  does the trick.
Pay attention, the  needs to be on a separate line for line 
break reasons.


Content-type:text/x-vCard
Content-Transfer-Encoding:8bit

BEGIN:VCARD
VERSION:2.1
N:
EMAIL;INTERNET:
''">TEL;WORK:

END:VCARD


--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)

___
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] Pb with MIME Type x-vCard

2000-08-17 Thread Didier Georgieff

Hello,

I'm doing a method for getting vCards from a directory.

It works fine, until i want to put some  with the x-vCard 
MIME type

1 - If i only put hard coded text it works fine. I get the usual vCard 
page on Netscape.

Content-type:text/x-vCard
Content-Transfer-Encoding:8bit

BEGIN:VCARD
VERSION:2.1
N:name
EMAIL;INTERNET:email
TEL;WORK:tel
END:VCARD

2 - If i put some  and render it ascii it works fine. I get a 
html page with the rendered variables.

Content-type:text/plain
Content-Transfer-Encoding:8bit

BEGIN:VCARD
VERSION:2.1
N:
EMAIL;INTERNET:
TEL;WORK:
END:VCARD

3 - It fails when i do the x-vCard type AND .

Content-type:text/x-vCard
Content-Transfer-Encoding:8bit

BEGIN:VCARD
VERSION:2.1
N:
EMAIL;INTERNET:
TEL;WORK:
END:VCARD

I'm on 2.1.6 and Netscape 4.51

ANy idea on this strange behaviour ?
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)

___
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 to generate a Vcard ?

2000-08-15 Thread Didier Georgieff

HEllo,

I'm looking for providing a way to generate a vcard for desktop 
adressbooks.
I guess someone already thought about that but i can't find 
anything on zope.org or mail archive.

Any tip out there ?

Didier.

___
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] ZSQL returning a trailing "L"

2000-08-14 Thread didier georgieff

Hello,

I get a trailng "L" on smallint variables from ZSQL/MySQL on 2.1.4 (prod
server) but not on 2.1.6 (developt server).
I do remember a post some times ago about that, BUT i can't find it
again on the archives despite my (weak ?) efforts..
Any info/tip would be great as the production 2.1.4 is not migrate right
now.
Didier Georgieff

___
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] ANN : ZAnnu a multi-agencies searchable directory

2000-07-23 Thread Didier Georgieff

Hello,

I've uploaded a first working version of ZAnnu.

At the moment ZAnnu is an ugly thing  ... and ... a multi-agencies searchable 
directory (people and organizations) based on MySQL.

This is a first try to learn & experiment Zope & ZSQL while making a product i 
could use in a real project. So it will be improved and have a better design in 
the near future.

It's easy to use by only putting a  tag (sorry for the 
french, it will change soon).

More informations at :

http://www.zope.org/Members/dgeorgieff/ZAnnu

I would be really glad to have any comment, feedback about the structure, 
the coding and especially about the feature you would like to see in ZAnnu.
Contributions, and patches are more than welcome.

Didier Georgieff.
 

___
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] pb impoting objects from 2.1.6 to 2.2.0

2000-07-20 Thread Didier Georgieff

Hello, 

I'm importing on Zope 2.2/Win98 a ZopeFolder/XML export done on 
Zope 2.2.0/Linux 

I get this error 

Error Type: KeyError
  Error Value: id
  

Any thought about a bad export or a pb between 2.1.6/2.2 ? 

Traceback (innermost last): File 
C:\Zope\Zope220\lib\python\ZPublisher\Publish.py, line 222, in 
publish_module File 
C:\Zope\Zope220\lib\python\ZPublisher\Publish.py, line 187, in 
publish File C:\Zope\Zope220\lib\python\Zope\__init__.py, line 221, 
in zpublisher_exception_hook (Object: ElementWithAttributes) File 
C:\Zope\Zope220\lib\python\ZPublisher\Publish.py, line 171, in 
publish File C:\Zope\Zope220\lib\python\ZPublisher\mapply.py, line 
160, in mapply (Object: manage_importObject) File 
C:\Zope\Zope220\lib\python\ZPublisher\Publish.py, line 112, in 
call_object (Object: manage_importObject) File 
C:\Zope\Zope220\lib\python\OFS\ObjectManager.py, line 495, in 
manage_importObject (Object: ElementWithAttributes) File 
C:\Zope\Zope220\lib\python\ZODB\ExportImport.py, line 216, in 
importFile File C:\Zope\Zope220\lib\python\ZODB\ExportImport.py, 
line 316, in importXML File 
C:\Zope\Zope220\lib\python\Shared\DC\xml\xyap.py, line 57, in 
unknown_endtag File 
C:\Zope\Zope220\lib\python\Shared\DC\xml\ppml.py, line 781, in 
save_object KeyError: (see above) 




___
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] uploading from client PC in MySQL thru ZSQL

2000-07-04 Thread Didier Georgieff

Hello,

I'm trying to "import" a CSV text file for feeding a MySQL database.

I have :

* DTML method including :






* ZSQL method 'import'
parameter : loadFileAnnu
query template : 
LOAD DATA LOCAL INFILE '' 
INTO TABLE annuaire FIELDS TERMINATED BY ';'

when i process the form, i always get the import/manage_testForm
and if i try to upload the (local on my PC) file thru this, i get an 
MySQL error 

Error, _mysql.InterfaceError: (0, "File 'D:/AnnuaireTest.csv' not 
found (Errcode: 2)") 

SQL used:
LOAD DATA LOCAL INFILE 'D:/Data/SIT67/AnnuaireTest.csv' 
INTO TABLE annuaire FIELDS TERMINATED BY ';'

Am i doing something wrong or is it impossible to load/import in 
MySQL from the local file (so i should upload the file on the server 
then load into MySQL) ??
Thanks in advance for any tip or info.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)

___
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] looking for ID after manage_addFile

2000-05-18 Thread Didier Georgieff

Hello,

I'm uploading some files thru a form and i want to setup some new 
properties just after the upload (who done the upload and so...) 

So i have a DTML method (addProperty) who does the 
manage_addProperties and i want to simply call 
/.../ID/addProperty for that.

I also need to know the ID in order to check.if a previous version for 
this document was already upload

Problem is i don't give any ID to the file uploaded since with and 
empty ID in manage_addFile, the file name is automatically setup 
as ID.

 

I guess it's an obvious trick but i can't find a way to get and 
manipulate the ID for cheking existing file and calling addProperty. 
and i dind't find info thru the documentation.

As a workaround I can put a forged ID but file name seems better 
for my needs.

Thanks for any tip.
Didier Georgieff

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