Re: [Zope] Very strange problem with updating an objects properties
> You could save a line by calling this a little differently by using > manage_changeProperties instead: > > change this: > >"_[objId].propertysheets[1].manage_editProperties(REQUEST)"> > > to this: >"_[objId].propertysheets[1].manage_changeProperties(approved=1)"> Thanks for the advice. However the updating is not only regarding the property "approved". I also get lots of other properties from a form before this method. I guess I can specify all the properties but I dont think that will make much of a difference and thats why I was a bit lazy :) > > > So the updating of both of the products are done by > "_[objId].propertysheets[1].manage_editProperties(REQUEST)"> but when I > > try to update pressreleases is says I am unauthorized. > > This is probably an ownership issue. Make sure the DTML method's owner has > manager rights. In Zope 2.2 the user running a method takes on the security > level of the owner of the method even if it is lower than that of the user. > This is in order to prevent certain trojan horse type attacks. I solved the problem yesterday. It was objId that changed somewhere between the from and this method. This is a big problem with Zope. When one is trying to refer to an object that exist but dont have the properties I specify I just get the error "Unauthorized" and not any other error. It is very difficult to try to find the problem with such a strange errormessage... ___ 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] Squishdot upgrade HELP- screwy max posts behaviour
I upgraded my 3.x version of Squishdot to 4.1 I followed all the instructions, but when I got to the part where you "push this button once" after the upgrade to 4, I got an error (so of cource I pushed it many times and now get the message that: Error Type: Index Exists Error Value: The index specified already exists). I hate to say it but I did not right the original error down. Maybe it was the same I was I get now...I don't know. Anyway, now I am having problems. I have not had a single post to the page (it seems like since my upgrade...but cannot be sure). I have added test articles with no problem but nothing new by others. Here is a hard fact illustrating part of my current problem: When I set the options to show 25 maximum posts on main page I get 8 displayed. When I set it to show 50, I get 16. WHAT IS GOING ON? Any help resolving this would be greatly appreciated. Have a look at it at http://www.dressage.to/forum/dressage --Sean ___ 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] It's a call for getting programmers.
Hi, I'd like to know if anyone would like to help us to build this nanotechnology. I'm searching someone that would like to become the webmaster of Atomasoft. here you can see the site so far: www.atomasoft.com Since 1997 we try to make a good organisation, and presently we have a small community of 8 persons, that try to make this NanoSim, a software devoted to promote Nanotechnology. I invite you to read all on my site, and see if we have a potential to become a successful company. --Jon Desp http://www.atomasoft.com/jonathan ___ 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] How to read raw data from HTMLFile?
I would like to pre-process a DTML file (accessed using HTMLFile) before displaying it in the web browser. Example Code: dtml=HTMLFile('manage/mycode', globals()) def cleanUp: # eliminate blank lines and from DTML . def printDTML(self): return self.cleanUp(dtml) The problem is that the dtml variable doesn't return the DTML, but the object reference. Is there a way to fetch the raw DTML content from the HTMLFile object? Kevin Howe ___ 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] List
never mind... web python methods don't have access to map... so my example wouldn't work on a through the web python method... without defining a map function... dieter's method is better. Kapil Thangavelu wrote: > > William JOYE wrote: > > > > Hello, > > > > I'm a newbie in zope. I think is a simple problem but I can find a solution. > > I would like to show 2 lists (ex: list1 and list2) like this : > > > > list1 = 1, 2, 3,... > > list2 = A, B, C,... > > > > list1 + list2 = > > > > 1 A > > 2 B > > 3 C > > > > How can I iterate 2 lits in one dtml-in ? > > for me the easiest way seems to combine the two lists and iterate over > the results in a dtml in. problem is that doing this in dtml is hard > cause of safety restrictions, in python its pretty slack though. here is > a web python method that does the list work > > name: combine > args l1, l2 > return map( (lambda x,y:(x,y)), l1, l2) > > and the dtml > > > - > > > 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 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] confusion
Chris Withers writes: > Can someone explain the difference between: > > > > ...do stuff here... > > Push the root (PARENTS[-1]) on the namespace stack. Push squishdot on the namespace stack. ...do stuff here... > > ...do stuff here... > Push PARENTS[-1].squishdot on the namespace stack. ...do stuff here... Now, when would this make a difference? ___ 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] confusion
Chris Withers writes: > Can someone explain the difference between: > > > Here, your namespace contains all attributes (owned or acquired) of "squishdot" and of "PARENTS[-1]". > ...do stuff here... > > > > and > > Here, your namespace contains all attributes (owned or acquired) of "squishdot" only. > ...do stuff here... > Usually, "squishdot" will have "PARENTS[-1]" in its acquisition context and therefore, the results will be the same. In some weird cases, however, this might not be the case, e.g. if "squishdot" would not be derived from "Acquisition.Implicit". Dieter ___ 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] Bug in
Marcus Gruendler writes: > I am working on a project with Zope. Unfortunately I am having a problem > whith the tag. I am using the batch processing feature and want to > show only one element per sequence. I do this by setting size=1 and orphan=1. > But th tag only iterates over the first two records (I have 8 > records). It iterates over all 8 records when I use size=2 orphan=1. I think > this is a bug. It is. It is reported (in this list and the Collector (URL:http://classic.zope.org:8080/Collector)). It is fixed in 2.2. There is a patch at URL:http://www.dieter.handshake.de/pyprojects/zope/dt_in.pat Dieter ___ 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] List
William JOYE writes: > I'm a newbie in zope. I think is a simple problem but I can find a solution. > I would like to show 2 lists (ex: list1 and list2) like this : > > list1 = 1, 2, 3,... > list2 = A, B, C,... > > list1 + list2 = > > 1 A > 2 B > 3 C > > How can I iterate 2 lits in one dtml-in ? This will work for lists up to 999 elements. Dieter ___ 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] interating though REQUEST.form in python???
Kevin Howe writes: > for name,value in REQUEST.form.items: Try: for name,value in REQUEST.form.items(): "items" is a method that must be called to return a sequence of tuples. Dieter ___ 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] TypeError trying to use Dtml-in on Zclass
Thank you Kapil, Yes, the problem was I didn't understand the difference between dtml-in and dtml-with. I wasn't trying to process a list. Does what I wanted it to do. Thanks again. Kevin Smith Quoting Kapil Thangavelu <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > > > Hi All, > > > > I have a Zclass object called States > > built with folder and renderable > > > > When I try > > > > > > > > > > > > I get > > Error Type: TypeError > > Error Value: hasattr, argument 2: expected string, int > > found > > > > Does anyone know why this is happening? > > educated guess: > > dtml-in processes lists. you can pass it in any pythonish expression > that generates a list. your passing it in the object States which would > be fine only if your render method generates a list. i'm thinking what > you want is > > if you want is a specific method of States like individual states > > > > > > 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] a corrupted ZODB?
tav writes: > was working happily on the server, when all of a sudden it keeled over and > didnt restart automatically. so, i went to restart it manually, and got the > following error message: > > > ZODB.FileStorage.FileStorageFormatError: /usr/local/zope/z1/var/Data.fs > maybe the "fsrecover" in "ZODB" of Zope 2.2 or the "tranalyse" product may help you. Dieter ___ 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] CorruptedDataError
Daniel Rusch writes: > My colleague had a dtml document turn itself into a folder. When we try > to delete it we get a "CorruptedDataError". Any thoughts on how to kill > the offending vermin? Zope 2.2 contains a "fsrecover.py" in "ZODB". Alternatively, there is the "tranalyser" product. Dieter ___ 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] Importable Xron
Xron is alpha-level software, which means (among other things) that it is new, hasn't received a lot of use, doesn't have a lot ready examples, may be lacking documentation quantity or quality. If you want to use Xron in its current alpha state you must be willing to invest a little effort in learning to use the product. For my part, as developer of the product, I am willing to guide you through the process on mailto:[EMAIL PROTECTED] and thereby create a documentation trail here on the mailing list that others can use and that can be distilled into more documentation and examples. So if you are ready, so am I. But, for me to guide you, I will need to ask you to be more specific about your experience level, what relevant documents you have read, what specifically in the document you didn't understand, what tutorials you have followed, what attempts you have made to use the product, what errors resulted, etc. First, to make repetitive events, you must create a ZClass. Have you read the ZClass documentation and How-To's? Have you created a ZClass before? If not, I recommend that you do so before we continue. From: "Peter Bengtsson" <[EMAIL PROTECTED]> > I want to use the Xron product but I don't understand how to use it. > (http://www.zope.org/Members/lstaffor/Xron/) > > All this Zope Zen jargon makes me dissy. What I don't understand is where > and why to put reschedules at certain places. You have to create a ZClass that is just like Xron DTML Method class, except that it calculates the time that the event will next occur based upon the needs of your application. You create your ZClass in Control Panel / Products. When you create your ZClass, you will be asked what classes to base it on (subclass from); you must select Xron DTML Method. If you do nothing else, your ZClass will behave exactly like Xron DTML Method class. But you want it to do something different. You what it to calculate the next time for the event. Xron DTML Method makes its default calculation in the method 'reschedule'. You want to replace 'reschedule' with your own calculation. You do that by adding a DTML method, named 'reschedule' to you new ZClass. There's a simple example in the README.txt for Xron. > Subclasses and DTML > Methods...etc. > > Can you please include a importable zexp on the download page of Xron. > > I want to do one single simple thing for now. > Send the constant information about various site stats. Do you already have methods that gather the site stats? > These should be sent weekly or hourly or monthly. You could make a separate ZClass subclass of Xron DTML Method for weekly events, another for hourly events, and another for monthly events. Or you could create a single subclass that determines whether to reschedule for next hour, next week, or next month. It's your design decision. I'd recommend starting with just "next hour", as a learning exercize. That way it won't take more than an hour find out whether your application works. > I also want to have more than one instance of Xron. You probably don't want more than one instance of Xron. Xron contains three major parts: the Schedule, the Dispatcher thread, the Xron DTML Method class. Any single system needs only one Schedule and one Dispatcher thread. What you probably need are multiple instances of the Xron DTML Method class or of the subclass you create. Each one of these instances would be a procedure that you want to execute at specific times. Suppose, for example, your subclass of Xron DTML Method is called "Weekly Event" and its reschedule method calculates the next event time thus: Then, you would create Weekly Event objects (also called "instances") for each action that you want to execute weekly. Each Weekly Event instance will be executed by the Dispatcher once a week. What a Weekly Event object actually does when executed is determined by the DTML content of that instance. You could have one Weekly Event that gathers, site statistics. You could have another Weekly Event that sends you an email reminding you to take out the garbage. > > Can somebody give me examples. Especially how you set the date and time. > (I have no experience of cron and I live in GMT+0) Experience with cron will not help you with Xron -- they are only similar in general purpose, not in details of implementation nor interface. You (because you are in GMT+0) can enter dates like this August 9, 2000 14:27:00 GMT Most common unambiguous date formats are accepted; for example Aug 9, 2000 14:27:00 GMT 2000/08/09 14:27:00 GMT 9 Aug 2000 14:27:00 GMT Detailed documentation is in ../lib/python/DateTime/DateTime.py > > Grateful, Peter > Peter Bengtsson - OD Consultancy > Glad to help. -- Loren ___ 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
Re: [Zope] List
William JOYE wrote: > > Hello, > > I'm a newbie in zope. I think is a simple problem but I can find a solution. > I would like to show 2 lists (ex: list1 and list2) like this : > > list1 = 1, 2, 3,... > list2 = A, B, C,... > > list1 + list2 = > > 1 A > 2 B > 3 C > > How can I iterate 2 lits in one dtml-in ? for me the easiest way seems to combine the two lists and iterate over the results in a dtml in. problem is that doing this in dtml is hard cause of safety restrictions, in python its pretty slack though. here is a web python method that does the list work name: combine args l1, l2 return map( (lambda x,y:(x,y)), l1, l2) and the dtml - 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] A Newbie question
>Hi, > I have seen on the howtos how to let apache serve static pages, >but I still haven't seen an answer to the following question: >Suppose I already have a big site that uses perl/cshell. Now >suppose I want to move to Zope but without loosing any of that >site or even converting. > What would the best solution be? I am assuming that Apache is already your 'Front End'. Even if it is not, not a big deal. > Example: > www.foo.bar is a huge site. > I want to move to Zope but wish to keep the site as is, only >add zope objects with time. In other words, 90% of the site >will stay static as is for a long time. How would you start this thing? At my largest client I have a single Apache server which is front ending probably close to a dozen differenct web server serives running on various classes of machines. Quite a few of them are just linked with their normal URLs, but others are routed through Apaches proxy functions. Let's say that the main site is www.foo.bar as you suggested and you have Zope running under www.foo.bar:8080. If you had a directory under Zope that you wanted to serve called zoot, the normal URL of course would be www.foo.bar:8080/zoot. With the proxy functions you can redirect the URL www.foo.bar/zoot to point to www.foo.bar:8080/zoot and your end users are non-the-wiser for it. Is there a performance hit? Yes, a little. The sites that I work on under this arrangement are not high traffic sites by any stretch of the imagination, but they do serve important information to a select group. This allows us to have what looks like a seemless environment even though it is a function of Zope/Apache/IIS(ugh!!)/DominoGo/AlkalineSearch/WebFocus and other servers. Hope this helps. ___ 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] TypeError trying to use Dtml-in on Zclass
[EMAIL PROTECTED] wrote: > > Hi All, > > I have a Zclass object called States > built with folder and renderable > > When I try > > > > > > I get > Error Type: TypeError > Error Value: hasattr, argument 2: expected string, int > found > > Does anyone know why this is happening? educated guess: dtml-in processes lists. you can pass it in any pythonish expression that generates a list. your passing it in the object States which would be fine only if your render method generates a list. i'm thinking what you want is if you want is a specific method of States like individual states 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] view index_html of zlass
[EMAIL PROTECTED] wrote: > > Zope version 2.1.6 on redhat 6.2 using apache integration zia zope.cgi > > I have created the cdclass example in the zope developer guide on zope.org. > > I have created a dtml document in the cdclass zclass with and > statements in it. > > The zclass instance is called mycd. > > When I try to view the instance called mycd. i get zope error "You are not > authorized to access title_or_id. " > > I made sure all permissions for anonymouse are set to view. What could I be > missing. Thanks for your help. > if your accessing your zope fine through Apache, including management screens it sounds more like a permission problem with you ZClass. make sure that anonymous has permission to access content info as well as view. 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] Transactions
Let me a bit more specific. i'm developing a python product which does some fairly intensive list processing over a long list and adds stuff to the zodb based on that. If it bombs somewhere in the middle of the processing i don't want the whole transaction rolled back. i'm doing my own data integrity check so i want each add to be atomic independent of the transaction. i thought about sub-transactions to get around the enormous mem requirements of the huge transactions but it doesn't solve the problem of atomic adds. is there some way to either turn off transactions for a given python operation or to make an operation autocommit itself in a subtransaction? hmmm... related question (i think) how does one make a method whose effect can't be rolled back? any help appreciated Kapil Kapil Thangavelu wrote: > > quick question. > > Is there a way to turn off transactions for a given python operation? > > 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 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] Transactions
quick question. Is there a way to turn off transactions for a given python operation? 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] Re: [Zope-dev] Permission
Tom Deprez wrote: > > Hi, > > I have this q'n already a long time in my head and I still don't know the > answer to it. It has to do with the security-view. I hope that someone can > shed a light on my brains. > > Why is their an Acquire permission (referred to as acq_perm in following > text) checkbox column? It allows you to honor permission settings made in containing objects. > In order to change a permission for a certain role, we have to check or > uncheck this permission at the roles permission checkbox. I don't understand this. You can grant permissions to a role locally, regardless of whether you acquire permission settings. If you don't acquire, then the role only gets the permissions you set, otherwise, it *may* get permissions from above. > However, for this > to work we have to uncheck the acq_perm column (because if this one is > checked, the permission is taken from parent-folder-objects anyway, the > value of the role checkbox doesn't counts at that moment). You don't have to ncheck the acq_perm column if you simply want to grant a permission to a role. You only need to uncheck the acq_perm column if you want to prevent containing objects from granting a permission to other roles. > As a drawback, > this means that all roles have to be checked/unchecked, because they don't > acquire the permission anymore from one of its parents-folder-objects. So don't uncheck the acq_perm column. > Now, why couldn't this be implemented like the following? Isn't this easier > to grasp? > > The Acq_perm column doesn't exists. Assume that acquisition of a permission > is always Active. The checkboxes of the role show their actual value > (according to the acquisition). Thus if permissionA is checked in the > parent-object, permissionA is also checked. If you want, for a certain role > that this permission is not given, you uncheck permissionA. The subobject > will show an unchecked permissionA box (because it acquires from its > parent). In order to give the subobject again the permission, we only have > to check permissionA. The problem with this is that it doesn't recognize changes made to containers later. > A) In the first approach we've to uncheck the acq_perm checkbox and have to > set the checkbox of every role according to how we want the permission to > be handled by that role. You don't need to uncheck the acq_perm checkbox unless you want to prevent containers from granting permissions. > B) In the second approach we've to uncheck the permission checkbox of the > role(s). Other roles are not effected. > > Am I missing something here? Is my explenation somewhere wrong? Why does > Zope uses the first approach? Which, sounds for me, a little bit more > complicated. By acquiring permission settings you are allowing containers to grant a permission to a role today or sometime in the future. This allows someone to control permissions in a centralized fashion. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! Technical Director (888) 344-4332http://www.python.org Digital Creationshttp://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] A Newbie question
Hi, I have seen on the howtos how to let apache serve static pages, but I still haven't seen an answer to the following question: Suppose I already have a big site that uses perl/cshell. Now suppose I want to move to Zope but without loosing any of that site or even converting. What would the best solution be? Example: www.foo.bar is a huge site. I want to move to Zope but wish to keep the site as is, only add zope objects with time. In other words, 90% of the site will stay static as is for a long time. How would you start this thing? ___ 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] view index_html of zlass
Zope version 2.1.6 on redhat 6.2 using apache integration zia zope.cgi I have created the cdclass example in the zope developer guide on zope.org. I have created a dtml document in the cdclass zclass with and statements in it. The zclass instance is called mycd. When I try to view the instance called mycd. i get zope error "You are not authorized to access title_or_id. " I made sure all permissions for anonymouse are set to view. What could I be missing. Thanks for your help. cj [EMAIL PROTECTED] ___ 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] confusion
>Can someone explain the difference between: > > > > ...do stuff here... > > > >and > > > ...do stuff here... > > Do they behave differently? In what way? Rik ___ 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] TypeError trying to use Dtml-in on Zclass
> >I have a Zclass object called States >built with folder and renderable > >When I try > > > > > > >I get >Error Type: TypeError >Error Value: hasattr, argument 2: expected string, int >found > > >Does anyone know why this is happening? > because you feed it (some method but presumably not dtml-in) int, not strings. But seriously, could you give us some more details about what your code has and preferably a traceback also. That way we might be able to help you better Rik ___ 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] TypeError trying to use Dtml-in on Zclass
Hi All, I have a Zclass object called States built with folder and renderable When I try I get Error Type: TypeError Error Value: hasattr, argument 2: expected string, int found Does anyone know why this is happening? Thank you for your help, Kevin Smith ___ 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] security settings go blank on change!
On Wed, Aug 09, 2000 at 10:08:20AM -0700, Paul Abrams wrote: > Yikes! Every time I try to change my security settings all > of the checkboxes become unset when I save the form! > > 1. Open up any "Security" tab > 2. Change a checkbox > 3. Save the form > 4. Click 'Ok' > 5. ALL of the checkboxes are empty! > > Has anbody else seen this problem? I have a workaround, but > I'd rather have a permanent solution. Any ideas what this > could be? > > Workaround: > I tried to undo the transaction, and saw that > manage_changePermissions was actually called twice. The > first call does what it should but the second call wipes > out all of the checkboxes. Thus, if I undo both > transactions I'm back to my starting point and if I undo > just the latest transaction I actually get what I wanted. What do you actually mean with "3. Save the form", "4. Click 'Ok'"? I generally just click 'Ok'. Somehow your browser seems to submit the form twice for you, once with the correct change and once completely empty. As this works fine for me I must assume your browser does something funny. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] What's Wrong ? ZMySQLDB, insert Ok, select Empty!
I just installed a "MySQL connection" in Zope. Then add a "SQL Method" to insert data into a table named "staff" in MySQL, and succeccfully inserted several entries. I have checked it by mysql (a client program of MySQL). My problem is : I created another "SQL Method" which do "select" from database. The sql command is very simple "select * from staff". I gain nothing back throught this "SQL Method". I have granted "select" right to the username which was used to make connection. No error messages, just "There was no data matching this y2fun (connected) query. " Any suggestions? Thanks a lot. Iap, Singuan [EMAIL PROTECTED] http://y2fun.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] ZPoPyDA installation: help needed
>you stumbled across a tiny problem there :-) Danke. The problem does not seem so tiny, after all. :-) >postgres SQL database server itself as well as you are not running a libc6 >but >mereley a libc5 system ? Correct. RedHat Linux 5.2. >try this: >rpm -qf /lib/libc.so* glibc-2.0.7-29 Old enough to be a fossil, eh? :) >Check out http://rpmfind.net and go to the rpm database and then to Will do. >PS: ever though about upgrading your installation ? You might get benefits >(and >lots of work) by doing this. Leider die ist nicht meine Maschine... too bad. - This is not the first time I install some software, then find out that I need to install something else first, and then find out that to install that "something else", I need to install some other thing first, and to install that "some other thing", I only need to install a whole new Operating System. :) regards, Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Client.py
> hi all > has anybody successfully used Client.py that ships with Zope-2.2.0? i > can't > seem to run it. even on the command line. i've searched the mailing > list, > but to no avail > this is what i did: > python Client.py http://www.zope.org > and here's the traceback. > Traceback (innermost last): > File "Client.py", line 639, in ? > main() > File "Client.py", line 632, in main > headers, body = apply(f,(),kw) > File "Client.py", line 221, in __call__ > raise NotAvailable, RemoteException( > bci.NotAvailable: argument 1: expected read-only character buffer, tuple > found (File: http://www.zope.org Line: > []) > None None for None > what did i do wrong? can i use Client.py from Zope-2.1.x? Hi, I guess Client.py or one of the libs it uses is somewhat broken. I get the exact same error when trying to use utilities/load_site.py from 2.2.0 (and Oleg Broytmann already sent a mail with the same problem to this list). load_site from 2.1.6 works fine though, perhaps that means you can use Client.py from 2.1.6. cheers, oliver ___ 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] Requested Zope feature
On Wed, Aug 09, 2000 at 12:52:35PM -0400, [EMAIL PROTECTED] wrote: > On Wed, Aug 09, 2000 at 04:48:07PM +0100, Seb Bacon wrote: > > yup, this is how i work too. > > > > how about adding some javascript to the manage_* methods that reload the > > related window (if it's open) whenever the source changes, too? a problem > > with this might be ending up with a mass of windows all over your desktop, > > which is invariably horrible. > > > > otoh, there's (almost) no js in the management interface at the moment, and > > i generally think this is a good thing. i hate js. i presume this was a > > design decision from the start? however, if this was to guarantee browser > > interoperability, why are there lots of frames everywhere? and there is > > some js beginning to creep in now (e.g. help screens). > > > > however, this functionality would not replace any existing interface bits so > > perhaps it's not a bad thing. and although i hate js it can be a very > > useful piece of evil. a dynamic tree on the left instead of a yuk frame > > that hardly ever reloads would be a nice thing too. > > > > just thinking aloud. > > > > seb. > > Please don't js this thing to pieces. At least not until there are good > alternative editors/managers available. I run permanently with js disabled, > and when mozilla is stable enough, will run with js permanently removed. > Requiring js to use zope would be enough to convince me to look elsewhere! I am currently implementing Skinnable objects for Zope that'll allow you to easily define an alternative version of the management interface, and switch between these interfaces very easily. You could build your own version that doesn't use JavaScript at all. IIRC, you can tell Mozilla to switch on JavaScript for certain sites though. Believe me, it'll be worth your while allowing JS in the Zope management screens by the time I am done. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] Importable Xron
I want to use the Xron product but I don't understand how to use it. (http://www.zope.org/Members/lstaffor/Xron/) All this Zope Zen jargon makes me dissy. What I don't understand is where and why to put reschedules at certain places. Subclasses and DTML Methods...etc. Can you please include a importable zexp on the download page of Xron. I want to do one single simple thing for now. Send the constant information about various site stats. These should be sent weekly or hourly or monthly. I also want to have more than one instance of Xron. Can somebody give me examples. Especially how you set the date and time. (I have no experience of cron and I live in GMT+0) Grateful, Peter Peter Bengtsson - OD Consultancy ___ 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] substring search on zcatalog textindex
> So the question is, does anyone know of a simple way to get the zcatalog to > also find substring matches on a textindex? > > -- > Peter Armstrong For Text Indexes you can use wildcards like * and ? in searches. So that searching for Foo* would find Foo, FooBar, fool, etc. I'm not sure if this works for Field or Keyword indexes though, I haven't tried it. My though is it only works for text indexes which should help you anyway. Good Luck, Casey Duncan ___ 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] Install problems on FreeBSD
Please help! Install problems on FreeBSD I've installed ZOPE several times before on different systems (win98, NT, Linux) for testing purposes. Always logged in as 'root' I never encountered any problems. Recently I finally decided to upgrade my web-site to a ZOPE-Site and that's when the trouble started. Without the root privilege I had experienced every single problem possible. But finally I managed to build both python and ZOPE. The OS is FreeBSD 4.0-stable and I used both the binary and source package. I how ever can not start neither of them. All I get is a bunch of error messages. I also would like to use ProxyPass and ProxyPassReverse configuration. Do I use w_pcgi.py or wo_pcgi.py to build ZOPE. I think since I will not be using pcgi it should be the latter. I am including the junk I got after trying to start ZOPE. Any help would be greatly appreciated. Install from source: demon:~/zope $ ./start Traceback (innermost last): File "/home/virtuals/gosvald/zope/z2.py", line 554, in ? exec "import "+MODULE in {} File "", line 1, in ? File "/home/virtuals/gosvald/zope/lib/python/Zope/__init__.py", line 94, in ? import ZODB, ZODB.ZApplication, imp File "/home/virtuals/gosvald/zope/lib/python/ZODB/__init__.py", line 85, in ? import sys, ExtensionClass, TimeStamp, cPersistence, Persistence ImportError: /home/virtuals/gosvald/zope/lib/python/ExtensionClass.so: Undefined symbol "PyMethod_Type" demon:/zope $ install from binaries: demon:~/zope2 $ ./start 'import site' failed; use -v for traceback Traceback (innermost last): File "/home/virtuals/gosvald/zope2/z2.py", line 524, in ? import ZServer ImportError: No module named ZServer demon:/zope $ George Osvald OK Studio [EMAIL PROTECTED] http://www.okstudio.com.au Ph: (02) 9792 8501 Fax: (02) 9792 8502 Mob: 0411 766 792 PO Box 552 Padstow NSW 2211 AUSTRALIA ___ 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] Re: [Zope-dev] Request for Comment: Zope API naming convention
Jim Fulton wrote: > > There is a proposal to adopt a naming convention for all > new Zope API methods at: > > http://dev.zope.org/Wikis/DevSite/Proposals/APINamingConvention > > Comments are gratefully accepted at: > > http://dev.zope.org/Wikis/DevSite/Proposals/APINamingConventionDiscussion > > Please make comments by Wednesday April 16. Sorry, make that August 16. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! Technical Director (888) 344-4332http://www.python.org Digital Creationshttp://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Very strange problem with updating an objects properties
> I have made two products, one news-product and one product for > pressreleases. ... For news this works perfectly but for pressreleases this doesnt > work. I am completely puzzled because the code for doing this is the > same for both of them. Here is how it looks: > > > > > ... You could save a line by calling this a little differently by using manage_changeProperties instead: change this: to this: > So the updating of both of the products are done by "_[objId].propertysheets[1].manage_editProperties(REQUEST)"> but when I > try to update pressreleases is says I am unauthorized. This is probably an ownership issue. Make sure the DTML method's owner has manager rights. In Zope 2.2 the user running a method takes on the security level of the owner of the method even if it is lower than that of the user. This is in order to prevent certain trojan horse type attacks. Good Luck, Casey Duncan ___ 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] security settings go blank on change!
Yikes! Every time I try to change my security settings all of the checkboxes become unset when I save the form! 1. Open up any "Security" tab 2. Change a checkbox 3. Save the form 4. Click 'Ok' 5. ALL of the checkboxes are empty! Has anbody else seen this problem? I have a workaround, but I'd rather have a permanent solution. Any ideas what this could be? Workaround: I tried to undo the transaction, and saw that manage_changePermissions was actually called twice. The first call does what it should but the second call wipes out all of the checkboxes. Thus, if I undo both transactions I'm back to my starting point and if I undo just the latest transaction I actually get what I wanted. Thanks in advance, -Paul __ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.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] Requested Zope feature
On Wed, Aug 09, 2000 at 04:48:07PM +0100, Seb Bacon wrote: > yup, this is how i work too. > > how about adding some javascript to the manage_* methods that reload the > related window (if it's open) whenever the source changes, too? a problem > with this might be ending up with a mass of windows all over your desktop, > which is invariably horrible. > > otoh, there's (almost) no js in the management interface at the moment, and > i generally think this is a good thing. i hate js. i presume this was a > design decision from the start? however, if this was to guarantee browser > interoperability, why are there lots of frames everywhere? and there is > some js beginning to creep in now (e.g. help screens). > > however, this functionality would not replace any existing interface bits so > perhaps it's not a bad thing. and although i hate js it can be a very > useful piece of evil. a dynamic tree on the left instead of a yuk frame > that hardly ever reloads would be a nice thing too. > > just thinking aloud. > > seb. Please don't js this thing to pieces. At least not until there are good alternative editors/managers available. I run permanently with js disabled, and when mozilla is stable enough, will run with js permanently removed. Requiring js to use zope would be enough to convince me to look elsewhere! Jim Penny ___ 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] Re: [Zope-dev] RE: Request for Comment: Zope API naming convention
Chris McDonough wrote: > > > Please make comments by Wednesday April 16. > > > > Jim > > Plenty of time... :-) Especially considering that the next Wednesday April 16 is in 2003. -- 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] Client.py
bak wrote: > has anybody successfully used Client.py that ships with Zope-2.2.0? i can't > seem to run it. even on the command line. i've searched the mailing list, > but to no avail There's a bug in Client.py. Change line 212 of lib/python/ZPublisher/Client.py from this: h.connect((self.host, self.port)) to this: h.connect(self.host, self.port) I believe this is already fixed in Zope CVS. -- 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 )
[Zope] install_problems_on_FreeBSD
Please help! Install problems on FreeBSD I've installed ZOPE several times before on different systems (win98, NT, Linux) for testing purposes. Always logged in as 'root' I never encountered any problems. Recently I finally decided to upgrade my web-site to a ZOPE-Site and that's when the trouble started. Without the root privilege I had experienced every single problem possible. But finally I managed to build both python and ZOPE. The OS is FreeBSD 4.0-stable and I used both the binary and source package. I how ever can not start neither of them. All I get is a bunch of error messages. I also would like to use ProxyPass and ProxyPassReverse configuration. Do I use w_pcgi.py or wo_pcgi.py to build ZOPE. I think since I will not be using pcgi it should be the latter. I am including the junk I got after trying to start ZOPE. Any help would be greatly appreciated. Install from source: demon:~/zope $ ./start Traceback (innermost last): File "/home/virtuals/gosvald/zope/z2.py", line 554, in ? exec "import "+MODULE in {} File "", line 1, in ? File "/home/virtuals/gosvald/zope/lib/python/Zope/__init__.py", line 94, in ? import ZODB, ZODB.ZApplication, imp File "/home/virtuals/gosvald/zope/lib/python/ZODB/__init__.py", line 85, in ? import sys, ExtensionClass, TimeStamp, cPersistence, Persistence ImportError: /home/virtuals/gosvald/zope/lib/python/ExtensionClass.so: Undefined symbol "PyMethod_Type" demon:/zope $ install from binaries: demon:~/zope2 $ ./start 'import site' failed; use -v for traceback Traceback (innermost last): File "/home/virtuals/gosvald/zope2/z2.py", line 524, in ? import ZServer ImportError: No module named ZServer demon:/zope $ ___ 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] RE: Request for Comment: Zope API naming convention
Plenty of time... :-) > Please make comments by Wednesday April 16. > > Jim > > -- > Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! > Technical Director (888) 344-4332http://www.python.org > Digital Creationshttp://www.digicool.com http://www.zope.org > > Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email > address may not be added to any commercial mail list with out my > permission. Violation of my privacy with advertising or SPAM will > result in a suit for a MINIMUM of $500 damages/incident, $1500 for > repeats. > ___ 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] Request for Comment: Zope API naming convention
There is a proposal to adopt a naming convention for all new Zope API methods at: http://dev.zope.org/Wikis/DevSite/Proposals/APINamingConvention Comments are gratefully accepted at: http://dev.zope.org/Wikis/DevSite/Proposals/APINamingConventionDiscussion Please make comments by Wednesday April 16. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! Technical Director (888) 344-4332http://www.python.org Digital Creationshttp://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Requested Zope feature
"J. Atwood" wrote: > > A lot of the time I end up going into a document/folder/method just so I can > click on the 'view' tab popping up a new window so I can see it (option > click / right click). > > It would be very nice if DC could add a icon (or take over the existing > icon) to pop a new window with the object ( a target="top" href="object" ) > so you could view the object without having to edit it. This would save > about 2 steps for something that, personally, I do all the time. The link to > the object would still be for editing it. I second that motion. All in favor say Aye! -- Tim Cook -- FreePM Project Coordinator - http://www.freepm.org OS Healthcare Alliance Supporter - http://www.oshca.org ___ 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] Requested Zope feature
yup, this is how i work too. how about adding some javascript to the manage_* methods that reload the related window (if it's open) whenever the source changes, too? a problem with this might be ending up with a mass of windows all over your desktop, which is invariably horrible. otoh, there's (almost) no js in the management interface at the moment, and i generally think this is a good thing. i hate js. i presume this was a design decision from the start? however, if this was to guarantee browser interoperability, why are there lots of frames everywhere? and there is some js beginning to creep in now (e.g. help screens). however, this functionality would not replace any existing interface bits so perhaps it's not a bad thing. and although i hate js it can be a very useful piece of evil. a dynamic tree on the left instead of a yuk frame that hardly ever reloads would be a nice thing too. just thinking aloud. seb. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J. > Atwood > Sent: 09 August 2000 16:16 > To: [EMAIL PROTECTED] > Subject: [Zope] Requested Zope feature > > > A lot of the time I end up going into a > document/folder/method just so I can > click on the 'view' tab popping up a new window so I can see > it (option > click / right click). > > It would be very nice if DC could add a icon (or take over > the existing > icon) to pop a new window with the object ( a target="top" > href="object" ) > so you could view the object without having to edit it. This > would save > about 2 steps for something that, personally, I do all the > time. The link to > the object would still be for editing it. > > Just a thought. > > Thanks, > J > > > ___ > 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 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] List
Hello, I'm a newbie in zope. I think is a simple problem but I can find a solution. I would like to show 2 lists (ex: list1 and list2) like this : list1 = 1, 2, 3,... list2 = A, B, C,... list1 + list2 = 1 A 2 B 3 C How can I iterate 2 lits in one dtml-in ? Can you help me ? ___ 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] It should do! :-)
Meeting Maker Webmaster wrote: > Give a look at http://www.zope.org/Members/htrd/howto/VersionFTPServer > > I don't know if that works with 2.2. I can't think of any reasons why it wouldn't... cheers, Chris ___ 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] threading cont ...boundary="------------98A416F9F4157B1993D63C72"
ZScheduler has been superceded by Xron http://www.zope.org/Members/lstaffor/Xron -- Loren From: "Martijn Pieters" <[EMAIL PROTECTED]> > On Wed, Aug 09, 2000 at 10:12:50AM +0800, Nicholas Lo wrote: > > In fact, I'm trying to use ZOPE to do some automation, eg. reminder > > emails, news clipping, or maybe some WAP applications as well. I want to > > make it able to schedule itselfs so as to better utilise resources, make > > ZOPE more or less real-time, and to prevent overloading or spam from the > > content source. Well, since ZOPE runs from source, I think we may extend > > it to do some remote control works as well. eg. redirect your fax at > > home to your email account, allow you to listen to your home voice > > mails, etc. > > Have a look at ZScheduler, which just just that. If not exactly what you need, > it will certainly show you how to access the Zope database from a seperate > thread: > > http://www.zope.org//Members/lstaffor/ZScheduler > ___ 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] XML: manage_add is always method
Hi I am doing some experiments with XML (using xmlrpc.exe; see /Members/greulen :-) and it turns out manage_addDMTLMethod and manage_addDocument BOTH add a METHOD ?! Therefore it is not possible to add a Document with the XML interface ? Are this kind of API calls not used by Zope itself ? If I add a Document with the Zope browser interface then it works ok. If this is truely a bug, where could I report these XML related bugs ? Gijs Reulen ___ 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] FTP editing in version?
Hello, At 15:02 09.08.2000 +, Marcin Kasperski wrote: >Is it in any way possible to edit via FTP within a version? > >FTP editing is very nice (I love XEmacs and EFS, I hate netscape editing >control). But I do not see any way to edit file via FTP within version. >Do I miss something? Give a look at http://www.zope.org/Members/htrd/howto/VersionFTPServer I don't know if that works with 2.2. 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] Client.py
See collector item #1480 http://classic.zope.org:8080/Collector/1480/view - Original Message - From: "Bak @ kedai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: August 08, 2000 11:08 PM Subject: [Zope] Client.py > hi all > has anybody successfully used Client.py that ships with Zope-2.2.0? i can't > seem to run it. even on the command line. i've searched the mailing list, > but to no avail > > this is what i did: > python Client.py http://www.zope.org > > and here's the traceback. > Traceback (innermost last): > File "Client.py", line 639, in ? > main() > File "Client.py", line 632, in main > headers, body = apply(f,(),kw) > File "Client.py", line 221, in __call__ > raise NotAvailable, RemoteException( > bci.NotAvailable: argument 1: expected read-only character buffer, tuple > found (File: http://www.zope.org Line: > []) > None None for None > > what did i do wrong? can i use Client.py from Zope-2.1.x? > > tia > > > ___ > 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 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] Requested Zope feature
A lot of the time I end up going into a document/folder/method just so I can click on the 'view' tab popping up a new window so I can see it (option click / right click). It would be very nice if DC could add a icon (or take over the existing icon) to pop a new window with the object ( a target="top" href="object" ) so you could view the object without having to edit it. This would save about 2 steps for something that, personally, I do all the time. The link to the object would still be for editing it. Just a thought. Thanks, J ___ 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] substring search on zcatalog textindex
If I remember correctly, partial searching was implemented against text indexes. I have no idea how to use it, however, as AFAIK it was never documented. Maybe someone else can help? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 09, 2000 3:29 AM > To: [EMAIL PROTECTED] > Subject: [Zope] substring search on zcatalog textindex > > > Hi people, > Got a slight problem. > I've got a zcatalog with a heap of names in it, and I want to > be able to > search for and find a name, given I only know part of the name. > I did have it going through the entire catalog and by using > the substring > function, had it only display a result if there was a match, > otherwise it > didn't display anything. This was ok until the catalog grew bigger. > As it is displaying the results in batches of 20, if there is > no match until > say the 300th element in the index, then it will display a > page with only the > "previous 20 results" and "next 20 results" links, and > nothing inbetween > them, and by following the "next" link, you have to go > through 15 such pages > before you get to the actual matches. > > So the question is, does anyone know of a simple way to get > the zcatalog to > also find substring matches on a textindex? > > -- > Peter Armstrong > > ___ > 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 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] FTP editing in version?
Is it in any way possible to edit via FTP within a version? FTP editing is very nice (I love XEmacs and EFS, I hate netscape editing control). But I do not see any way to edit file via FTP within version. Do I miss something? -- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl | | Teams do not make linear progress through analysis. They don't start | with requirement 1 and analyze it, then move to requirement 2 and | analyze it. (...) Analysis tends to be revolutionary. (Martin) ___ 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] SiteAccess-Apache: passing HOST header
"Dr. Dieter Maurer" wrote: > > Does anybody know how to convince Apache to pass > the information from the HTTP HOST header down to ZServer. > > This would be very useful for SiteAccess Access Rules. > I asked similar question about week ago. Someone advised me to use non-standard apache module mod_proxy_and_forward. I must admit, I has not tried it yet (I use binary apache distribution and I still have no time to find apache sources and compile them). -- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl | | A complex system that works is invariably found to have evolved from a | simple system that worked. A complex system designed from scratch | never works and cannot be patched to make it work. (Booch) ___ 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] Installing Zope on a TRU64 platform
Dear Sirs, I have downloaded the source of zope 2.2.0 and I have tried to install it on a DEC 2100 A 500 MPR machine. The operating system is Tru64 v. 4.04 E (formerly Digital Unix). I followed the instructions from INSTALL.txt file so I entered the following command line python w_pcgi.py. First of all I want to report that I had to make some changes in libz.c and TimeStamp.c since the C compiler (cc) reports some type mismatches. For example see calls to PyString_FromStringAndSize(output,..) I had to explicitly type cast output as follows (char *)output. Other "error" (in fact a warning )was reported when compiling xmlparse.c Finally, NO USERNAME AND PASSWORD were returned on my screen at the end, just the word Done! the file access was created and I succeeded to start zope using the start file generated and using my browser it was possible to connect on port 8080 to zope. Two errors: - when accessing Quick start the zope process ends due to a stack overflow - it is impossible to connect through the management interface because no matter what user ands password is provided, the authentication process fails(The Zserver is started on port 8080). I tried to change ther superuser name and password using ther zpasswd.py script but without succes. I want to know if there is anyone who has installed succesfully zope on a Tru64 v. 404. E platform. Thank you in advance for any kind of assistance (compilation and installation hints). Please reply to [EMAIL PROTECTED] Best regards Alexandru Cucereanu ___ 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] ZMySQLDA on Win32 - connect then crash
Phil Harris wrote: > What version of MySQL are you using and also what version of the Zope > Adapter? > MySQL Server version: 3.23.21-beta-debug Was using: ZMySQLDA-1.1.3-nonbin, as per your How-To. Just got: ZMySQLDA-1-1-4 (most recent stable). Same problems. Non-results SQL, 'use tmm', works, but 'show tables' crashes Python/Zope. I installed contents of ZMySQLDA-1-1-4 in: /lib/python/Products/ZMySQLDA Thanks again, William BC Crandall Wiesbaden, Germany [EMAIL PROTECTED] > > - Original Message - > From: "William BC Crandall" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, August 09, 2000 12:56 PM > Subject: [Zope] ZMySQLDA on Win32 - connect then crash > > > Dear Phil: > > > > Thanks for your "How-To: ZMySQLDA on Win32 (2000/02/14)". > > And for your inquiry about troubles with the set up. > > > > Following the steps you outlined, I was able to establish > > a (very) minimal working connection. That is to say, I can > > use Zope's 'Z MySQL Database Connection' 'Test' page with > > the SQL command 'use tmm' (tmm is the name of my database), > > with success: > > > > This statement returned no results. > > --- > > > > SQL Used: > > > > use tmm > > > > > > But, when I 'test' any more complex command > > ('show tables', or 'select * from city' -- > > all without the surrounding quotes ' ), Zope crashes. > > > > Specifically, I get a Window's message: > > > > 'Python: This program has performed an > > illegal operation and will be shut down.' > > > > Details: > > PYTHON executed an invalid instruction in > > module at :01670d74. > > Registers: > > EAX=017c81b1 CS=015f EIP=01670d74 EFLGS=00010286 > > EBX=0001 SS=0167 ESP=01c8fa90 EBP=01670d70 > > ECX=1e10f91f DS=0167 ESI= FS=1307 > > EDX= ES=0167 EDI=012d2a50 GS= > > Bytes at CS:EIP: > > f0 a2 2d 01 30 19 46 01 3d 43 3a 5c 02 00 00 00 > > Stack dump: > > 00764580 1e16f958 00764580 > > 00764580 1e10f831 00b4bb40 00764580 > > 00b4bb40 00f169f4 1e10e74c > > 00b4bb40 00764580 00b04400 > > > > > > I am running MySQL with the --console option, > > which recorded: > > > > C:\mysql\bin\mysqld.exe: ready for connections > > 000809 12:53:27 Aborted connection 3 to db: 'tmm' > > user: 'root' host: `localhost' (Unknown error) > > 000809 12:53:27 Aborted connection 2 to db: 'tmm' > > user: 'root' host: `localhost' (Unknown error) > > > > > > My 'Z MySQL Database Connection' page shows: > > > > The Media Machine (connected) Status > > Id tmm_db > > Title The Media Machine > > Database Connection String tmm root > > > > The database connection is open. > > > > > > My environment: > > Windows 98 4.10.98 > > MySQL Server version: 3.23.21-beta-debug > > Zope version: Zope 2.2.0 (binary release, python 1.5.2, win32-x86) > > Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] > > Computer: Acer Extensa 710TE, PentiumII, 160MB RAM > > > > Thanks in andvance for any thoughts. > > > > William BC Crandall > > Wiesbaden, Germany > > [EMAIL PROTECTED] > > > > > > ___ > > 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 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] Permission
Hi, I have this q'n already a long time in my head and I still don't know the answer to it. It has to do with the security-view. I hope that someone can shed a light on my brains. Why is their an Acquire permission (referred to as acq_perm in following text) checkbox column? In order to change a permission for a certain role, we have to check or uncheck this permission at the roles permission checkbox. However, for this to work we have to uncheck the acq_perm column (because if this one is checked, the permission is taken from parent-folder-objects anyway, the value of the role checkbox doesn't counts at that moment). As a drawback, this means that all roles have to be checked/unchecked, because they don't acquire the permission anymore from one of its parents-folder-objects. Now, why couldn't this be implemented like the following? Isn't this easier to grasp? The Acq_perm column doesn't exists. Assume that acquisition of a permission is always Active. The checkboxes of the role show their actual value (according to the acquisition). Thus if permissionA is checked in the parent-object, permissionA is also checked. If you want, for a certain role that this permission is not given, you uncheck permissionA. The subobject will show an unchecked permissionA box (because it acquires from its parent). In order to give the subobject again the permission, we only have to check permissionA. A) In the first approach we've to uncheck the acq_perm checkbox and have to set the checkbox of every role according to how we want the permission to be handled by that role. B) In the second approach we've to uncheck the permission checkbox of the role(s). Other roles are not effected. Am I missing something here? Is my explenation somewhere wrong? Why does Zope uses the first approach? Which, sounds for me, a little bit more complicated. Thanks for any explanation! Tom Deprez. ___ 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] confusion
Can someone explain the difference between: ...do stuff here... and ...do stuff here... cheers, Chris ___ 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] Very strange problem with updating an objects properties
I have made two products, one news-product and one product for pressreleases. The products are exactly equal except that they have a bit different properties. All the code for processing these two products are equal (except then for the handling of their different properties). Everything works fine except when I want to update the properties of an object. For news this works perfectly but for pressreleases this doesnt work. I am completely puzzled because the code for doing this is the same for both of them. Here is how it looks: For news: For pressreleases: So the updating of both of the products are done by but when I try to update pressreleases is says I am unauthorized. However I am pretty sure this is not the problem. I cant set any proxy rules for the products, I am the manager and manager has got all permissions on those objects. I am still unauthorized when I try to login as superuser. I have been told I am unauthorized before when I in fact has tried to call the objects wrong so thats why I dont think this is a security-problem. Does any1 have a clue of what is wrong here? How can the same code work in one method and not in another? I am running 2.2 final. This is the traceback I get: Traceback (innermost last): File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: handleAdministration) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: handleAdministration) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: handleAdministration) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: handleAdministration) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: pressEntries) File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 342, in eval (Object: _[objId].propertysheets[1].manage_editProperties(REQUEST)) (Info: REQUEST) File, line 0, in ? File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 168, in careful_getitem File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/OFS/DTMLMethod.py, line 189, in validate (Object: handleAdministration) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/AccessControl/ZopeSecurityPolicy.py, line 159, in validate Unauthorized: webdav Since I am completely puzzled of what the issue could be here I would really appreciate if someone could solve this for me. Thanks. ___ 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 publishing simple object directly thru ZServer
-- I have made a very simple class that I am trying to publish thru ZServer: -- class hello: """A very simple publishable objet in zope""" def world(self): "DocStrings are NOT optional" return "hello world" -- I have changed the following in z2.py -- #zh = zhttp_handler(MODULE, '', HTTP_ENV) #hs.install_handler(zh) sys.path.insert(0,'C:/root/pythonScripts/hello') # add MyModule to the Python path my_handler = zhttp_handler('hello', '') # create a handler hs.install_handler(my_handler) # install it in the http server# -- And I get this traceback: -- Zope Error Zope has encountered an error while publishing this resource. exceptions.TypeError Sorry, a Zope error occurred. Traceback (innermost last): File C:\mxmZope\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\mxmZope\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\mxmZope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: world) File C:\mxmZope\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: world) TypeError: unbound method must be called with class instance 1st argument -- Can anyone see the error of my ways? I can't. I would think that: "unbound method must be called with class instance 1st argument" would mean I had forgotten "self" in my method but this is clearly not the case. Kind Regards Max M ___ 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] SiteAccess-Apache: passing HOST header
On Wed, Aug 09, 2000 at 12:25:32PM +0200, Dr. Dieter Maurer wrote: > Does anybody know how to convince Apache to pass > the information from the HTTP HOST header down to ZServer. > > This would be very useful for SiteAccess Access Rules. HTTP_HOST _is_ passed on to ZServer. I built a generic ProxyPassCleanup external method for use as a SiteAcces 2 Access Rule that relies on it: import string def cleanup(self): REQUEST = getattr(self, 'REQUEST', None) if not REQUEST: return 'No REQUEST found' if not REQUEST.has_key('HTTP_HOST'): return 'No Host found' parts = string.split(REQUEST.HTTP_HOST, ':') host = parts[0] port = (len(parts) > 1 and parts[1]) or 80 # Assume default http port REQUEST.setServerURL(hostname=host, port=port) return 'Server URL changed to %s:%s' % (host, port) Just run it as an external method before you assign it as the Access Rule and it will give you a diagnostic message. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] how to override SERVER_URL?
On Wed, Aug 09, 2000 at 05:15:10AM -0500, Roman Milner wrote: > I need to override SERVER_URL so I can trick Zope in to giving me the > correct base href. I can't figure out how. I tried exporting it as an > environment variable, and putting it in the http headers - but neither > worked. Can anyone help? I'm runnig ZServer without apache. > > FWIW, the reason I need to do this is I'm trying to write a simple > load balancing proxy server with failover support that works at the > http level and not at the tcp level for use with ZEO. The problem is > the base href returned to the client points to the actual zope server, > not the proxy server. This is exactly one of the things that SiteAccess was designed to do. If you use Zope 2.2, get SiteAccess 2.0: http://www.zope.org/Members/4am/SiteAccess2 For older versions of Zope, use SiteAccess 1.x. Note that there are some issues with SiteAccess 1.0 that have been solved in the Zope 2.2/SiteAccess 2.x combo: http://www.zope.org/Members/4am/SiteAccess -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] ZMySQLDA on Win32 - connect then crash
Dear Phil: Thanks for your "How-To: ZMySQLDA on Win32 (2000/02/14)". And for your inquiry about troubles with the set up. Following the steps you outlined, I was able to establish a (very) minimal working connection. That is to say, I can use Zope's 'Z MySQL Database Connection' 'Test' page with the SQL command 'use tmm' (tmm is the name of my database), with success: This statement returned no results. --- SQL Used: use tmm But, when I 'test' any more complex command ('show tables', or 'select * from city' -- all without the surrounding quotes ' ), Zope crashes. Specifically, I get a Window's message: 'Python: This program has performed an illegal operation and will be shut down.' Details: PYTHON executed an invalid instruction in module at :01670d74. Registers: EAX=017c81b1 CS=015f EIP=01670d74 EFLGS=00010286 EBX=0001 SS=0167 ESP=01c8fa90 EBP=01670d70 ECX=1e10f91f DS=0167 ESI= FS=1307 EDX= ES=0167 EDI=012d2a50 GS= Bytes at CS:EIP: f0 a2 2d 01 30 19 46 01 3d 43 3a 5c 02 00 00 00 Stack dump: 00764580 1e16f958 00764580 00764580 1e10f831 00b4bb40 00764580 00b4bb40 00f169f4 1e10e74c 00b4bb40 00764580 00b04400 I am running MySQL with the --console option, which recorded: C:\mysql\bin\mysqld.exe: ready for connections 000809 12:53:27 Aborted connection 3 to db: 'tmm' user: 'root' host: `localhost' (Unknown error) 000809 12:53:27 Aborted connection 2 to db: 'tmm' user: 'root' host: `localhost' (Unknown error) My 'Z MySQL Database Connection' page shows: The Media Machine (connected) Status Id tmm_db Title The Media Machine Database Connection String tmm root The database connection is open. My environment: Windows 98 4.10.98 MySQL Server version: 3.23.21-beta-debug Zope version: Zope 2.2.0 (binary release, python 1.5.2, win32-x86) Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] Computer: Acer Extensa 710TE, PentiumII, 160MB RAM Thanks in andvance for any thoughts. William BC Crandall Wiesbaden, Germany [EMAIL PROTECTED] ___ 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] SiteAccess-Apache: passing HOST header
Does anybody know how to convince Apache to pass the information from the HTTP HOST header down to ZServer. This would be very useful for SiteAccess Access Rules. Dieter ___ 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] how to override SERVER_URL?
I need to override SERVER_URL so I can trick Zope in to giving me the correct base href. I can't figure out how. I tried exporting it as an environment variable, and putting it in the http headers - but neither worked. Can anyone help? I'm runnig ZServer without apache. FWIW, the reason I need to do this is I'm trying to write a simple load balancing proxy server with failover support that works at the http level and not at the tcp level for use with ZEO. The problem is the base href returned to the client points to the actual zope server, not the proxy server. Thanks, ^Roman ___ 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] ZPoPyDA installation: help needed
Hi Hung Jung, you stumbled across a tiny problem there :-) everyone trying to get informations about how to install ZPoPyDA will not find the answer here, I am merely explaining what went wrong at Hung Jung's box :-) first things first: rpm packaes do contain information about outher packages or libraries they need respectively they interfer with. So what happend is that the rpm program told you that the package postgresql-devel-7.0.2-2.i386.rpm needs a package that provides postgresql version 7.0.2 as well as two library references libc.so.6 in the glibc2.0 and the glibc2.1 version. Here is a little history on this: there once was glibc1.0 (read: gnu libc 1.0, libc being a library for the programming language C) Sometime ago it split into two libraries, one that remained glibc the other became the linux libc. This linux libc developed much faster than the other one (no offences meant) and when the linux libc had a version number like libc5.x they decided to merge the two project again. So one day it became libc6.0 aka glibc2.0 (thats where the GLIBC_2.0 comes from) and by now it has become glibc2.1.x (still also called libc6). So much for history. Now for some technics, nearly all programs need libraries, the especially need shared libraries. Those are the lib.so. (see the so in the middle ?). These are needed at runtime. They also appear as lib.so for programming purposes. The libraries with a .a instead of a .so at the end are so called static libraries (just for the completeness of the matter), they are not needed at runtime, just for compiling programs. So the libc.so indeed is a shared object as well as, only in this case, also is the shared library. Now judging from the "errors" you wrote it looks as if yu are missing the postgres SQL database server itself as well as you are not running a libc6 but mereley a libc5 system ? try this: rpm -qf /lib/libc.so* and if the output is *not* like this: libc-2.1.3 but more like libc5 or equal you are running a libc5 system. That means you might only have the supplemental compatibility libc6.0 libs installed which do not provide full functional compaltibility for glibc6.1 system, sorry. But there is always an upside :-) Check out http://rpmfind.net and go to the rpm database and then to packages by name and then to p (like in postgresql) and see if they have a binary (i.e. i386) rpm for libc5 (!). If they do, please download the postgresql-devel--.i386.rpm postgresql--.i386.rpm and try to install both packages. You can do this on one commandline (i.e. rpm -i ... ) there you do not need to follow order since the rpm program finds out what provides what and sorts it out - Holger PS: ever though about upgrading your installation ? You might get benefits (and lots of work) by doing this. Am Die, 08 Aug 2000 schrieb Hung Jung Lu: > Hi, > > I have been trying to install ZPoPyDA (database adapter for PostGreSQL.) And > I am kind of stuck. > > I was told to install the RedHat PostGreSQL development RPM first. But I > can't even install this RPM. I must be missing something obvious. > > # rpm --install postgresql-devel-7.0.2-2.i386.rpm > failed dependencies: > postgresql = 7.0.2 is needed by postgresql-devel-7.0.2-2 > libc.so.6(GLIBC_2.0) is needed by postgresql-devel-7.0.2-2 > libc.so.6(GLIBC_2.1) is needed by postgresql-devel-7.0.2-2 > > what is the libc.so shared object? Is it part of standard C library? Is it > part of Red Hat Linux? Where can I find/get it? Do I need to set any > particular path? Do I need to modify the /etc/ld.so.conf file? > > regards, > > Hung Jung > > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 ) -- --- catWorkX GmbH Hamburg Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 40 890 646-0 Fax: +49 40 890 646-66 mailto:[EMAIL PROTECTED] http://www.catworkx.de http://www.catbridge.de ___ 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] LDAP Usersource for LoginManager
Hi, Has anyone got an LDAP usersource working with LoginManager? More specifically, hitting the LDAP service provides my a Lotus Notes NAB... Any ideas? cheers, Chris ___ 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] More threading
+[ Chris Withers ]- | Nicholas Lo wrote: | > so, is there anyway to make database routines run in separate threads? | | Me too! (tm) | | What I'd really like to do is to cpu intensive stuff (like mass | cataloging ;-) in a seperate thread or process so that Zope's | responsiveness doesn't die when those things happen (even though it's | running on a multiprocessor machine ;-) | | Any ideas? Multiple database connectors... Multiple Zopes + ZEO... -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ 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] broken Hyerlinks
Is it possible to check for broken hyperlinks in Zope? Arno Gross consotec [EMAIL PROTECTED]
[Zope] Bug in
Hi, I am working on a project with Zope. Unfortunately I am having a problem whith the tag. I am using the batch processing feature and want to show only one element per sequence. I do this by setting size=1 and orphan=1. But th tag only iterates over the first two records (I have 8 records). It iterates over all 8 records when I use size=2 orphan=1. I think this is a bug. The problem seems to be in the correct value of next-sequence. Could someone tell me how I could fix this? Here is my code: << << [...] [...] >> >> -- Marcus Gruendler eMail: [EMAIL PROTECTED] WWW : http://www.tamalin.de/runner/index.html ___ 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] More threading
Nicholas Lo wrote: > so, is there anyway to make database routines run in separate threads? Me too! (tm) What I'd really like to do is to cpu intensive stuff (like mass cataloging ;-) in a seperate thread or process so that Zope's responsiveness doesn't die when those things happen (even though it's running on a multiprocessor machine ;-) Any ideas? cheers, Chris ___ 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] Input/output error w/ Portal News Items
Hello, after having moved to Zope 2.2 and fiddling with updating a Portal based on the PTK, I get rather strange errors when trying to read a news item. (I am posting this to both mailing lists because I do not know which one this error could related to.) There is _no_ error immediately after restarting the Zope, but after several seconds/accesses, the error message below raises. Additionally, there is _no_ error when I access the very same item as a registeres Portal user, but it raises again if tried to access as (anonymous) guest. Error Type: IOError Error Value: [Errno 5] Input/output error with the traceback Could you help to correct this, please? Are there any proxy roles to be set (I tried manager on recent_news and others, but none worked)? My installation includes a SiteRoot and TransparentFolder, and was ok before the upgrading (which apart from above is marvellous!). Thanks! -- Ralf Herold | Koordinationszentrale Kompetenznetz Pädiatrische Onkologie und Hämatologie | Charité Campus Virchow-Klinikum Medizinische Fakultät Humboldt-Universität | D-13353 Berlin, Augustenburger Platz 1, Raum 4.3412 4. Etage Mittelallee 8 | Tel. +49(30)450-66834 Fax -66906 Sprach-/Faxbox +49(180)505254-873936 | mailto:[EMAIL PROTECTED], PGP mailto:[EMAIL PROTECTED] ___ 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] SV: [Zope] getitem('string') but with HTML
On Wed, 09 Aug 2000, peter be wrote: > Yeah! It worked. > I didn't use you dtml-in at all, and I guess you didn't understand my > unwell-formated question. > > However, getitem(arg,1) worked! > > Can somebody tell me the difference between: _.getitem(arg) and > _.getitem(arg,1) ?? And what does _.getitem(arg,n) do? Where n is > 0,1,2,3,4,... >From the Zope Quick Reference: getitem(name,flag) Lookup a name in the namespace. If the value is callable and the flag is true, then the result of calling the value is returned, otherwise the value is returned. flag defaults to false. Well worth keeping a copy on hand, IMHO. (o8 Have a better one, Curtis. ___ 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] substring search on zcatalog textindex
Hi people, Got a slight problem. I've got a zcatalog with a heap of names in it, and I want to be able to search for and find a name, given I only know part of the name. I did have it going through the entire catalog and by using the substring function, had it only display a result if there was a match, otherwise it didn't display anything. This was ok until the catalog grew bigger. As it is displaying the results in batches of 20, if there is no match until say the 300th element in the index, then it will display a page with only the "previous 20 results" and "next 20 results" links, and nothing inbetween them, and by following the "next" link, you have to go through 15 such pages before you get to the actual matches. So the question is, does anyone know of a simple way to get the zcatalog to also find substring matches on a textindex? -- Peter Armstrong ___ 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] SV: [Zope] getitem('string') but with HTML
Yeah! It worked. I didn't use you dtml-in at all, and I guess you didn't understand my unwell-formated question. However, getitem(arg,1) worked! Can somebody tell me the difference between: _.getitem(arg) and _.getitem(arg,1) ?? And what does _.getitem(arg,n) do? Where n is 0,1,2,3,4,... - Original Message - From: Kapil Thangavelu <[EMAIL PROTECTED]> To: peter be <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, August 09, 2000 12:16 AM Subject: Re: [Zope] getitem('string') but with HTML > peter be wrote: > > > > I have a rather simple setup. And all I want to do is to show some news content, >but with the way I'm doing it, the HTML is not parsed. > > > > /root > > index_html > > view_each_news_html > > /news > > news_001 (MS ruined!)# a DTML Document > > news_002 (Peter on killin spree) # a DTML Document > > ...# lots of DTML Documents > > > > Index_html lists all available news and that works fine. All I do is that I list >the documents' title together with their bobobase_modification_time. > > > > Each news item is linked as href="/news_folder/view_each_news_html?newsID="> > > > > why use getitem wouldn't an objectItems be more what you want. > > from root in index_html > > > > > > > > > OR > > getitem takes an optional arg. on whether it should call the item or > just get a reference > > try _.getitem(item, 1) > > > check the Zope Quick Reference for more info > > http://www.zope.org/Members/ZQR > > 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 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] Client.py
"Bak @ kedai" wrote: > > hi all > has anybody successfully used Client.py that ships with Zope-2.2.0? i can't > seem to run it. even on the command line. i've searched the mailing list, > but to no avail > > this is what i did: > python Client.py http://www.zope.org > > and here's the traceback. > Traceback (innermost last): > File "Client.py", line 639, in ? > main() > File "Client.py", line 632, in main > headers, body = apply(f,(),kw) > File "Client.py", line 221, in __call__ > raise NotAvailable, RemoteException( > bci.NotAvailable: argument 1: expected read-only character buffer, tuple > found (File: http://www.zope.org Line: > []) > None None for None > > what did i do wrong? can i use Client.py from Zope-2.1.x? > > tia heres a confirmation. i get the same error with various combos on the Client.py but if it helps the monitor works fine. to use the monitor: 1. modify your /ZopeDir/access so that it has a user superuser and a clear text password. easiest way is to edit it by hand. restart Zope. . 2. switch dirs to /ZopeDir/ZServer/medusa/ and run python monitor_client.py host monitor_port it will prompt for a password. the password you give it should match the one in the access file for the superuser. 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 )