Re: [Zope3-Users] addview name not form

2005-10-10 Thread Florian Lindner
Am Montag, 10. Oktober 2005 19:33 schrieb Julien Anguenot:
> Florian Lindner wrote:
> > Am Montag, 3. Oktober 2005 14:01 schrieb Florian Lindner:
> >>Am Freitag, 30. September 2005 20:17 schrieb Julien Anguenot:
> >>>Florian Lindner wrote:
> Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> >First have a look at this :
> >
> >http://www.zope.org/Collectors/Zope3-dev/391
> 
> Sorry, didn't read that thoroughly. What do you suggest at the moment
> do get the desired behavior?
> >>>
> >>>Your ContentFolder should implement IAdding and then your example should
> >>>work I guess.
> >>
> >>I've modified my content class directive for the addfolder:
> >>
> >> >>  interface=".interfaces.IContentFolder"
> >>  type="zope.app.content.interfaces.IContentType" />
> >>
> >>   >>interface="zope.app.annotation.interfaces.IAttributeAnnotatable" />
> >>   >>interface="zope.app.container.interfaces.IContentContainer" />
> >>   >>interface="zope.app.container.interfaces.IAdding" />
> >>  
> >>  
> >>   >> /> 
> >>
> >>
> >>And my addMenuItem:
> >>
> >> >>title="Link"
> >>class="CS.Link.link.Link"
> >>view="AddCSLink.html"
> >>permission="CS.Add"
> >>menu="CSaddMenu"
> >>layer="centershock"
> >>for="CS.ContentFolder.interfaces.IContentFolder"
> >> />
> >>
> >>
> >>it's still:
> >>
> >>zope.configuration.exceptions.ConfigurationError: view name
> >> AddCSLink.html not found
> >
> > Does it work with your code? (the code I uploaded)
>
> Yes, if you specify the the addMenuItem directive :
>
>  title="Link"
> class="CS.Link.link.Link"
> view="AddCSLink.html"
> permission="zope.Public"
> menu="CSaddMenu"
> layer="centershock"
>  />
>
> 1) specify a layer on the addMenuItem directive.
> 2) remove the for attribute for now until your ContentFolder class
> implements IAdding.

case 1) That makes my CSaddMenu not to show "Link" when it's displayed on 
IContentFolder.

case 2) If I add the for="CS.ContentFolder.interfaces.IContentFolder" 
attribute to both the addMenuItem and addform directives I have the problem 
that the generated link on the addform contentfolder/AddCSLink.html and not 
contentfolder/+/AddCSLink.html and therefore (the form without +) does not 
work.

case 3) If I add  to my content directive 
for IContentFolder it changes nothing.

case 4) If after adding the marker interface IAdding for the ContentFolder, I 
remove the for attribute from both addform and addMenuItem the result is the 
same like case 2.

Sorry, I am still not able to make it work. :-(

Thanks for you help!

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-10-10 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Florian Lindner wrote:
> Am Montag, 3. Oktober 2005 14:01 schrieb Florian Lindner:
> 
>>Am Freitag, 30. September 2005 20:17 schrieb Julien Anguenot:
>>
>>>Florian Lindner wrote:
>>>
Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:

>First have a look at this :
>
>http://www.zope.org/Collectors/Zope3-dev/391

Sorry, didn't read that thoroughly. What do you suggest at the moment
do get the desired behavior?
>>>
>>>Your ContentFolder should implement IAdding and then your example should
>>>work I guess.
>>
>>I've modified my content class directive for the addfolder:
>>
>>>  interface=".interfaces.IContentFolder"
>>  type="zope.app.content.interfaces.IContentType" />
>>
>>  >interface="zope.app.annotation.interfaces.IAttributeAnnotatable" />
>>  >interface="zope.app.container.interfaces.IContentContainer" />
>>  >interface="zope.app.container.interfaces.IAdding" />
>>  
>>  
>>  
>>
>>
>>
>>And my addMenuItem:
>>
>>>title="Link"
>>class="CS.Link.link.Link"
>>view="AddCSLink.html"
>>permission="CS.Add"
>>menu="CSaddMenu"
>>layer="centershock"
>>for="CS.ContentFolder.interfaces.IContentFolder"
>> />
>>
>>
>>it's still:
>>
>>zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html
>>not found
> 
> 
> Does it work with your code? (the code I uploaded)

Yes, if you specify the the addMenuItem directive :



1) specify a layer on the addMenuItem directive.
2) remove the for attribute for now until your ContentFolder class
implements IAdding.

