Re: [Zope] ZClass inheriting from image question
Kapil wrote: > > I want to change the default way the ZClass renders it's information. I > > want more than simply a picture so I crated a new method "index_html" in > > my ZClass. > > > > My question is: How do I display the picture from this index_html method? http://www.zope.org/Members/lalo/Renderable-ZClass -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] ZClass inheriting from image question
Hello, At 18:36 10.08.2000 +, Kapil Thangavelu wrote: >make a dtml doc id:return_image >with body > > >and use that as your source >so in index_html > >"> Works great. Thank you very much for your help. Best regards, Gérard Métrailler Jr. Meeting Maker Inc. ... the intelligent choice for collaborative scheduling Email: [EMAIL PROTECTED] Web: http://www.meetingmaker.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZClass inheriting from image question
Meeting Maker Webmaster wrote: > > Hello, > > At 16:31 10.08.2000 +, Kapil Thangavelu wrote: > > > I am still working on my "users preferences" I mentioned earlier. For now > >I > > > will stay with the standard acl_users as they seem to offer everything I > > > currently need to authenticate the user. On the other side, I am creating > >a > > > new ZClass that will be used to store the user information in properties. > > > As I finally also want to store the picture of the user, I decided to > > > create ZClass that will subclass _ZClass_for_Image. > > > > > > I want to change the default way the ZClass renders it's information. I > > > want more than simply a picture so I crated a new method "index_html" in > >my > > > ZClass. > > > > > > My question is: How do I display the picture from this index_html method? > > > >from the Image.py file > > > > should do it > > This doesn't work. The problem is that returns the > tag using the object name. Well if it does that, it will use the content of > index_html, resulting in an error. > 2nd try make a dtml doc id:return_image with body and use that as your source so in index_html "> Cheers Kapil ___ 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] ZClass inheriting from image question
Hello, At 16:31 10.08.2000 +, Kapil Thangavelu wrote: > > I am still working on my "users preferences" I mentioned earlier. For now >I > > will stay with the standard acl_users as they seem to offer everything I > > currently need to authenticate the user. On the other side, I am creating >a > > new ZClass that will be used to store the user information in properties. > > As I finally also want to store the picture of the user, I decided to > > create ZClass that will subclass _ZClass_for_Image. > > > > I want to change the default way the ZClass renders it's information. I > > want more than simply a picture so I crated a new method "index_html" in >my > > ZClass. > > > > My question is: How do I display the picture from this index_html method? > >from the Image.py file > > should do it This doesn't work. The problem is that returns the tag using the object name. Well if it does that, it will use the content of index_html, resulting in an error. Thank you. Best regards, Gérard Métrailler Jr. Meeting Maker Inc. ... the intelligent choice for collaborative scheduling Email: [EMAIL PROTECTED] Web: http://www.meetingmaker.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZClass inheriting from image question
Meeting Maker Webmaster wrote: > > Hello, > > I am still working on my "users preferences" I mentioned earlier. For now I > will stay with the standard acl_users as they seem to offer everything I > currently need to authenticate the user. On the other side, I am creating a > new ZClass that will be used to store the user information in properties. > As I finally also want to store the picture of the user, I decided to > create ZClass that will subclass _ZClass_for_Image. > > I want to change the default way the ZClass renders it's information. I > want more than simply a picture so I crated a new method "index_html" in my > ZClass. > > My question is: How do I display the picture from this index_html method? from the Image.py file should do it Cheers Kapil ___ 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 inheriting from image question
Hello, I am still working on my "users preferences" I mentioned earlier. For now I will stay with the standard acl_users as they seem to offer everything I currently need to authenticate the user. On the other side, I am creating a new ZClass that will be used to store the user information in properties. As I finally also want to store the picture of the user, I decided to create ZClass that will subclass _ZClass_for_Image. I want to change the default way the ZClass renders it's information. I want more than simply a picture so I crated a new method "index_html" in my ZClass. My question is: How do I display the picture from this index_html method? Thank you for your help. Gérard Métrailler Jr. Meeting Maker Inc. ... the intelligent choice for collaborative scheduling Email: [EMAIL PROTECTED] Web: http://www.meetingmaker.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 )