Re: [Zope] Problems with ZPhoto, ZPhotoAlbum, and ZAlbumPage

2000-10-27 Thread Steve Spicklemire


Hi Dave,

   Add a 'defined_views' property to the photo album. Make it a 'tokens'
property with values 'explore fancy simple'. This will get you closer!

-steve

> "Dave" == Dave Belfer-Shevett <[EMAIL PROTECTED]> writes:

Dave> Hey there folks.  I've just downloaded and installed these
Dave> Products into my Zope instance.  I'd talk to any of the
Dave> support groups / lists / etc for these Products, but I can't
Dave> find anythign aside from the author link, and a few small
Dave> hints on the download page.

Dave> I -think- I'm setting up an Album properly.  Here are the
Dave> steps, someone please tell me if this is not correct
Dave> (There's an error that happens that I'll report in a
Dave> moment...)

Dave> 1) Install all the packages 2) Import ZPhotoAlbum via the
Dave> Control panel 3) Go to whatever directory I want to run from
Dave> 4) Add a ZPhotoAlbum object (we'll call it 'abc' for now) 5)
Dave> go into 'abc' folder (note the only thing in it right now is
Dave> 'Vocabulary' 6) Add a ZAlbumPage (calling it 'page1') 7) go
Dave> into 'page1' folder 8) Add a ZPhoto

Dave> Okay, here's where it gets fuzzy.  My initial impression is
Dave> "okay, tha'ts it.  Just keep adding ZPhotos to populate the
Dave> album".  But when going to url.url.com/abc/ I just get the
Dave> default 'index.html'.

Dave> Tinkering, I found the 'Restore DTML' button up on the
Dave> toolbar for the PhotoAlbum.

Dave> So I click that, and get a lot more content in the folder in
Dave> the management screen.

Dave> Now when I go to url.url.com/abc/, I see my index, the
Dave> AlbumPage, and the ZPhoto that I added.

Dave> Here's where the problem happens.  There are 2 buttons at
Dave> the bottom of the page called 'fancy view' and 'explore
Dave> view'.  They should allow different views of the indexes.
Dave> But when I click on one, I get:

Dave> Zope Error

Dave> Zope has encountered an error while publishing this
Dave> resource.

Dave> Error Type: NameError Error Value: defined_views

Dave> here's the traceback:

Dave> Traceback (innermost last): File
Dave> /home/shevett/zope/lib/python/ZPublisher/Publish.py, line
Dave> 222, in publish_module File
Dave> /home/shevett/zope/lib/python/ZPublisher/Publish.py, line
Dave> 187, in publish File
Dave> /home/shevett/zope/lib/python/Zope/__init__.py, line 221, in
Dave> zpublisher_exception_hook (Object: CatalogAware) File
Dave> /home/shevett/zope/lib/python/ZPublisher/Publish.py, line
Dave> 171, in publish File
Dave> /home/shevett/zope/lib/python/ZPublisher/mapply.py, line
Dave> 160, in mapply (Object: switch_view) File
Dave> /home/shevett/zope/lib/python/ZPublisher/Publish.py, line
Dave> 112, in call_object (Object: switch_view) File
Dave> /home/shevett/zope/lib/python/OFS/DTMLMethod.py, line 172,
Dave> in __call__ (Object: switch_view) File
Dave> /home/shevett/zope/lib/python/DocumentTemplate/DT_String.py,
Dave> line 528, in __call__ (Object: switch_view) File
Dave> /home/shevett/zope/lib/python/DocumentTemplate/DT_Util.py,
Dave> line 337, in eval (Object: view not in defined_views or not
Dave> view_id) (Info: defined_views) File , line 0, in ?
Dave> NameError: (see above)


Dave> Any suggestions?

Dave> ---.  Web-based problem management:
Dave> www.stonekeep.com Dave Belfer-Shevett
Dave> >.
Dave> [EMAIL PROTECTED] / I like you... I'll kill you
Dave> last... (from 'Handy \ --< work phrases') |
Dave> \__/


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



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




[Zope] Problems with ZPhoto, ZPhotoAlbum, and ZAlbumPage

2000-10-26 Thread Dave Belfer-Shevett

Hey there folks.  I've just downloaded and installed these Products into
my Zope instance.  I'd talk to any of the support groups / lists / etc for
these Products, but I can't find anythign aside from the author link, and
a few small hints on the download page.

I -think- I'm setting up an Album properly.  Here are the steps, someone
please tell me if this is not correct (There's an error that happens that
I'll report in a moment...)

1) Install all the packages
2) Import ZPhotoAlbum via the Control panel
3) Go to whatever directory I want to run from
4) Add a ZPhotoAlbum object (we'll call it 'abc' for now)
5) go into 'abc' folder
(note the only thing in it right now is 'Vocabulary'
6) Add a ZAlbumPage (calling it 'page1')
7) go into 'page1' folder
8) Add a ZPhoto

Okay, here's where it gets fuzzy.  My initial impression is "okay, tha'ts
it.  Just keep adding ZPhotos to populate the album".  But when going to
url.url.com/abc/ I just get the default 'index.html'. 

Tinkering, I found the 'Restore DTML' button up on the toolbar for the
PhotoAlbum.

So I click that, and get a lot more content in the folder in the
management screen.

Now when I go to url.url.com/abc/, I see my index, the AlbumPage, and
the ZPhoto that I added.

Here's where the problem happens.  There are 2 buttons at the bottom of
the page called 'fancy view' and 'explore view'.  They should allow
different views of the indexes.  But when I click on one, I get:

Zope Error

Zope has encountered an error while publishing this resource.

Error Type: NameError
Error Value: defined_views

here's the traceback:

Traceback (innermost last):
  File /home/shevett/zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /home/shevett/zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /home/shevett/zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: CatalogAware)
  File /home/shevett/zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /home/shevett/zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: switch_view)
  File /home/shevett/zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: switch_view)
  File /home/shevett/zope/lib/python/OFS/DTMLMethod.py, line 172, in
__call__
(Object: switch_view)
  File /home/shevett/zope/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: switch_view)
  File /home/shevett/zope/lib/python/DocumentTemplate/DT_Util.py, line
337, in eval
(Object: view not in defined_views or not view_id)
(Info: defined_views)
  File , line 0, in ?
NameError: (see above)


Any suggestions? 

---.   Web-based problem management: www.stonekeep.com
Dave Belfer-Shevett >.
[EMAIL PROTECTED]  /   I like you... I'll kill you last... (from 'Handy   \
--< work phrases') |
   \__/


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