J.


- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDSqXSGhoG8MxZ/pIRAsbgAJwP8mj0ANTJi/trUyc5QMBErmmcGQCdGbBP
U6wfgBUjSLA3+xawgO+sHXs=
=Qkvd
-END PGP SIGNATURE-
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-10-06 Thread Florian Lindner
Am Montag, 3. Oktober 2005 14:01 schrieb Florian Lindner:
> Am Freitag, 30. September 2005 20:17 schrieb Julien Anguenot:
> > Florian Lindner wrote:
> > > Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> > >>First have a look at this :
> > >>
> > >>http://www.zope.org/Collectors/Zope3-dev/391
> > >
> > > Sorry, didn't read that thoroughly. What do you suggest at the moment
> > > do get the desired behavior?
> >
> > Your ContentFolder should implement IAdding and then your example should
> > work I guess.
>
> I've modified my content class directive for the addfolder:
>
>interface=".interfaces.IContentFolder"
>   type="zope.app.content.interfaces.IContentType" />
> 
>interface="zope.app.annotation.interfaces.IAttributeAnnotatable" />
>interface="zope.app.container.interfaces.IContentContainer" />
>interface="zope.app.container.interfaces.IAdding" />
>   
>   
>   
> 
>
>
> And my addMenuItem:
>
>  title="Link"
> class="CS.Link.link.Link"
> view="AddCSLink.html"
> permission="CS.Add"
> menu="CSaddMenu"
> layer="centershock"
> for="CS.ContentFolder.interfaces.IContentFolder"
>  />
>
>
> it's still:
>
> zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html
> not found

Does it work with your code? (the code I uploaded)

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-10-03 Thread Florian Lindner
Am Freitag, 30. September 2005 20:17 schrieb Julien Anguenot:
> Florian Lindner wrote:
> > Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> >>First have a look at this :
> >>
> >>http://www.zope.org/Collectors/Zope3-dev/391
> >
> > Sorry, didn't read that thoroughly. What do you suggest at the moment do
> > get the desired behavior?
>
> Your ContentFolder should implement IAdding and then your example should
> work I guess.

I've modified my content class directive for the addfolder:



  
  
  
  
  
  



And my addMenuItem:




it's still:

zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html not 
found


I did I get something wrong?

Thanks,

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-30 Thread Jim Fulton

Florian Lindner wrote:

Am Freitag, 30. September 2005 20:08 schrieb Jim Fulton:


Florian Lindner wrote:


Am Freitag, 30. September 2005 18:55 schrieb Julien Anguenot:


Florian Lindner wrote:


Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:


First have a look at this :

http://www.zope.org/Collectors/Zope3-dev/391

The addMenuItem directive should look this way in order to work :

 

without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
collector entry)


But then the menu entry does not show up in views on IContentFolder. And
I need it showing up there.



The addMenuItem doesn't support the layer attribute. I'm going to add
this to the addMenuItem directive interface.


When do you think you will be done?


Just checked it in the trunk.

You may want to try out. Changeset [38705]


After the update from python 2.3 to 2.4.2, deleting my SVN checkout,
rechecking out and compiling, recreating a clean instance, I get upon
startup:

 File "/home/florian/Zope3/src/zope/app/component/registration.py", line
27, in ?
   from zope.app.component.interfaces import registration as interfaces
 File
"/home/florian/Zope3/src/zope/app/component/interfaces/__init__.py", line
22, in ?
   from zope.app.container.constraints import ContainerTypesConstraint
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/home/florian/Desktop/zope/etc/site.zcml", line 3.2-3.50
   ZopeXMLConfigurationError: File
"/home/florian/Desktop/zope/etc/package-includes/securitypolicy-meta.zcml
", line 1.0-1.62
   ZopeXMLConfigurationError: File
"/home/florian/Zope3/src/zope/app/securitypolicy/meta.zcml", line
4.2-7.51 SyntaxError: invalid syntax (constraints.py, line 240)


You are still using Python 2.3.



Sure?

[EMAIL PROTECTED] ~ $ python -V
Python 2.4.2


Yes, I'm sure. Look at the script you are using to start Zope.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-30 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Florian Lindner wrote:
> Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> 
>>First have a look at this :
>>
>>http://www.zope.org/Collectors/Zope3-dev/391
> 
> 
> Sorry, didn't read that thoroughly. What do you suggest at the moment do get 
> the desired behavior?
>

