Re: [Zope-dev] changing/storing Properties with ZPatterns
> At 10:07 AM 12/1/00 +0100, Joachim Schmitz wrote: > > > >this works fine. Now I wanted to have attributes which I don't want to > >display in the form, for example complete attribute. I therefore created > >another dataskin propersheet Internal in AZ with a property complete > >and tried to set it with: > > > > >"ni.propertysheets.Internal.manage_changeProperties(REQUEST,complete='1')"> > > > >But I don't manage to store retrieve this attribute. > >All attributes in the Basic propertysheet I can store and retrieve. > > > >what is the magic behind this ? > > > > Beats me. I know that we use a variety of DataSkin propertysheets in our > apps with no problems, although we are not using persistent storage at the > present time. > > What happens when you try to store "complete"? Is it simply not saved, or > do you get some kind of error? Have you tried other values? Have you > checked your permissions to ensure your code has rights to change the > "Internal" sheet? Its just silently ignored, everything in the Basic-sheet is stored correctly, and I set up the Internal sheet exactly as the Basic. I had the suspicion that only the Sheet listed first is used, but if I list it in the Sheet_Names of PersistentSheets it makes no difference. > Mit freundlichen Grüßen Joachim Schmitz AixtraWare, Ing. Büro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] changing/storing Properties with ZPatterns
At 10:07 AM 12/1/00 +0100, Joachim Schmitz wrote: > >this works fine. Now I wanted to have attributes which I don't want to >display in the form, for example complete attribute. I therefore created >another dataskin propersheet Internal in AZ with a property complete >and tried to set it with: > >"ni.propertysheets.Internal.manage_changeProperties(REQUEST,complete='1')"> > >But I don't manage to store retrieve this attribute. >All attributes in the Basic propertysheet I can store and retrieve. > >what is the magic behind this ? > Beats me. I know that we use a variety of DataSkin propertysheets in our apps with no problems, although we are not using persistent storage at the present time. What happens when you try to store "complete"? Is it simply not saved, or do you get some kind of error? Have you tried other values? Have you checked your permissions to ensure your code has rights to change the "Internal" sheet? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] changing/storing Properties with ZPatterns
Hi, I setup a Specialist with a ZCLass "AZ" for persistent storage. In AZ I setup a Dataskin propertysheet "Basic" with properties Name, Street etc. Now I made dtml-method form which iterates with: over the Basic propertysheet,builds the form, and stores the values within another dtml-method edit with: this works fine. Now I wanted to have attributes which I don't want to display in the form, for example complete attribute. I therefore created another dataskin propersheet Internal in AZ with a property complete and tried to set it with: But I don't manage to store retrieve this attribute. All attributes in the Basic propertysheet I can store and retrieve. what is the magic behind this ? Mit freundlichen Grüßen Joachim Schmitz AixtraWare, Ing. Büro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )