I want to add HTML files to the Yihaw directory but when I use "add file" it creates its own header thereby cancelling out my header in the file. If I use the add text note or other methods for adding objects you can paste HTML into a form but cannot select from the OS (upload). Am I missing something here or is it a little difficult to add these types of items? I may want to edit an HTML file but there is no mechanism for doing this with add file. All I am trying to provide an easy way to display/manage hierarchical html files in folders. I may want to add a squishdot object on some folders and would like to incorporate banner ads, etc. Am I better of with straight Zope? Is there another product that will do this? If I use straight Zope, is there an easy way to show a folders dtml documents via DTML? --Sean
Hello Sean, I sounds like you're trying to use Yihaw in a manner it was not intended. A better approach would be to create a new object subclass it off "Object Manager" and then provide an index_html for the new object, that lists the content of the folder. /Soren Roug Sean Kelley wrote:
I want to add HTML files to the Yihaw directory but when I use "add file" it creates its own header thereby cancelling out my header in the file. If I use the add text note or other methods for adding objects you can paste HTML into a form but cannot select from the OS (upload). Am I missing something here or is it a little difficult to add these types of items? I may want to edit an HTML file but there is no mechanism for doing this with add file.
All I am trying to provide an easy way to display/manage hierarchical html files in folders. I may want to add a squishdot object on some folders and would like to incorporate banner ads, etc. Am I better of with straight Zope? Is there another product that will do this? If I use straight Zope, is there an easy way to show a folders dtml documents via DTML?
--Sean
_______________________________________________ Zope maillist - Zope@zope.org 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 )
I just tried installing a freshly downloaded copy of YihawDirectory.zexp into a relatively new 2.2.1b1, but in vain. <snip> Error Type: Permission mapping error Error Value: Attempted to map a permission to a permission, Add Yihaw Objects, that is not valid. This should never happen. (Waaa). <snip> I'm still looking for a way to get rid of the "checked" state of some boolean properties, i.e. "toplevel" or "highlight" and such. Once it is set, it sticks. -- o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394 /\ * GMD mbH #include _`\ `_<=== Schloss Birlinghoven, <std.disclaimer> __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________
On Mon, Aug 21, 2000 at 05:03:37PM +0200, Wolfgang Strobl wrote:
I just tried installing a freshly downloaded copy of YihawDirectory.zexp into a relatively new 2.2.1b1, but in vain.
<snip> Error Type: Permission mapping error Error Value: Attempted to map a permission to a permission, Add Yihaw Objects, that is not valid. This should never happen. (Waaa). <snip>
I've also met a "permission mapping error" in 2.2.1b1... After correcting the ZDiscussions comma bug mentioned before, I tried to import ZDiscussions.zexp, continuing the installation process, and got: Error Type: Permission mapping error Error Value: Attempted to map a permission to a permission, Add ZDiscussions Items, that is not valid. This should never happen. (Waaa). with the following traceback: Traceback (innermost last): File /usr/local/lib/Zope-2.2.1b1/lib/python/ZPublisher/Publish.py, line 222, i n publish_module File /usr/local/lib/Zope-2.2.1b1/lib/python/ZPublisher/Publish.py, line 187, i n publish File /usr/local/lib/Zope-2.2.1b1/lib/python/Zope/__init__.py, line 221, in zpu blisher_exception_hook (Object: Traversable) File /usr/local/lib/Zope-2.2.1b1/lib/python/ZPublisher/Publish.py, line 171, i n publish File /usr/local/lib/Zope-2.2.1b1/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_importObject) File /usr/local/lib/Zope-2.2.1b1/lib/python/ZPublisher/Publish.py, line 112, i n call_object (Object: manage_importObject) File /usr/local/lib/Zope-2.2.1b1/lib/python/OFS/ObjectManager.py, line 508, in manage_importObject (Object: Traversable) File /usr/local/lib/Zope-2.2.1b1/lib/python/OFS/ObjectManager.py, line 263, in _setObject (Object: Traversable) File /usr/local/lib/Zope-2.2.1b1/lib/python/OFS/ObjectManager.py, line 271, in manage_afterAdd (Object: Traversable) File /usr/local/lib/Zope-2.2.1b1/lib/python/ZClasses/ZClass.py, line 422, in m anage_afterAdd (Object: ZDTopic) File /usr/local/lib/Zope-2.2.1b1/lib/python/OFS/ObjectManager.py, line 271, in manage_afterAdd (Object: Traversable) File /usr/local/lib/Zope-2.2.1b1/lib/python/App/Factory.py, line 144, in manag e_afterAdd (Object: RoleManager) File /usr/local/lib/Zope-2.2.1b1/lib/python/AccessControl/PermissionMapping.py , line 137, in manage_setPermissionMapping (Object: RoleManager) (Info: (['Access contents information', 'Add BTree Folders', 'Add Database M ethods', 'Add Documents, Files, and Images', 'Add Documents, Images, and Files', 'Add External Methods', 'Add Folders', 'Add MailHost objects', 'Add SiteRoots', 'Add User Folders', 'Add Versions', 'Add Vocabularies', 'Add Z Gadfly Database Connections', 'Add ZCatalogs', 'Add Zope Tutorials', 'Change DTML Documents', 'C hange DTML Methods', 'Change Database Connections', 'Change Database Methods', ' Change External Methods', 'Change Images and Files', 'Change Versions', 'Change configuration', 'Change permissions', 'Change proxy roles', 'Create class instan ces', 'Delete objects', 'Edit Factories', 'FTP access', 'Import/Export objects', 'Join/leave Versions', 'Manage Vocabulary', 'Manage Z Classes', 'Manage ZCatalo g Entries', 'Manage properties', 'Manage users', 'Open/Close Database Connection ', 'Open/Close Database Connections', 'Query Vocabulary', 'Save/discard Version changes', 'Search ZCatalog', 'Set Access Rule', 'Take ownership', 'Test Database Connections', 'Undo changes', 'Use Database Methods', 'Use Factories', 'Use mai lhost services', 'View', 'View History', 'View management screens'], 'Add ZDiscu ssions Items', 0)) Permission mapping error: (see above) -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/
I (the Yihaw developer) get the same problem with 2.2.1b1. I guess that's why Digital Creations call it a beta version. I don't know why your boolean properties are "sticky". What version of Zope have you installed Yihaw on? Wolfgang Strobl wrote:
I just tried installing a freshly downloaded copy of YihawDirectory.zexp into a relatively new 2.2.1b1, but in vain.
<snip> Error Type: Permission mapping error Error Value: Attempted to map a permission to a permission, Add Yihaw Objects, that is not valid. This should never happen. (Waaa). <snip>
I'm still looking for a way to get rid of the "checked" state of some boolean properties, i.e. "toplevel" or "highlight" and such. Once it is set, it sticks.
On 22 Aug 2000, 11:15 Soren Roug wrote:
I don't know why your boolean properties are "sticky". What version of Zope have you installed Yihaw on?
Various, starting with 2.1.6. On what version of Zope doesn't doesn't it display this behaviour, IYO? Anyway. 1. Install Zope 2.2.0 on Windows 2000, create user id with manager role. 2. Copy yhawdirectory.zexp into import folder 3. log in, go to product folder 4 import yihawdirectory.zexp 5. create "Catalog" in root folder 6. Add "Yihaw folder" to root folder 7. Add "Yihaw News Item" to that folder, fill in some test data, into Title and Description, display it. 8. Now check "Highlight" , push Save Changes and display it again. The Highlight checkbox is checked now. So far so good. 9. Uncheck "Highlight" and push Save Changes. Result: The boolean Highlight property checkbox is still checked. There is no way of making it unchecked, again. [...]
I'm still looking for a way to get rid of the "checked" state of some boolean properties, i.e. "toplevel" or "highlight" and such. Once it is set, it sticks.
-- o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394 /\ * GMD mbH #include _`\ `_<=== Schloss Birlinghoven, <std.disclaimer> __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________
On Tue, 22 Aug 2000, Wolfgang Strobl wrote:
9. Uncheck "Highlight" and push Save Changes.
Result: The boolean Highlight property checkbox is still checked. There is no way of making it unchecked, again.
This *sounds* like the boolean property bug that appeared in 2.2 (I think) and was supposedly fixed in 2.2.1. By any chance does Yihaw use manage_changeProperties instead of manage_editProperties in its propertysheet edit method? That would lead to the observed behavior since unchecked boolean check boxes do not appear in REQUEST and thus are not affected by a manage_changeProperties call. --RDM
On 22 Aug 00, at 22:15, R. David Murray wrote:
On Tue, 22 Aug 2000, Wolfgang Strobl wrote:
9. Uncheck "Highlight" and push Save Changes.
Result: The boolean Highlight property checkbox is still checked. There is no way of making it unchecked, again.
This *sounds* like the boolean property bug that appeared in 2.2 (I think) and was supposedly fixed in 2.2.1.
Well, I think I had the very same behaviour on 2.1.6. Anyway, I tried it on an old 2.1.2 server which still awaits upgrading, and, indeed, here those boolean properties work..
By any chance does Yihaw use manage_changeProperties instead of manage_editProperties in its propertysheet edit method?
I already checked this, and no, it doesn't. But I prefer pure Python and so don't claim knowing much about Zclasses. In /Control_Panel / Products / YihawDirectory / YihawChannel / propertysheets / methods / YihawBase / propertysheets / methods / manage_baseproperties it says <input type="submit" name="manage_editProperties:method" for the boolean properties in question.
That would lead to the observed behavior since unchecked boolean check boxes do not appear in REQUEST and thus are not affected by a manage_changeProperties call.
Sure. In seems to have a different cause in this case, though. Any other ideas what to look out for? I think I'll just wait for 2.2.1 final to arrive ... Thanks! -- Wolfgang Strobl
On 22 Aug 2000, 22:15 R. David Murray wrote:
On Tue, 22 Aug 2000, Wolfgang Strobl wrote:
9. Uncheck "Highlight" and push Save Changes.
Result: The boolean Highlight property checkbox is still checked. There is no way of making it unchecked, again.
This *sounds* like the boolean property bug that appeared in 2.2 (I think) and was supposedly fixed in 2.2.1.
(The story continues) I just installed an actual version of Yihaw into a cvs version of zope, and it seems that this solved the problem. Thanks! Speaking about cvs: How do you people out there who run Zope on Windows too, do install cvs versions of zope? I do it simply by using the latest installer (i.e. Zope-2.2.1b1-win32-x86.exe, currently) for creating a local installation, and copy an actual cvs checkout into the destination directory, afterwards, using the robocopy.exe utility from the nt4 resource kit (it works great on win2000, too). Is there perhaps a better way for installing a cvs checkout on windows? It's obvious that none of the c modules get compiled, but these seem to change rather rarely ... -- o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394 /\ * GMD mbH #include _`\ `_<=== Schloss Birlinghoven, <std.disclaimer> __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________
On Wed, 23 Aug 2000 10:49:15 +0200, "Wolfgang Strobl" <ws@gmd.de> wrote:
Speaking about cvs: How do you people out there who run Zope on Windows too, do install cvs versions of zope? I do it simply by using the latest installer (i.e. Zope-2.2.1b1-win32-x86.exe, currently) for creating a local installation, and copy an actual cvs checkout into the destination directory, afterwards, using the robocopy.exe utility from the nt4 resource kit (it works great on win2000, too).
Is there perhaps a better way for installing a cvs checkout on windows? It's obvious that none of the c modules get compiled, but these seem to change rather rarely ...
I cant think of a better way if you don't have the compiler to hand. Toby Dickenson tdickenson@geminidataloggers.com
On 23 Aug 2000, 14:21 Toby Dickenson wrote:
On Wed, 23 Aug 2000 10:49:15 +0200, "Wolfgang Strobl" <ws@gmd.de> wrote:
Speaking about cvs: How do you people out there who run Zope on Windows too, do install cvs versions of zope? I do it simply by using the latest installer (i.e. Zope-2.2.1b1-win32-x86.exe, currently) for creating a local installation, and copy an actual cvs checkout into the destination directory, afterwards, using the robocopy.exe utility from the nt4 resource kit (it works great on win2000, too).
Is there perhaps a better way for installing a cvs checkout on windows? It's obvious that none of the c modules get compiled, but these seem to change rather rarely ...
I cant think of a better way if you don't have the compiler to hand.
Well, actually I have. But there aren't any workspace and project files (*.dsw and *.dsp). I guess the build environment for Windows (most probably a somewhat modifie Python src dist) isn't part of the cvs tree. -- o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394 /\ * GMD mbH #include _`\ `_<=== Schloss Birlinghoven, <std.disclaimer> __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________
On Wed, 23 Aug 2000 15:47:36 +0200, "Wolfgang Strobl" <ws@gmd.de> wrote:
Well, actually I have. But there aren't any workspace and project files (*.dsw and *.dsp).
Hmmm, no. If you can wait, Ill send you the ones I use early next week.
most probably a somewhat modifie Python src dist
Zope builds happily on a stock python 1.5.2 and the cvs versions of 2.0 too. Toby Dickenson tdickenson@geminidataloggers.com
On 23 Aug 2000, 15:23 Toby Dickenson wrote:
On Wed, 23 Aug 2000 15:47:36 +0200, "Wolfgang Strobl" <ws@gmd.de> wrote:
Well, actually I have. But there aren't any workspace and project files (*.dsw and *.dsp).
Hmmm, no. If you can wait, Ill send you the ones I use early next week.
Sure, thanks!
most probably a somewhat modifie Python src dist
Zope builds happily on a stock python 1.5.2 and the cvs versions of 2.0 too.
Huh? I was under the impression that building python C extensions needs some stuff from the source dist. But I might be wrong here. -- o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394 /\ * GMD mbH #include _`\ `_<=== Schloss Birlinghoven, <std.disclaimer> __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________
On Wed, 23 Aug 2000, Wolfgang Strobl wrote:
Zope builds happily on a stock python 1.5.2 and the cvs versions of 2.0 too.
Huh? I was under the impression that building python C extensions needs some stuff from the source dist. But I might be wrong here.
From my unix viewpoint, I assumed that "stock 1.5.2" *was* the source dist <grin>. Seriously, though, I believe Python 1.5.2 builds on Windows, so you shouldn't have a problem. And yes, building the Zope C extensions requires at least a "devopers" installation of Python, which usually means the source dist. (I *think* that the stuff that is needed is actually a fairly limited number of files, at least if you are using loadable modules, so it might in fact be true that the stock Python Windows install includes the necessary files.)
--RDM
Is there perhaps a better way for installing a cvs checkout on windows? It's obvious that none of the c modules get compiled, but these seem to change rather rarely ...
I'd love to know the answer to this too :-) (mindyou, I might just switch to Unix anyway ;-) cheers, Chris
On 24 Aug 2000, 7:31 Chris Withers wrote: (I asked)
Is there perhaps a better way for installing a cvs checkout on windows? It's obvious that none of the c modules get compiled, but these seem to change rather rarely ...
I'd love to know the answer to this too :-)
(mindyou, I might just switch to Unix anyway ;-)
Which Unix? There are so many to choose from. ;-) I am plagued by at least two different variants I've installed Zope on, and a few more where I just use it, which differ in a sometimes subtle, sometimes not so subtle way. Getting Zope working on a DEC Alpha OSF1, for example, is about as funny as installing a RPM made for Redhat on a Suse distribution. Speaking about Linux - I just noticed that the upcoming Suse distribution (V7) will contain Zope in the "professional edition", see http://www.suse.de/de/produkte/susesoft/linux/Pakete_prof/pak_diff. html and http://www.suse.de/de/produkte/susesoft/linux/Pakete_prof/paket_z ope.html It's a bit old, though: 2.1.6 -- o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394 /\ * GMD mbH #include _`\ `_<=== Schloss Birlinghoven, <std.disclaimer> __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________
On Thu, Aug 24, 2000 at 03:26:29PM +0200, Wolfgang Strobl wrote:
Speaking about Linux - I just noticed that the upcoming Suse distribution (V7) will contain Zope in the "professional edition", see
http://www.debian.org/Packages/stable/web/zope.html The current Debian has it too. As well as the msqlda on some ohter comment products.
It's a bit old, though: 2.1.6
That's what the current Debian release has too. Unstable already has 2.2.0 -- Riku Voipio riku.voipio@tietoenator.com 09-862 60764
Thanks for the response Soren, It sounds like Yihaw is the wrong way to do this. Being a new Zope user, I am not sure what the rest of this message means however. When I create a new opject, would that be creating a folder for example? What does "subclass it off "Object Manager"" mean? The creattion of an index_html file I can do. --Sean On 21 Aug 2000, at 15:42, Soren Roug wrote:
Hello Sean,
I sounds like you're trying to use Yihaw in a manner it was not intended. A better approach would be to create a new object subclass it off "Object Manager" and then provide an index_html for the new object, that lists the content of the folder.
/Soren Roug
Sean Kelley wrote:
I want to add HTML files to the Yihaw directory but when I use "add file" it creates its own header thereby cancelling out my header in the file. If I use the add text note or other methods for adding objects you can paste HTML into a form but cannot select from the OS (upload). Am I missing something here or is it a little difficult to add these types of items? I may want to edit an HTML file but there is no mechanism for doing this with add file.
All I am trying to provide an easy way to display/manage hierarchical html files in folders. I may want to add a squishdot object on some folders and would like to incorporate banner ads, etc. Am I better of with straight Zope? Is there another product that will do this? If I use straight Zope, is there an easy way to show a folders dtml documents via DTML?
--Sean
_______________________________________________ Zope maillist - Zope@zope.org 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 )
participants (10)
-
Chris Withers -
J M Cerqueira Esteves -
R. David Murray -
Riku Voipio -
Sean Kelley -
sean@horse101.com -
Soren Roug -
Toby Dickenson -
Wolfgang Strobl -
Wolfgang Strobl