Your ContentFolder should implement IAdding and then your example should
work I guess.

J.


> 
> 
>>The addMenuItem directive should look this way in order to work :
>>
>>>title="Link"
>>class="CS.Link.link.Link"
>>view="AddCSLink.html"
>>permission="zope.Public"
>>menu="CSaddMenu"
>> />
>>
>>without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
>>collector entry)
>>
>>The addMenuItem doesn't support the layer attribute. I'm going to add
>>this to the addMenuItem directive interface.


- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDPYEbGhoG8MxZ/pIRAkM0AJ0abDpi/ISq5drxP/4vB9r2dJSCsQCcDITW
KcDemlZv0IGQ+IT9ep2aA44=
=kcCS
-END PGP SIGNATURE-
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-30 Thread Florian Lindner
Am Freitag, 30. September 2005 20:08 schrieb Jim Fulton:
> Florian Lindner wrote:
> > Am Freitag, 30. September 2005 18:55 schrieb Julien Anguenot:
> >>Florian Lindner wrote:
> >>>Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> First have a look at this :
> 
> http://www.zope.org/Collectors/Zope3-dev/391
> 
> The addMenuItem directive should look this way in order to work :
> 
>    title="Link"
>    class="CS.Link.link.Link"
>    view="AddCSLink.html"
>    permission="zope.Public"
>    menu="CSaddMenu"
> />
> 
> without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
> collector entry)
> >>>
> >>>But then the menu entry does not show up in views on IContentFolder. And
> >>>I need it showing up there.
> >>>
> The addMenuItem doesn't support the layer attribute. I'm going to add
> this to the addMenuItem directive interface.
> >>>
> >>>When do you think you will be done?
> >>
> >>Just checked it in the trunk.
> >>
> >>You may want to try out. Changeset [38705]
> >
> > After the update from python 2.3 to 2.4.2, deleting my SVN checkout,
> > rechecking out and compiling, recreating a clean instance, I get upon
> > startup:
> >
> >   File "/home/florian/Zope3/src/zope/app/component/registration.py", line
> > 27, in ?
> > from zope.app.component.interfaces import registration as interfaces
> >   File
> > "/home/florian/Zope3/src/zope/app/component/interfaces/__init__.py", line
> > 22, in ?
> > from zope.app.container.constraints import ContainerTypesConstraint
> > zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
> > "/home/florian/Desktop/zope/etc/site.zcml", line 3.2-3.50
> > ZopeXMLConfigurationError: File
> > "/home/florian/Desktop/zope/etc/package-includes/securitypolicy-meta.zcml
> >", line 1.0-1.62
> > ZopeXMLConfigurationError: File
> > "/home/florian/Zope3/src/zope/app/securitypolicy/meta.zcml", line
> > 4.2-7.51 SyntaxError: invalid syntax (constraints.py, line 240)
>
> You are still using Python 2.3.

Sure?

[EMAIL PROTECTED] ~ $ python -V
Python 2.4.2

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-30 Thread Jim Fulton

Florian Lindner wrote:

Am Freitag, 30. September 2005 18:55 schrieb Julien Anguenot:


Florian Lindner wrote:


Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:


First have a look at this :

http://www.zope.org/Collectors/Zope3-dev/391

The addMenuItem directive should look this way in order to work :

  

without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
collector entry)


But then the menu entry does not show up in views on IContentFolder. And
I need it showing up there.



The addMenuItem doesn't support the layer attribute. I'm going to add
this to the addMenuItem directive interface.


When do you think you will be done?


Just checked it in the trunk.

You may want to try out. Changeset [38705]



After the update from python 2.3 to 2.4.2, deleting my SVN checkout, 
rechecking out and compiling, recreating a clean instance, I get upon 
startup:


  File "/home/florian/Zope3/src/zope/app/component/registration.py", line 27, 
in ?

from zope.app.component.interfaces import registration as interfaces
  File "/home/florian/Zope3/src/zope/app/component/interfaces/__init__.py", 
line 22, in ?

from zope.app.container.constraints import ContainerTypesConstraint
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
"/home/florian/Desktop/zope/etc/site.zcml", line 3.2-3.50
ZopeXMLConfigurationError: File 
"/home/florian/Desktop/zope/etc/package-includes/securitypolicy-meta.zcml", 
line 1.0-1.62
ZopeXMLConfigurationError: File 
"/home/florian/Zope3/src/zope/app/securitypolicy/meta.zcml", line 4.2-7.51

