473,411 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Zope: failed kludge around Plone hardcoding

I'm trying to use Plone again. I do this every few months and usually
drop it after a few days. I keep getting a little closer though. I'm
documenting one of my attempts to make Plone more palatable in case
someone else comes this way (and so that I'll remember).

Plone uses random capitalization everywhere but the place that bothers
me most is "Members". While other uses can be changed or hidden,
"Members" is hardcoded all over and it's likely to appear in URLs I
want to share.

I decided that getting rid of "Members" is not an option. It'll break
way too many things that I don't even want to consider. Instead, I am
trying to work around it with a PortableHole.
http://www.zope.org/Members/TheJester/PortableHole/

To do this, I created a PortableHole in my Plone folder. It's called
"members" and points to "/portal/Members". (Make sure to specify the
full path even from within a VirtualHost.)

Next I edited portal_actions, changing "Members" to "members". That
changes the tab along the top, but I found that when I visited
/members without authenticating, I received an error. I could still
get to individual member folders, but I couldn't generate the
member_search_form.
Unauthorized: You are not allowed to access meta_type in this context

As a test, I gave Members/index_html some proxy roles. That didn't
help. Next I changed it to call the form in Members/.
<dtml-return "Members.member_search_form()">
That did work. At least it generated the form and the form did get
results. The problem is that the results point to "Members/" URLs.

So...I decided to take another approach. I removed my "members"
PortableHole and renamed "Members" to "members". I then created a
new PortableHole named "Members" that points to "members". (This is
just the opposite of the way it had been.)

I returned members/index_html to its default setting and now the form
worked, but the results had URLs of the form "Members/members/kyler".
Ug. It looks like getHomeUrl() is to blame. Also, I tried adding a
new member and the new person was created but the default folders were
not created (correctly).

I'm giving up for now. As a temporary workaround I added
RewriteRule ^/members(.*)$ /Members$1
to my Apache configuration so that I can at least post reasonable URLs.

For my next attempt I suspect that I should use "Members" as the real
folder and overload getHomeUrl() to use "members". I'm not sure how to
do that reasonably.

--kyler
Jul 18 '05 #1
0 1060

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: mir nazim | last post by:
hi, i m planning to start writing intranet applications and want ur real cool advices for choosing the correct platform. the choice is between the three: 1. Twisted 2. Medusa 3. Zope (i do...
0
by: Joel Burton | last post by:
After a hiatus, a new group for Python, Zope, and Plone programmers in DC is forming. Our goal is to network and further educate ourselves on programming in Python. While not exclusively for Zope...
0
by: Joel Burton | last post by:
The newly-formed Zope/Python Users Group of DC announces our upcoming meeting schedule: Mo Jul 19: Zope -- presentation on Archetypes by Joel Burton Th Aug 5: Python -- no topic yet Mo Aug...
4
by: Avery Warren | last post by:
I am investigating converting a wiki site to plone. I am having a lot of difficulty finding good documentation programmatically accessing the ZODB API. A lot of the user feedback is centered on...
3
by: krzychu | last post by:
Hi, I have installed brand new platform - Zope-2-7-6, Python 2.4.1, Plone 2.0.5, OS Debian 1:3.3.6-2. After import a old Plone site from the following platform Zope-2-7-4, Python 2.3.3, Plone...
3
by: Rene Pijlman | last post by:
I have a productional Linux web server with a Python/Zope/Plone. Now I'd like to install a non-Zope Python/ZODB application on the same server. What is the recommended way of doing that? Option...
11
by: kbperry | last post by:
Hi everyone, I am currently a student, and for our HCI class project we are redeveloping our CS website. I attend a very large university (around 30,000 students), and the CS site will need to be...
2
by: d.schulz81 | last post by:
Hi, are there any specific groups for zope / plone regarding questions? my question is: How is it possible to use Zope 3 Products with Plone, which is an extension based on Zope 2?
9
by: Norm | last post by:
Hi, without meaning to start a flame war between the various python web tools, I was wondering if anyone had a review of the status of Zope. For example, is it being used for new projects or...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.