SyntaxError: invalid syntax (constraints.py, line 240)


You are still using Python 2.3.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-30 Thread Florian Lindner
Am Freitag, 30. September 2005 18:55 schrieb Julien Anguenot:
> Florian Lindner wrote:
> > Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> >>First have a look at this :
> >>
> >>http://www.zope.org/Collectors/Zope3-dev/391
> >>
> >>The addMenuItem directive should look this way in order to work :
> >>
> >> >>title="Link"
> >>class="CS.Link.link.Link"
> >>view="AddCSLink.html"
> >>permission="zope.Public"
> >>menu="CSaddMenu"
> >> />
> >>
> >>without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
> >>collector entry)
> >
> > But then the menu entry does not show up in views on IContentFolder. And
> > I need it showing up there.
> >
> >>The addMenuItem doesn't support the layer attribute. I'm going to add
> >>this to the addMenuItem directive interface.
> >
> > When do you think you will be done?
>
> Just checked it in the trunk.
>
> You may want to try out. Changeset [38705]

After the update from python 2.3 to 2.4.2, deleting my SVN checkout, 
rechecking out and compiling, recreating a clean instance, I get upon 
startup:

  File "/home/florian/Zope3/src/zope/app/component/registration.py", line 27, 
in ?
from zope.app.component.interfaces import registration as interfaces
  File "/home/florian/Zope3/src/zope/app/component/interfaces/__init__.py", 
line 22, in ?
from zope.app.container.constraints import ContainerTypesConstraint
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
"/home/florian/Desktop/zope/etc/site.zcml", line 3.2-3.50
ZopeXMLConfigurationError: File 
"/home/florian/Desktop/zope/etc/package-includes/securitypolicy-meta.zcml", 
line 1.0-1.62
ZopeXMLConfigurationError: File 
"/home/florian/Zope3/src/zope/app/securitypolicy/meta.zcml", line 4.2-7.51
SyntaxError: invalid syntax (constraints.py, line 240)


Regards,

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-30 Thread Florian Lindner
Am Freitag, 30. September 2005 18:55 schrieb Julien Anguenot:
> Florian Lindner wrote:
> > Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> >>First have a look at this :
> >>
> >>http://www.zope.org/Collectors/Zope3-dev/391
> >>
> >>The addMenuItem directive should look this way in order to work :
> >>
> >> >>title="Link"
> >>class="CS.Link.link.Link"
> >>view="AddCSLink.html"
> >>permission="zope.Public"
> >>menu="CSaddMenu"
> >> />
> >>
> >>without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
> >>collector entry)
> >
> > But then the menu entry does not show up in views on IContentFolder. And
> > I need it showing up there.
> >
> >>The addMenuItem doesn't support the layer attribute. I'm going to add
> >>this to the addMenuItem directive interface.
> >
> > When do you think you will be done?
>
> Just checked it in the trunk.
>
> You may want to try out. Changeset [38705]

I'll do so. But not tonight. Need to get ready to have some fun and party. 
Tomorrow and Sunday I will in Munich and take over my new appartment there. 
So I'll be able to check it out at Sunday evening or Monday. Did the change 
made the example I uploaded work?

Thanks for that,

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-30 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Florian Lindner wrote:
> Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> 
>>First have a look at this :
>>
>>http://www.zope.org/Collectors/Zope3-dev/391
>>
>>The addMenuItem directive should look this way in order to work :
>>
>>>title="Link"
>>class="CS.Link.link.Link"
>>view="AddCSLink.html"
>>permission="zope.Public"
>>menu="CSaddMenu"
>> />
>>
>>without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
>>collector entry)
> 
> 
> But then the menu entry does not show up in views on IContentFolder. And I 
> need it showing up there.
> 
>>The addMenuItem doesn't support the layer attribute. I'm going to add
>>this to the addMenuItem directive interface.
> 
> 
> When do you think you will be done?

Just checked it in the trunk.

You may want to try out. Changeset [38705]

J.

- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDPW4IGhoG8MxZ/pIRAufZAJ0SSACThHGRaH3i2zNeXORFEPEpQACbB2jM
cDF1c/VhCIbDvtqQj1Rb4B0=
=nAkT
-END PGP SIGNATURE-
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-29 Thread Florian Lindner
Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> First have a look at this :
>
> http://www.zope.org/Collectors/Zope3-dev/391

Sorry, didn't read that thoroughly. What do you suggest at the moment do get 
the desired behavior?


>
> The addMenuItem directive should look this way in order to work :
>
>  title="Link"
> class="CS.Link.link.Link"
> view="AddCSLink.html"
> permission="zope.Public"
> menu="CSaddMenu"
>  />
>
> without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
> collector entry)
>
> The addMenuItem doesn't support the layer attribute. I'm going to add
> this to the addMenuItem directive interface.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-29 Thread Florian Lindner
Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot:
> First have a look at this :
>
> http://www.zope.org/Collectors/Zope3-dev/391
>
> The addMenuItem directive should look this way in order to work :
>
>  title="Link"
> class="CS.Link.link.Link"
> view="AddCSLink.html"
> permission="zope.Public"
> menu="CSaddMenu"
>  />
>
> without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
> collector entry)

But then the menu entry does not show up in views on IContentFolder. And I 
need it showing up there.
>
> The addMenuItem doesn't support the layer attribute. I'm going to add
> this to the addMenuItem directive interface.

When do you think you will be done?

Thx,

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-29 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

First have a look at this :

http://www.zope.org/Collectors/Zope3-dev/391

The addMenuItem directive should look this way in order to work :



without 'for="CS.ContentFolder.interfaces.IContentFolder"' (check the
collector entry)

The addMenuItem doesn't support the layer attribute. I'm going to add
this to the addMenuItem directive interface.

J.

Florian Lindner wrote:
> Ok, here we go. The package is located at http://xgm.de/addform.tar.gz. 
> Simple 
> register it (a cs-configure.zcml is provided) and start Zope (SVN version), 
> you'll see the error.
> 
> To check the intended behavior:
> 
> 0) Start Zope successfully (first important step!)
> 1) Create a ContentFolder named cs.
> 2) Go to http://horus:8080/++skin++centershock/cs/
> 3) The menu on the left should show a entry "Link" under "Items to add"
> 4) This entry should link to /++skin++centershock/cs/+/%40%40AddCSLink.html, 
> NOT to the URL but withount the /+/ (what the Folder link does at the 
> moment), since this method is broken somehow.
> 
> 
> Thanks for you help,
> 
> Florian
> 
> 
> 
> Am Donnerstag, 29. September 2005 14:45 schrieb Julien Anguenot:
> 
>>Yup please. I could investigate much more easily.
>>
>>  J.
>>
>>Florian Lindner wrote
>>
>>
>>>Hi,
>>>no one any more ideas?  *desperated* I can't really believ that this
>>>error has not occured to anyone else, since IMO it is very a standard
>>>situation...
>>>
>>>Would it help if I create a small package which demonstrates the error?
>>>
>>>Thx,
>>>
>>>Florian


- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDPDGCGhoG8MxZ/pIRAoNNAJ9LQRdqWOmohbi4uNMZHILIgniFmgCfWtL7
HlHJu21gahHsdu/+HSzjF58=
=Hp9t
-END PGP SIGNATURE-
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-29 Thread Florian Lindner
Ok, here we go. The package is located at http://xgm.de/addform.tar.gz. Simple 
register it (a cs-configure.zcml is provided) and start Zope (SVN version), 
you'll see the error.

To check the intended behavior:

0) Start Zope successfully (first important step!)
1) Create a ContentFolder named cs.
2) Go to http://horus:8080/++skin++centershock/cs/
3) The menu on the left should show a entry "Link" under "Items to add"
4) This entry should link to /++skin++centershock/cs/+/%40%40AddCSLink.html, 
NOT to the URL but withount the /+/ (what the Folder link does at the 
moment), since this method is broken somehow.


Thanks for you help,

Florian



Am Donnerstag, 29. September 2005 14:45 schrieb Julien Anguenot:
> Yup please. I could investigate much more easily.
>
>   J.
>
> Florian Lindner wrote
>
> > Hi,
> > no one any more ideas?  *desperated* I can't really believ that this
> > error has not occured to anyone else, since IMO it is very a standard
> > situation...
> >
> > Would it help if I create a small package which demonstrates the error?
> >
> > Thx,
> >
> > Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-29 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yup please. I could investigate much more easily.

J.

Florian Lindner wrote
> Hi,
> no one any more ideas?  *desperated* I can't really believ that this error 
> has 
> not occured to anyone else, since IMO it is very a standard situation...
> 
> Would it help if I create a small package which demonstrates the error?
> 
> Thx,
> 
> Florian
> 


- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDO+H8GhoG8MxZ/pIRAi6UAJ9rL5XIeDj1eGN7U7XNQeYF6LbnYQCdF7xj
XhC9S2Ml/HwK0nuTastmaHg=
=fM0P
-END PGP SIGNATURE-
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-29 Thread Florian Lindner
Hi,
no one any more ideas?  *desperated* I can't really believ that this error has 
not occured to anyone else, since IMO it is very a standard situation...

Would it help if I create a small package which demonstrates the error?

Thx,

Florian

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Dienstag, 27. September 2005 17:14 schrieb Julien Anguenot:
> Florian Lindner wrote:
> > Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot:
> >>Florian Lindner wrote:
> >>>Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner:
> Hello,
> I've a wierd error.
> 
> I've a configure.zcml with:
> 

[...]

> 
> But this gives a configuration error upon startup:
> 
>  File "/home/florian/Zope3/src/zope/app/publisher/browser/menumeta.py",
> line 214, in _checkViewFor
>    raise ConfigurationError(
> zope.configuration.config.ConfigurationExecutionError:
> zope.configuration.exceptions.ConfigurationError: view name
> AddCSLink.html not found
>  in:
>  File
> "/home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.z
> cm l" , line 20.4-27.6
>    title="Link"
>  class="CS.Link.link.Link"
>  view="AddCSLink.html"
>  permission="CS.Add"
>  for="CS.ContentFolder.interfaces.IContentFolder"
>  menu="CSaddMenu"
>  />
> 
> 
> I really don't understand why the view is not found...
> >>>
> >>>I still have this problem. Is it just to easy so that noone answers me
> >>> or does really nobody knows some help?
> >>>
> >>>I'm really stuck with that. If somebody knows something, _please_
> >>> answer!
> >>
> >>Hi Florian,
> >>
> >>It means the view name "AddCSLink.html" is not registred for the
> >>CS.ContentFolder.interfaces.IContentFolder *and* the default layer.
> >>
> >>It used to work before the #307 collector issue fix.
> >>
> >>See :
> >>http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/browser/menumeta.p
> >>y? rev=37584&view=auto
> >>
> >>_checkViewFor()
> >
> > The arguments in _checkViewFor are:
> >
> > for_ = 
> > layer =  > zope.publisher.interfaces.browser.IDefaultBrowserLayer>
> > view_name = AddCSLink.html
> >
> >>and addMenuItem()
> >
> > What information you want from addMenuItem?
> >
> >>Maybe a more verbose error is needed saying on which interfaces the
> >>multi-adaper lookup failed ?
> >
> > It works when I take the for attribute out of the addMenuItem directive.
> > However I want to have this addform displayed in the menu when I have a
> > view on IContentFolder.  Without the for attribute it is not shown.
> > The addform works perfectly from contentfolderobject/+/AddCSLink.html. I
> > just want to have a addMenuItem in the CSaddMenu that is shown on all
> > views on IContentFolder. All that should be placed in the centersock
> > layer.
> >
> > I hope I could express what I mean...  ;-)
>
> Try to add a layer="centershock" within your addMenuItem directive such
> as :
>
>  title="Link"
>class="CS.Link.link.Link"
>view="AddCSLink.html"
>permission="CS.Add"
>for="CS.ContentFolder.interfaces.IContentFolder"
>menu="CSaddMenu"
>layer="centershock"
>/>

ZopeXMLConfigurationError: File 
"/home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.zcml", 
line 20.4-28.7
ConfigurationError: ('Unrecognized parameters:', 'layer')

It is also not listed in apidoc.

The method to create the menu item directly in the addform directive works but 
is somehow buggy. See the tread: "Object Name field on addforms" started from 
me at 11.09.2005 15:04.

Any other ideas?

Thanks,

Florian

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-27 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Florian Lindner wrote:
> Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot:
> 
>>Florian Lindner wrote:
>>
>>>Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner:
>>>
Hello,
I've a wierd error.

I've a configure.zcml with:

   >>>   schema="CS.Link.interfaces.ILink"
   name="AddCSLink.html"
   content_factory="CS.Link.link.Link"
   permission="CS.Add"
   layer="centershock"
   />

   >>>   title="Link"
   class="CS.Link.link.Link"
   view="AddCSLink.html"
   permission="CS.Add"
   for="CS.ContentFolder.interfaces.IContentFolder"
   menu="CSaddMenu"
   />

But this gives a configuration error upon startup:

 File "/home/florian/Zope3/src/zope/app/publisher/browser/menumeta.py",
line 214, in _checkViewFor
   raise ConfigurationError(
zope.configuration.config.ConfigurationExecutionError:
zope.configuration.exceptions.ConfigurationError: view name
AddCSLink.html not found
 in:
 File
"/home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.zcm
l" , line 20.4-27.6
 >>> title="Link"
 class="CS.Link.link.Link"
 view="AddCSLink.html"
 permission="CS.Add"
 for="CS.ContentFolder.interfaces.IContentFolder"
 menu="CSaddMenu"
 />


I really don't understand why the view is not found...
>>>
>>>I still have this problem. Is it just to easy so that noone answers me or
>>>does really nobody knows some help?
>>>
>>>I'm really stuck with that. If somebody knows something, _please_ answer!
>>
>>Hi Florian,
>>
>>It means the view name "AddCSLink.html" is not registred for the
>>CS.ContentFolder.interfaces.IContentFolder *and* the default layer.
>>
>>It used to work before the #307 collector issue fix.
>>
>>See :
>>http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/browser/menumeta.py?
>>rev=37584&view=auto
>>
>>_checkViewFor() 
> 
> 
> The arguments in _checkViewFor are:
> 
> for_ = 
> layer =  zope.publisher.interfaces.browser.IDefaultBrowserLayer>
> view_name = AddCSLink.html
> 
> 
> 
>>and addMenuItem() 
> 
> 
> What information you want from addMenuItem?
> 
> 
>>Maybe a more verbose error is needed saying on which interfaces the
>>multi-adaper lookup failed ?
> 
> 
> It works when I take the for attribute out of the addMenuItem directive. 
> However I want to have this addform displayed in the menu when I have a view 
> on IContentFolder.  Without the for attribute it is not shown.
> The addform works perfectly from contentfolderobject/+/AddCSLink.html. I just 
> want to have a addMenuItem in the CSaddMenu that is shown on all views on 
> IContentFolder. All that should be placed in the centersock layer.
> 
> I hope I could express what I mean...  ;-)
> 

Try to add a layer="centershock" within your addMenuItem directive such
as :

 

J.

- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDOWHHGhoG8MxZ/pIRAmrdAJ9tmYaCMLK2BuDWvNzX/eqaVaUkQwCeKajC
gAkw8Y/FcEcmtSByPHXBAOU=
=GNIs
-END PGP SIGNATURE-
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot:
> Florian Lindner wrote:
> > Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner:
> >>Hello,
> >>I've a wierd error.
> >>
> >>I've a configure.zcml with:
> >>
> >> >>schema="CS.Link.interfaces.ILink"
> >>name="AddCSLink.html"
> >>content_factory="CS.Link.link.Link"
> >>permission="CS.Add"
> >>layer="centershock"
> >>/>
> >>
> >> >>title="Link"
> >>class="CS.Link.link.Link"
> >>view="AddCSLink.html"
> >>permission="CS.Add"
> >>for="CS.ContentFolder.interfaces.IContentFolder"
> >>menu="CSaddMenu"
> >>/>
> >>
> >>But this gives a configuration error upon startup:
> >>
> >>  File "/home/florian/Zope3/src/zope/app/publisher/browser/menumeta.py",
> >>line 214, in _checkViewFor
> >>raise ConfigurationError(
> >>zope.configuration.config.ConfigurationExecutionError:
> >>zope.configuration.exceptions.ConfigurationError: view name
> >> AddCSLink.html not found
> >>  in:
> >>  File
> >>"/home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.zcm
> >>l" , line 20.4-27.6
> >>   >>  title="Link"
> >>  class="CS.Link.link.Link"
> >>  view="AddCSLink.html"
> >>  permission="CS.Add"
> >>  for="CS.ContentFolder.interfaces.IContentFolder"
> >>  menu="CSaddMenu"
> >>  />
> >>
> >>
> >>I really don't understand why the view is not found...
> >
> > I still have this problem. Is it just to easy so that noone answers me or
> > does really nobody knows some help?
> >
> > I'm really stuck with that. If somebody knows something, _please_ answer!
>
> Hi Florian,
>
> It means the view name "AddCSLink.html" is not registred for the
> CS.ContentFolder.interfaces.IContentFolder *and* the default layer.
>
> It used to work before the #307 collector issue fix.
>
> See :
> http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/browser/menumeta.py?
>rev=37584&view=auto
>
> _checkViewFor() 

The arguments in _checkViewFor are:

for_ = 
layer = 
view_name = AddCSLink.html


> and addMenuItem() 

What information you want from addMenuItem?

> Maybe a more verbose error is needed saying on which interfaces the
> multi-adaper lookup failed ?

It works when I take the for attribute out of the addMenuItem directive. 
However I want to have this addform displayed in the menu when I have a view 
on IContentFolder.  Without the for attribute it is not shown.
The addform works perfectly from contentfolderobject/+/AddCSLink.html. I just 
want to have a addMenuItem in the CSaddMenu that is shown on all views on 
IContentFolder. All that should be placed in the centersock layer.

I hope I could express what I mean...  ;-)

Thanks for your help!

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-27 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Florian Lindner wrote:
> Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner:
> 
>>Hello,
>>I've a wierd error.
>>
>>I've a configure.zcml with:
>>
>>>schema="CS.Link.interfaces.ILink"
>>name="AddCSLink.html"
>>content_factory="CS.Link.link.Link"
>>permission="CS.Add"
>>layer="centershock"
>>/>
>>
>>>title="Link"
>>class="CS.Link.link.Link"
>>view="AddCSLink.html"
>>permission="CS.Add"
>>for="CS.ContentFolder.interfaces.IContentFolder"
>>menu="CSaddMenu"
>>/>
>>
>>But this gives a configuration error upon startup:
>>
>>  File "/home/florian/Zope3/src/zope/app/publisher/browser/menumeta.py",
>>line 214, in _checkViewFor
>>raise ConfigurationError(
>>zope.configuration.config.ConfigurationExecutionError:
>>zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html
>>not found
>>  in:
>>  File
>>"/home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.zcml"
>>, line 20.4-27.6
>>  >  title="Link"
>>  class="CS.Link.link.Link"
>>  view="AddCSLink.html"
>>  permission="CS.Add"
>>  for="CS.ContentFolder.interfaces.IContentFolder"
>>  menu="CSaddMenu"
>>  />
>>
>>
>>I really don't understand why the view is not found...
> 
> 
> I still have this problem. Is it just to easy so that noone answers me or 
> does 
> really nobody knows some help?
> 
> I'm really stuck with that. If somebody knows something, _please_ answer!
> 

Hi Florian,

It means the view name "AddCSLink.html" is not registred for the
CS.ContentFolder.interfaces.IContentFolder *and* the default layer.

It used to work before the #307 collector issue fix.

See :
http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/browser/menumeta.py?rev=37584&view=auto

_checkViewFor() and addMenuItem()

Maybe a more verbose error is needed saying on which interfaces the
multi-adaper lookup failed ?

J.


- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDOUpwGhoG8MxZ/pIRAizgAJ0V43VrwW9YeOPmv86qDnWJXo7MYACfcs/M
alFnLoEHnzfT+ubJM/UQ0kE=
=HV5y
-END PGP SIGNATURE-
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner:
> Hello,
> I've a wierd error.
>
> I've a configure.zcml with:
>
>  schema="CS.Link.interfaces.ILink"
> name="AddCSLink.html"
> content_factory="CS.Link.link.Link"
> permission="CS.Add"
> layer="centershock"
> />
>
>  title="Link"
> class="CS.Link.link.Link"
> view="AddCSLink.html"
> permission="CS.Add"
> for="CS.ContentFolder.interfaces.IContentFolder"
> menu="CSaddMenu"
> />
>
> But this gives a configuration error upon startup:
>
>   File "/home/florian/Zope3/src/zope/app/publisher/browser/menumeta.py",
> line 214, in _checkViewFor
> raise ConfigurationError(
> zope.configuration.config.ConfigurationExecutionError:
> zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html
> not found
>   in:
>   File
> "/home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.zcml"
>, line 20.4-27.6
>  title="Link"
>   class="CS.Link.link.Link"
>   view="AddCSLink.html"
>   permission="CS.Add"
>   for="CS.ContentFolder.interfaces.IContentFolder"
>   menu="CSaddMenu"
>   />
>
>
> I really don't understand why the view is not found...

I still have this problem. Is it just to easy so that noone answers me or does 
really nobody knows some help?

I'm really stuck with that. If somebody knows something, _please_ answer!

Thanks,

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users