[Zope-dev] Passing namespace to method
How do I construct a method of an object, so that whenever that method is called, the current namespace is passed with it? I.e.: class myclass: [...] def myfunc(self, context): if context['sequence-index'] == 10: raise 'sequence-index is %s' % \ context['sequence-index'] called from DTML, like so: dtml-in "objectValues('Spam')" dtml-var myfunc /dtml-in will raise an exception if sequence-index is 10 or more? Specifically, the reason I want this function is that I feel using dtml-if sequence-even tr bgcolor="dtml-var color_sequence_even" dtml-else tr bgcolor="dtml-var color_sequence_odd" /dtml-if is a bit tedious (and ugly!) in the long run.. If this isn't implemented, where would the right place to implement it be? -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Management Interface Revision Proposal
I have composed a proposal to make some small (but hopefully useful) revisions to the Zope management interface for the 2.3 release. Please see: http://dev.zope.org/Wikis/DevSite/Proposals/ManagementInterfaceQuickFix Comments are welcome until Friday, November 10th. Please enter any comments at http://dev.zope.org/Wikis/DevSite/Proposals/ManagementInterfaceQFDiscussion. -Adam ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] [Ann] ZUnit released
Okay, the cat is out of the bag (in fact, going to Rio for the weekend) and the worms are out of the can (better worms than bugs, anyway). ZUnit, the Product all lazy programmers were so afraid of, is available for review and download from your usual shop at http://www.zope.org/Members/lalo/ZUnit completely FREE, from the hands of your friends Lalo and Hiperlógica! In comemoration of the release, we're holding the "meta-testing contest": Whoever contributes some unit tests for ZUnit itself, will win her name in the credits, plus a better and more stable Product in the future, and an exclusive Warm Fuzzy Feeling (TM)! Don't miss this oportunity! Check it out right now! []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZPatterns Folder W/Customizer Support not aquiring title property
I have a Folder w/cs in my root folder, call it spamcan. Root folder has a title defined, lets say it is "Spam Central" A DTML Method in spamcan should display "Spam Central" when doing a dtml-var title, should it not? -- Bill Anderson E PLURIBUS LINUX ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope] Gadfly
I am not sure what you all are talking about, but in anticipation of a more adequate solution I am using a Gadfly database for a few years (sic!) now. The table was created with a Z SQL method and is populated with a second Z SQL method. Every now and then, when a restart of Zope is necessary, that does not affect the contents of my Gadfly table in any sense. I guess the "commit" is taken care of by the Z SQL method then? Furthermore, I live with the assumption that every time the table is accessed it is loaded into RAM in its entirety. Has that anything to do with the notion of persistence? cb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dieter Maurer Sent: dinsdag 31 oktober 2000 22:38 To: Chris Withers Cc: jacintha menezes; [EMAIL PROTECTED] Subject: Re: [Zope] Gadfly Chris Withers writes: jacintha menezes wrote: I am using Gadfly database for Employee details.Kindly let me know whether there is any maximum limit for the space available. Probably related to the memory in the machine you are running Zope on. Bear in mind that gadfly databases are not persistent and loose their contents when you restart Zope. It is very easy to make them persistent. When I remember correctly, it was only necessary to pass "commit" to Gadfly. 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 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] acl_users API
Hi I have given up trying to manipulate acl_users from DTML for now - I'm sure it's possible because here and there on this list and on the Zope site I see hints that it can be done. However, I can't find (for example) a HOWTO anywhere that describes the API of acl_users and what you can do with it. Someone out there must do this sort of thing all the time, so don't be shy, write that HOWTO! (Or if I'm being really thick and there is one, just let me know where it is!) Failing that, maybe someone can suggest where to look in the Zope python source to find the methods acl_users exposes. Thanks Peter Harris This message and any files transmitted with it are confidential. The contents may not be disclosed or used by anyone other than the addressee. If you have received this communication in error, please delete the message and notify JBB (Greater Europe) Plc immediately on 0141-249-6285. The views expressed in this email are not necessarily the views of JBB (Greater Europe) PLC. As it has been transmitted over a public network, JBB (Greater Europe) PLC makes no representation nor accepts any liability for the email's accuracy or completeness unless expressly stated to the contrary. Should you, as the intended recipient, suspect that the message has been intercepted or amended, please notify JBB (Greater Europe) Plc immediately on 0141-249-6285. ___ 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] My Items will not show themself in manage_main (objectItems)
From: Ender [mailto:[EMAIL PROTECTED]] First os all. Thank you for the patience. I know it is boring to "Solve other peoples problems for them", but I am really trying hard myself, reading the source of Zope and other products. It's just such a steap learning curve because it is underdocumented. (I have 6+ years of experience in web scripting and 12+ in programming + database overall, so usually i catch on fast.) I was under the impression that when I inherit ObjectManager that my object would be a complete ObjectManager. But do I have to overwrite some methods with my own? No you don't but generally an objectmanager would wants to add some custom logic, like a Folder which is a specialized objectmanager. I don't want that in this product. It should just be a plain folder, where anything can be put. Well at least Foders, images and dtml methods. ok, i'm not certain that i understand your problem. you original problem was getting dtml methods to show up in the manage views. in your product your it appears that your methods aren't really dtml methods that are contained within the objectmanager but rather class methods of the discussion class. to have them show up in the manage_views you need to change them to be methods that are added to a discussion object. In my mxm_diskuss class I have a list containing messages: self.testComments = [.] (will be renamed to "comments" when it's done.) These comments are not meant to be seen in the folder view, they should only be visible when called through dtml methods. like this method to make a list of all messages: index_html: dtml-var standard_html_header dtml-in testComments ba href="view?id=dtml-var id"dtml-var title/a/b By: dtml-var author idtml-var date/ibr /dtml-in dtml-var standard_html_footer What I find "brilliant" about the idea is that when a customer wants a discussion group I only have to change 3 standard dtml files to give it a new functional interface. And I can build a library of look and feels. And there is no recursion in it so it will behave like a list, and be easily codeable from dtml. The last discussion product ever needed :-) It will be ZPL (when it's done.) here some code that illustrates how. # add a folder for view self.manage_addFolder('views') # get a file handle fh = open(join(Views_Dir, 'DiscussionIndex.dtml')) # add a DTML method with contents of the file. self.views.manage_addDTMLMethod(id='news_center_index_html', file=fh) a method created this way will show up in the manage_view of the object. My problem is not adding object programatically, but doing it in the management interface. When I add them I can press "add edit" and I can paste the dtml source, and the method works. But they don't show up on the list when viewing the folder. Well I guess that if I dont have to do anything special to add objects to an objectmanager, then I must have a permission problem when viewing them. I guess I will look more into that. Currently I am lookin for a permission that prevents seing the ObjectItems in an objectmanager, but so far without any luck. grr... documentation. 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 )
[Zope] unacquired lock?
My CVS version Zope is hanging strangely and when I keyboard ctrl-c it I see the following traceback Traceback (innermost last): File "C:\Python\devel\Zope\z2.py", line 757, in ? asyncore.loop() File "C:\Python\devel\Zope\ZServer\medusa\asyncore.py", line 146, in loop poll_fun (timeout, map) Error in sys.exitfunc: Traceback (innermost last): File "C:\Python\Lib\threading.py", line 475, in __exitfunc self._Thread__stop() File "C:\Python\Lib\threading.py", line 397, in __stop self.__block.notifyAll() File "C:\Python\Lib\threading.py", line 233, in notifyAll self.notify(len(self.__waiters)) File "C:\Python\Lib\threading.py", line 216, in notify assert self._is_owned(), "notify() of un-acquire()d lock" KeyboardInterrupt -- Robin Becker ___ 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] GoLive
Does anybody know, if there is a way to automate GoLive for Zope? I have a customer who is Mac user. It seems to me, that GoLive is configurable to do almost every webdesign task without any knowledge. So I think there should be some upload automatism. Is there? And are there known problems with Zope? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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 )
[Zope] Re:GoLive
on 1/11/00 10:47 am, Stephan Goeldi at [EMAIL PROTECTED] wrote: Is there? And are there known problems with Zope? "In theory" it all works fine. GoLive can ftp open dtml files. except because they are called index_html and not index.html, GoLive thinks they are text files and not html template files. This is such a pain. Using a WYSIWYG tool (on a mac) to edit dtml would be cool. This for me, effectively makes it too much of pain to use goLive. So close and yet... I think there's a trick where dtml files can be saved as index.html, and then you create a method that redirects index_html or /whatever/wherever/ to index.html in the same folder, but I'm not sure how to do that. Someone has shown how to do it on this list. Try searching here... http://www.egroups.com/messages/zope Using WebDAV (with goliath) may be an option. I've found BBEdit to be OK, although creating new dtml files is errors. Hope this helps tom ___ 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] acl_users API
On Wed, 1 Nov 2000, Harris Peter wrote: Failing that, maybe someone can suggest where to look in the Zope python source to find the methods acl_users exposes. lib/python/AccessControl/User.py Viewing HTML sources of management screens may also help a lot. [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ 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] Sorry, resolved
Danny William Adair wrote: Just had to add an "index_html" to the ZClass, now it works. So it looks as if "looking for index_html" starts at the ZClass itself. It happens before then ;-) index_html=None is always a handy one to add in Python Products so ti doesn't get acquried from higher up... 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] Zope Book Beta
Amos Latteier wrote: Chris Withers wrote: There a PDF of it anywhere? Not yet. I think that O'Reilly doesn't want us to produce any more public versions of the book until it is published. I'm double checking with them right now. Take a look at the copyright verbage on each book page to see what I'm talking about. Kinda tough to check out/read/find mistakes in a book that's only available as a set of html pages that aren't full text searchable *grumble* 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] preventing acquisition
Robin Becker wrote: So if I have a path /A/B/C I would like to inhibit the behaviour that allows me to view /A/B/C/A and /A/B/C/A/B/C etc. to inhibit the first I can put something like dtml-if "PARENTS[0].id not in PARENTS[1].objectIds()" dtml-raise NotFound h2You're not supposed to be looking at dtml-var "absolute_url()" /h2 /dtml-raise /dtml-if in my index_html, but this doesn't work for the second case. Is there a generic way to do this? You could create a non-acquiring folder product and use that... 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] Proper way to do a search.
Look at ZCatalog... cheers, Chris "Jason C. Leach" wrote: hi, Is this correct: dtml-if _.count(_.str(title_or_id),'Bridge',0) Spam I am. /dtml-if This is part of a larger loop, that prints all the images in a folder with their titles. I'd like to search the object's title for the word Bridge, even though I know it has it, still it does not print my test phrase. Thanks, j. .. . Jason C. Leach ... University College of the Cariboo. .. ___ 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] Installation on Linux
Hi All, I feel like a bit of an idiot, but I can't find any info about installing Zope until Unix - only Windows. Can anyone give me a quick start guide ?? Much Appreciated Lee 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 )
Re: [Zope] Re:GoLive
tom smith wrote: I think there's a trick where dtml files can be saved as index.html, and then you create a method that redirects index_html or /whatever/wherever/ to index.html in the same folder, but I'm not sure how to do that. That should be pretty easy . . . Zope will let you add objects that have dots in the titles, so just put a method "index_html" in the root folder which has the following line: dtml-var index.html Then wherever there is "index.html", it will be displayed as the default document (go Acquisition!). Note that using a ".html" in files will make things a bit tricky sometimes when coding Python statements, because in python, "index.html" is looking for a property (or whatever) "html" in the object "index," which isn't going to exist, so you've got to be a bit cagey . . . -CJ ___ 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] Zope Book Beta
- Original Message - From: Chris Withers [EMAIL PROTECTED] Not yet. I think that O'Reilly doesn't want us to produce any more public versions of the book until it is published. I'm double checking with them right now. Take a look at the copyright verbage on each book page to see what I'm talking about. Kinda tough to check out/read/find mistakes in a book that's only available as a set of html pages that aren't full text searchable This is a really good point. Just as open source benefits from real-time peer review, so do manuscripts get better when fresh eyes and minds and go over them. How about 'releasing' a PDF / HTML Doc with header/footers clearly marked: 'Preview Review copy for Copy-Editing use only. Not for general public or commercial distribution' The number of people who are likely to 'bootleg' the Zope book must be tiny. Most will want to see the book sales thrive, so that Zope grows and gets the wider recognition it deserves.And to save time and money when developing Zope projects. For such sophisticated 'free' software, a well written, well edited book is a trivial price to pay. The issue is how to get the best final copy to the printer in timely manner. Peer review now by skilled expert readers is huge advantage to be tapped. No matter how good OReilly are as publishers, I doubt they have many Zope experts in-house at ORA... Because there are not yet that many in the world! Most people are too busy anyway to be of much help. Anyone who wants to help adn has the ability to do so should be engaged now not deterred. Everyone will benefit if you act quickly now. Final stages of proofreading and tweaking are time consuming adn take many hands and many heads to get right. When done thoroughly this is the difference which makes a difference, especially for technical books. Look at how much hideous fast junk is out there in bookstores now. Look at how many books are a waste of paper and time and money, simply because they were not properly checked and tuned. good luck and best wishes - Jason ___ 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] Zope.org down?
Subject says it all ___ 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] Re:GoLive
on 1/11/00 2:31 pm, Christopher J. Kucera at [EMAIL PROTECTED] wrote: tom smith wrote: I think there's a trick where dtml files can be saved as index.html, and then you create a method that redirects index_html or /whatever/wherever/ to index.html in the same folder, but I'm not sure how to do that. That should be pretty easy . . . Zope will let you add objects that have dots in the titles, so just put a method "index_html" in the root folder which has the following line: dtml-var index.html Then wherever there is "index.html", it will be displayed as the default document (go Acquisition!). This does the trick. Only when you get to complicated products like Squishdot with lots of dtml files, it'll take some working out all the broken links. Why doesn't zope have a list of default file names... index_html, index.html, default.html, whatever? ___ 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] Re:GoLive
I thought for a minute you could add _HTML as a suffix type in GoLive's network prefsthe icon changed but little else. Anyone know if GoLive 5 with WebDav can edit dtml files...or Dreamweaver? thanks tom ___ 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] Zope Book Beta
"Jason Cunliffe" [EMAIL PROTECTED] writes: - Original Message - From: Chris Withers [EMAIL PROTECTED] Kinda tough to check out/read/find mistakes in a book that's only available as a set of html pages that aren't full text searchable This is a really good point. Just as open source benefits from real-time peer review, so do manuscripts get better when fresh eyes and minds and go over them. How about 'releasing' a PDF / HTML Doc with header/footers clearly marked: 'Preview Review copy for Copy-Editing use only. Not for general public or commercial distribution' I like this suggestion. There are three of us (ranging from novice to pretty experienced) here that were planning to print out copies of PDF and go over them at home, none of us has the time to sit at work and read/review the whole thing on a web browser. ___ 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] manage_access problems
Hi, I'm having a strange problem with my Zope installation I need some help to solve. When I try to access the security (manage_access) page of my root Zope, I get the error listed below: !-- Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_access) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_access) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 255, in manage_access (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/App/special_dtml.py, line 120, in __call__ (Object: access) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: access) File /usr/lib/zope/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: _.namespace(valid_roles=valid_roles())) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 630, in renderwob (Object: permission_settings) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 182, in permission_settings (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 177, in lambda TypeError: (see above) -- This only happen with root folder; in subfolders I can manage security without problem, that is, I can access the page and add/remove privileges, local roles, etc, even though I do not master it completely, but this is another story. Any help? My zope configuration is: Debian/GNU Linux 2.2 (potato) zope 2.2.1 zope-guf 1.1.0 zope-pygresqlda 0.3rjr2 zope-renderable 0.2 zope-tinytable 0b2 zope-worldpilot 1.0.4 []s, Mario O.de Menezes"Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br ___ 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] Zope.org down?
Works for me. -- E PLURIBUS LINUX ___ 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] Zope.org down?
At 11/1/00 03:22 PM, Phil Harris wrote: Subject says it all Well, not here but it does seem to have fallen back one or more days. I'm also curious about the zope.org site performance. Zope is said to capable of a million hits per day on commodity hardware, yet zope.org receives only about 20% of that on its busiest days. This would not be remarkable except that the response times from zope.org seem to usually be 10 seconds or so. I am on a T-1 line and 13 hops and 80ms from the zope.org server. -- Dennis Nichols [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] Installation on Linux
Lee Curtis wrote: Hi All, I feel like a bit of an idiot, but I can't find any info about installing Zope until Unix - only Windows. Can anyone give me a quick start guide ?? http://www.zope.org/Members/michel/ZB/ -- E PLURIBUS LINUX ___ 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] acl_users API
Harris Peter wrote: Hi I have given up trying to manipulate acl_users from DTML for now - I'm sure it's possible because here and there on this list and on the Zope site I see hints that it can be done. However, I can't find (for example) a HOWTO anywhere that describes the API of acl_users and what you can do with it. Try: http://www.zope.org/Members/michel/ZB/ -- E PLURIBUS LINUX ___ 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] Re:GoLive
On Wed, 1 Nov 2000, tom smith wrote: I think there's a trick where dtml files can be saved as index.html, and then you create a method that redirects index_html or /whatever/wherever/ to index.html in the same folder, but I'm not sure how to do that. Someone has shown how to do it on this list. Try searching here... http://www.egroups.com/messages/zope Make a DTML Method called index_html in Zope's root folder containing: dtml-var index.html Whenever Zope looks for index_html and can't find it, it will search the acquisition path, acquire your root index_html, which will then include your index.html. Magic. ;-) tom --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.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 )
[Zope] zope.org mistake
Um... I inadvertently deleted the Data.fs whilst compressing it. Then I compounded my mistake by not remembering that the storage server still had the inode open, and closed the storage server. I have restored from the compressed version of the Data.fs, but it appears that a day or so of information is missing. Rest assured that I will not be so stupid in the future. Thanks for your patience, -- -mindlace- Zopatista Community Liason ___ 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:GoLive
Hmmm... I don't know if this would apply..but..there *is* a howto on a method to allow requests for index.html tobe redirected to index_html. Basically the executive summary is that methods named as the various possible choices (index.html, index.htm, index.HTML, etc.) containing the single word ' index_html ' .. This has the effect of redirecting requests for those URLs to index_html in each directory. This would probably work in reverse, unless Zope would choke on the extension, which is I assume what you are talking about.. If not, perhaps GoLive, Dreamweaver, etc, could be modified at some level to recognize as their default mime type text/html and not text/plain or whatever it is now.. (untested) so that index_html would be interpreted as a html file... I use BBEdit myself frequently to edit DTML and although the nifty BBEdit formatting capabilities aren't available (and would probably get very confused by DTML if they were..) it still beats anything else I've seen for editing *existing* dtml pages.. (like Stephen said..) My experiences have been with BBEdit 5.x, has anyone tried BBEdit 6.x with DTML? Still, this is not the optimal fix, because I still use BBEdit, for example on a lot of other kinds of textfiles and HTML as the default behavior would be something I would have to keep turning off.. There has to be an easy way...I would be surprised if there wasn't some way to configure DTML capabilities into these programs.. it just will take a little creative thinking... Of course a WYSIWYG tool could never in any way simulate the dynamics of a Zope site, so using them would still require DTML competency.. -Chris on 1/11/00 10:47 am, Stephan Goeldi at [EMAIL PROTECTED] wrote: Is there? And are there known problems with Zope? "In theory" it all works fine. GoLive can ftp open dtml files. except because they are called index_html and not index.html, GoLive thinks they are text files and not html template files. This is such a pain. Using a WYSIWYG tool (on a mac) to edit dtml would be cool. This for me, effectively makes it too much of pain to use goLive. So close and yet... I think there's a trick where dtml files can be saved as index.html, and then you create a method that redirects index_html or /whatever/wherever/ to index.html in the same folder, but I'm not sure how to do that. Someone has shown how to do it on this list. Try searching here... http://www.egroups.com/messages/zope Using WebDAV (with goliath) may be an option. I've found BBEdit to be OK, although creating new dtml files is errors. Hope this helps tom ___ 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] Have some help for free!
Curtis Maloney wrote: On Wed, 01 Nov 2000, Dylan Chi wrote: Firstly, just so you don't miss it, PLEASE, do NOT send HTML encoded messages to this list. ...yeah, and a subject line of "I need help" isn't actually very helpful :P 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] Zope.org down?
Dennis Nichols wrote: At 11/1/00 03:22 PM, Phil Harris wrote: Subject says it all Well, not here but it does seem to have fallen back one or more days. I just sent a message explaining what happened to this list. I'm also curious about the zope.org site performance. Zope is said to capable of a million hits per day on commodity hardware, yet zope.org receives only about 20% of that on its busiest days. This would not be remarkable except that the response times from zope.org seem to usually be 10 seconds or so. I am on a T-1 line and 13 hops and 80ms from the zope.org server. My current tracking shows that zope.org is pretty snappy until the server gets attacked from a bunch of spiders. Because zope.org has a huge quantity of pages (500+MB of (packed) content and climbing), and because objects get loaded into ram as they get accessed, accessing *everything* on the site multiple times causes zope to load things in out a lot, causing it to slow down. IOW, if you have a zope running with, say, 100 mb of content (that's 2048 50 kb pages) on a box with, say 256mb of ram, and you have your caching policy set very liberally, then you should be able to hit 30 requests per second, or 2.5 million hits per day. Zope.org will be on hardware that stretches the notion of "commodity" soon, but it will be sufficient such that all 500mb of our objects can be floating about in ram if need be. This should improve our performance drastically. Hope that helps, -- -mindlace- Zopatista Community Liason ___ 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] Re:GoLive
On Wed, Nov 01, 2000 at 03:32:07PM +, tom smith wrote: Anyone know if GoLive 5 with WebDav can edit dtml files...or Dreamweaver? With Dreamweaver 2.0 I can use File - Open to open and edit a file with a name like "index_html", but when I define a Dreamweaver "site" that encompasses files like "index_html" then Dreamweaver refuses to open such files, putting up an alert that says "The file 'index_html' could not be opened because Dreamweaver does not open files without an extension'. This is a major PITA. Perhaps there is some configuration parameter that would allow this, but I haven't found it. Maybe newer versions of Dreamweaver are more accomodating? -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ 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] Zope Book Beta
I wholeheartedly agree with Jason and Chris. I would very much appreciate a PDF version that could be easily printed, or read with Adobe's Reader. I hope there is no hesitation over making a PDF version available because of fear it will cut into sales of the bound volume. I think it would be just the opposite. I can easily think of examples (the original Tcl/Tk book comes first to mind) where the printed copy closed the sale of the bound volume for me. I'll be purchasing multiple copies of the Zope book for my shop regardless. (I tried to no avail to do a pre-order from OReilly's set yesterday :) Getting a chance to proof an early version and perhaps contribute to making it better only increases my desire to purchase the eventual publication. -- Tim Lynch Information Technology Section A. R. Mann Library Cornell University Ithaca, New York 14853 [EMAIL PROTECTED] 607.255.9570 "Jason Cunliffe" [EMAIL PROTECTED] writes: - Original Message - From: Chris Withers [EMAIL PROTECTED] Kinda tough to check out/read/find mistakes in a book that's only available as a set of html pages that aren't full text searchable This is a really good point. Just as open source benefits from real-time peer review, so do manuscripts get better when fresh eyes and minds and go over them. How about 'releasing' a PDF / HTML Doc with header/footers clearly marked: 'Preview Review copy for Copy-Editing use only. Not for general public or commercial distribution' I like this suggestion. There are three of us (ranging from novice to pretty experienced) here that were planning to print out copies of PDF and go over them at home, none of us has the time to sit at work and read/review the whole thing on a web browser. ___ 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] FastCGI behind ZServer
I have read a lot about the Apache/Zope/FastCGI configuration in this list. However, I just wonder if anyone have tried having a FastCGI Server behind ZOPE behind Apache?My problem is I have a Apache/Zope site (using proxypass) running for quite some time. And I'm very happy with it. However, until recently, I want to integrate some of my old FastCGI programs into my site. Those FastCGI programs works fine with Apache using mod_fcgi 2.2.8. However, I'd like to make ZOPE act as the middleman so that I can further process the results return from the FastCGI program before publishing to the web. Also, to prevent people from accessing the FastCGI services directly by modifying URLs on their browsers.web - httpd - zope - fastcgiRegards- Nick
Re: [Zope] Re:GoLive
On Wed, Nov 01, 2000 at 08:31:09AM -0600, Christopher J. Kucera wrote: That should be pretty easy . . . Zope will let you add objects that have dots in the titles, so just put a method "index_html" in the root folder which has the following line: dtml-var index.html That obvious solution fails in some cases. It failed for me the very first time I needed it, when I tried to integrate web pages created by the Web Studio tool into a larger Zope website. Web Studio (ack, phooey) creates a main index.html that uses Javascript to redirect to another page that acts as the real entry point. That Javascript code gets confused when loaded via dtml-var index.html as above. I resorted to doing the following instead: dtml-call "RESPONSE.redirect(URL1 + '/index.html')" So now it takes two redirects to get to the real page, darn it. The above _could_ redirect straight to the real entry page, but exact knowledge of which page that is belongs to the subsite, not in my code. And it turns out that the subsite _has_ changed its entry page since I set up the above code. With Zope, simple things are easy, but slightly complex things tend to be hard. It's a weird learning/technology curve and I sure hope it flattens out soon... I've done a lot of website programming in PHP, Java, Perl, and AOLserver/Tcl -- none of those seem to have Zope's complexity at the point of creating simple database-backed websites. Zope doesn't even have a decent self-registering user login system out of beta yet. Sheesh. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ 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] Installation on Linux
Hi Lee, In the Zope book beta version there is a section on installing Zope on Unix/Linux systems: http://www.zope.org/Members/michel/ZB/UsingZope.html - Or - There are also a few good howtos on the Zope.org site, here's one to get you started: http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO Also, check out a list of Installation/Setup Gotcha's for beginners which you should peruse the second you get stuck: http://www.zope.org/Members/jens/docs/newbie_caveats Then, when you have specific questions, search for answers on the mailing list archive that NIP Limited has been kind enough to maintain. This has been a fantastic resource for me: http://zope.nipltd.com/public/lists/zope-archive.nsf/ HTH, Eric. // -Original Message- // From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lee // Curtis // Sent: Wednesday, November 01, 2000 2:17 PM // To: [EMAIL PROTECTED] // Subject: [Zope] Installation on Linux // // // Hi All, // // I feel like a bit of an idiot, but I can't find any info about installing // Zope until Unix - only Windows. // // Can anyone give me a quick start guide ?? // // // // // Much Appreciated // // // // Lee 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 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] Installation on Linux
Lee Curtis wrote: Hi All, I feel like a bit of an idiot, but I can't find any info about installing Zope until Unix - only Windows. Can anyone give me a quick start guide ?? http://www.zope.org/Members/michel/ZB/ If you are using RedHat (or one of its derivaties such as Mandrake) then I suggest you look at: http://www.zope.org/Members/nemeth/howtos/zopeandapacherh61 I think the explanation given in this HOWTO is superior to the one given in the upcoming Zope Book. (Maybe the guys doing the Zope book should incorporate it and the "Gotchas for Zope Beginners" HINT HINT) Ron ./. ___ 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] IMAP and Zope!
Morten says: If this sounds interesting, send me an email.=) Is this one OK? I'm developing an Outlook/WorldPilot replacement which is much more modular in design. It will be released under the GPL. When and where I don't know yet. It stores messages in 'pure' ZODB format (that is, the entire message is broken down and stored in various parts of the object), with _all_ the information from the original message stored, in a structured and indexable way. Watching the growing pains of an recently installed IMAP based Corporate E-Mail system makes me just a little queasy about using ZODB for mass storage. Volume is a very real problem, and Zope has it's own limits that must be considered. I know it's formidable, but you may find the ZPatterns stuff useful. One of the goals is to make it "easy" to swap out one storage for another. At first glance it strikes me as fairly straightforward to capture most of the relevant data that accompanies an E-Mail as RDBM "fields". Of course, a text blob, ZODB, or files may be more appropriate for the actual message content, and certainly for included files. ZODB is such a cool thing, but I'm still struggling with deciding what's best held as native ZODB "objects" vs. other possibilities. ZPatterns eases that quandary by making the choice flexible, and easy to "refactor" (fix!) if / when you decide you "got it wrong". You might also check out the companion products "ExtFile" and "ExtImage" http://www.zope.org/Members/MacGregor/ExtFile which allow storage of "file" type data directly on the file system, yet keep related metadata in ZODB, for ZCataloging, etc. We're also including support for signing/verifying messages, with GnuPG. Even Better! Good Luck, Jerry S. ___ 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] QSurvey design
How can I change the HTML design of QSurvey 0.25? I want it to use my standard_html_header and footer. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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 )
[Zope] BBEdit and Zope (was GoLive)
My experiences have been with BBEdit 5.x, has anyone tried BBEdit 6.x with DTML? I've used BBEdit 6.0 for occasional Zope use, and haven't really noticed a difference against version 5.x for editing DTML - but then again, I haven't been looking. The *really* annoying problem with BBEdit 6.0 is that it doesn't respect FTP ports - it assumes the FTP server will be on port 21 - whereas 5.x would let you do zope.nipltd.com:8021 style server names, and did respect the port. I mailed BBEdit technical support and they replied: Is there some way to get BBEdit 6.0 to respect the port number for FTP? No, and BBEdit 5.1 is not designed to do this either. IF it worked in 5.1 this was purely by accident. The FTP tool in BBEdit currently only connect to the standard ftp port. If you need to connect to non-standard ports you should consider Anarchie, NetFinder or Transmit all of which support "Edit in BBEdit: for easy editing of files located on ftp servers. We may provide support for this in a future release but I can not speculate as to when this might be available (or promise that it will be). So, looks like BBEdit 5.x will be on my hard disk for sometime to come :-( (the two versions of BBEdit seem to coexist OK, I've even had both running at the same time). Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] Zope Book Beta
I wholeheartedly agree with Jason and Chris. I would very much appreciate a PDF version that could be easily printed, or read with Adobe's Reader. If you have the full version of Adobe Acrobat (you have to pay for it, as opposed to the free Reader) you can "Capture" web pages into a PDF. I created a PDF of the Zope Book beta to read on the train today. PDFs created in this way are full text searchable :-) From what people are saying I don't think I can redistribute the PDF I have created :-( However, if you have Acrobat, you can make one yourself :-) BTW the book was very useful, I'll be recommending it when it comes out Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] Hosting?
And, of course, I recommend our site http://www.leimental.net. I'm wondering if anyone can recommend a commercial Zope hosting service for me. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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] Hosting?
Try http://www.leimental.net or http://www.goeldi.com (both german language) 500 MHz, 320MB RAM, CHF 49 a month (about $28 I think). Bandwidth swiss standard. RedHat Linux. Try http://www.rackspace.com. You can start off with a 600 MHz, 128 MB Ram, 30 GB EIDE drive for about $300 a month. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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] MailHost: bcc broken ?
"Stefan H. Holek" wrote: On Wed, 25 Oct 2000, Gregory Haley wrote: i was one of the participants in the recent discussion of zope bulk mail. i'm wondering about the mechanics of sending the work of the mail to the actual sendmail server outside of zope. would i do that by creating an external method which is program/script that accepts the data from zope and then passes them to the mail server? any suggestions or details would be most appreciated. got me ;) I have not done this myself (yet), and I have firtshand knowledge of majordomo list management only. but I could think of something like this: a) very simple create a mailing list in your listmanager and have zope send the email to the list's address. voila, the rest is taken care of by the listmanager. b) a bit more involved if your addressee list changes (you create it on the fly with zope somehow) you could pass that list to the listmanager before sending email to it. in majordomo, a mailing list is simply a textfile containing a line for each subscriber's email address. make an external function to create that file and proceed like in a). HTH, Stefan i've been thinking about bulk mailing in zope recently, one easy thing to do is to change MailHost to use a persistent mail connection (i've already submitted this as a patch to the Collector, if you're interested email me), this should provide some marginal improvements. Another method that should increase both speed and reliability is to directly inject the mail into a relay smtp server's mail queue. this is definitely mail server dependent but offers the greatest performance gains and is capable of scaling and greater reliabiltiy (dependent on mailserver). usings lists is a valid solution but it doesn't get at the core question of how to send more mail messages from zope quickly and reliably. 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] QSurvey design
Hi, Stephan QPages draw themselves. The code is QPageClass:index_html, so replacing the header information in that method with standard_html_header should work. You may want to include the css stuff in your header for question formatting (needs to be in head, and that is why I broke tradition and hard-wired the header). Standard_html_footer is still there, so that should already work. -- Jim Washington Stephan Goeldi wrote: How can I change the HTML design of QSurvey 0.25? I want it to use my standard_html_header and footer. ___ 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] Zope Book Beta
Fred Yankowski wrote: I agree completely that the Zope Book beta will get more reviewers, and better feedback to the authors, if it is available as PDF. I agree, but this is completely out of our hands and we must focus more on content issues at this point then distribution issues. All of these problems will get solved in the comming months, they just won't get solved today. -Michel ___ 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] Zope Book Beta
Tim Lynch wrote: I wholeheartedly agree with Jason and Chris. I would very much appreciate a PDF version that could be easily printed, or read with Adobe's Reader. I hope there is no hesitation over making a PDF version available because of fear it will cut into sales of the bound volume. I think it would be just the opposite. I can easily think of examples (the original Tcl/Tk book comes first to mind) where the printed copy closed the sale of the bound volume for me. I do not know what the reasons is. I do know that when the book hits the shelf, it will go under an open content license and we will be free to distribute it in a myriad of flavors and you will have the freedom to do with it what you please (according to the license). I'll be purchasing multiple copies of the Zope book for my shop regardless. Thanks. ;) -Michel ___ 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] Products : dependencies (or who's on first?)
Okay, here goes : I installed the PTK product some time ago, decided that it wasn't where I needed to be right now and moved on to something else. Today I finally decided to delete it from my Products folder. Shortly afterwards, I noticed that both my existing FlexFAQ and ZDiscussion objects were "broken" (with the little broken icons in the manager view.) and Zope was spewing errors to STDOUT complaining that it "Could not load oid" (I'm sorry, I don't have the traceback...doh!) I could add new FF/ZD objects but I couldn't access the old ones. I deleted ZDbase and ZDiscussion and restarted Zope. I couldn't import a fresh copy of ZDiscussions.zexp (see error below) but suddenly my old set up is working again. Except I can't create new ZD* objects since the Product isn't installed. ( I can create new FF objects.) In the meantime, when I restart Zope it prints errors about not being able to install the "Wizard" product or the "Demo Portal" Products (see below.) In the meantime, the "PTKDemo" and "PTKBase" Products keep showing up the Products table even though I keep trying to delete them. Can someone please help me understand what on earth is going on? Is the ZODB corrupted? Have I inadvertently set up some level of dependency across Products? I have done Google searches and seen that this has cropped up on the mailing list before, but I can't seem to figure out how to address the problem or insure that doesn't happen again. I am still pretty new to all of this and I am having a hard time understanding the relationship between alot of seemingly abritrary errors. Any help would be very much appreciated. Thankseep! a) Starting Zope 2000-11-01T20:01:04 ERROR(200) Zope Couldn't install Wizard Traceback (innermost last): File /usr/local/zope.old/lib/python/OFS/Application.py, line 477, in install_products (Object: ApplicationDefaultPermissions) (Info: Wizard) File /usr/local/zope.old/lib/python/App/Product.py, line 447, in initializeProduct (Object: Products.Wizard) File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 264, in _setObject (Object: Traversable) File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 272, in manage_afterAdd (Object: Traversable) File /usr/local/zope.old/lib/python/ZClasses/ZClass.py, line 421, in manage_afterAdd (Object: Wizard) File /usr/local/zope.old/lib/python/ZClasses/ZClass.py, line 375, in _register (Object: Wizard) Duplicate Class Ids b) Importing ZDiscussions.zexp Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_importObject) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_importObject) File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 509, in manage_importObject (Object: Traversable) File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 264, in _setObject (Object: Traversable) File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 272, in manage_afterAdd (Object: Traversable) File /usr/local/zope.old/lib/python/ZClasses/ZClass.py, line 421, in manage_afterAdd (Object: ZDTopic) File /usr/local/zope.old/lib/python/ZClasses/ZClass.py, line 375, in _register (Object: ZDTopic) Duplicate Class Ids: (see above) ___ 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] Zope Book Beta
Jason Cunliffe wrote: - Original Message - From: Chris Withers [EMAIL PROTECTED] Not yet. I think that O'Reilly doesn't want us to produce any more public versions of the book until it is published. I'm double checking with them right now. Take a look at the copyright verbage on each book page to see what I'm talking about. Kinda tough to check out/read/find mistakes in a book that's only available as a set of html pages that aren't full text searchable This is a really good point. Just as open source benefits from real-time peer review, so do manuscripts get better when fresh eyes and minds and go over them. How about 'releasing' a PDF / HTML Doc with header/footers clearly marked: 'Preview Review copy for Copy-Editing use only. Not for general public or commercial distribution' This is a good idea and probably a good compromise, but this would require us taking the time to negotiate it with O'Reilly and engineer a stx-pdf converter and pre-empt alot of work we have lined up for the book and other documentation efforts. With the existing setup, we don't have to worry about this for a couple months and we don't have to stir the shit with O'Reilly. The number of people who are likely to 'bootleg' the Zope book must be tiny. I agree, and honestly, Amos and I don't care about the bootlegging or book sales revenue. It is also not our job to enforce the rules; I would chuckle to hear about people 'bootlegging' ilicit PDF copies of the book. Most will want to see the book sales thrive, Yeah, NY Times bestseller list!!! so that Zope grows and gets the wider recognition it deserves.And to save time and money when developing Zope projects. For such sophisticated 'free' software, a well written, well edited book is a trivial price to pay. The issue is how to get the best final copy to the printer in timely manner. Well... from your perspective (and ours) but from O'Reilly's I think they're woried about *who* the first person to print that best final copy is. Those are the people they are worried about bootlegging the book, not you, they _know_ you'll buy a copy. ;) If we open content it now, someone could beat ORA to the shelves by a week and undercut a sizable percentage of sales and all they would ahve to do is put ORAs name on the cover, but they don't get any money. I feel your pain on all issues. A couple more months and this will all go away. -Michel ___ 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] Help! Zope Crash
I am running a Zwiki site at http://www.handhelds.org:8080/wiki. This site has become invaluable to our growing handhelds.org community as a place to collect information. But, sadly our zope server keeps dyingNo idea why Sometimes the zope server can be up for a few days, sometimes only a few hours. I am not sure what is causing this or how to go about tracking it down. Is there anything I can do? Any help would be greatly appreciated. -- ...EAM... [EMAIL PROTECTED] [EMAIL PROTECTED] --- 'It's because crappy programs offend me.' --Eric Raymond ___ 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] GUF, ZODB, and 2.2.2
I am not using the ZODB as the backend, but I did have to patch GUF to get it to work with zope 2.2.2. Caveat emptor: I have no idea if this patch is really correct, I pretty much stole the little piece of code from LoginManage (which has a similar disclaimer). Martin Andrews -Original Message- From: Jason Byron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 18, 2000 11:58 AM To: [EMAIL PROTECTED] Subject: [Zope] GUF, ZODB, and 2.2.2 Has anyone had luck getting GUF to work using ZODB to store the user info, and Zope version 2.2.2 (no hot fixes)? guf-getuserbyid.patch
Re: [Zope] Zope Book Beta
- Original Message - From: Michel Pelletier [EMAIL PROTECTED] Just as open source benefits from real-time peer review, so do manuscripts get better when fresh eyes and minds and go over them. How about 'releasing' a PDF / HTML Doc with header/footers clearly marked: 'Preview Review copy for Copy-Editing use only. Not for general public or commercial distribution' This is a good idea and probably a good compromise, but this would require us taking the time to negotiate it with O'Reilly and engineer a stx-pdf converter and pre-empt alot of work we have lined up for the book and other documentation efforts. With the existing setup, we don't have to worry about this for a couple months and we don't have to stir the shit with O'Reilly. This is truly nuts... Sounds a like you guys are tired and just want it done and printed now. So please just let us know whom we should contact directly at OReilly. This really is not 'stiring the shit'. Publishing staff are always over worked especially copy-editors. They will appreciate some timely comments, from some [free] Zope experts to help them get their work done quicker and better. Hell, they can even use it on the blurb to help sell the book and get some nice 'OpenSource reaches the Book Publishing World'-type reviews !! I find it hard to believe given the significant role OReilly have in openSource, Python etc that they would not be happy to embrace a __tiny__ experiment in this direction. The issue is how to get the best final copy to the printer in timely manner. Well... from your perspective (and ours) but from O'Reilly's I think they're woried about *who* the first person to print that best final copy is. Those are the people they are worried about bootlegging the book, not you, they _know_ you'll buy a copy. ;) If we open content it now, someone could beat ORA to the shelves by a week and undercut a sizable percentage of sales and all they would ahve to do is put ORAs name on the cover, but they don't get any money. I feel your pain on all issues. A couple more months and this will all go away. A couple of months from now is exactly when the pain will be felt! You open the book and go ooops! damn how'd we miss that one..? Then the reviews come and say "Been really looking forwards to this milestone book for a long time. It is well written by two members of the core Zope team but unfortunately" Please don't confuse controlled easy accesss for willing proofreaders, with public licensing and e-distribution models. Those CAN be sorted out later. Just as employees and freelancers working for Publishers have access to manuscripts, so should and can designated members of the Zope community. These are not annonymous strangers. I have been reading and printing out various chapters of the book from http://www.zope.org/Members/michel/ZB/ over the past month. Then saved out a bunch of the HTML files and printed to PDF. Took 'em round the corner for cheap fast b+ printout and had comb binding put on then. It was worth the $15 for print+binding just to be able to scan on planes and while I was travelling. It already gave me a much better feeling and understnding of Zope :-) - Jason ___ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] ___ 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] Mapping tools with Zope
GIS-like applications are definitely a field where Zope can shine. But most of the current MAP-Servers are interfacing with a RDBMS where a lot of the logic is placed into the database. If one thinks of geographic objects in a way of an object database like Zope, there is a different architecture needed. For example I think of a RTree indexing technic for the objects stored in the ZODB. This would open a lot of possibilities and would cure one of the problems of current GIS , where everything needs to be stored with a geographical view, which makes it sometimes cumbersome to store legacy information or data with a non gis semantic in these systems. On top of the RTree index one could build a python framework to present the geographical part of this data. These are just thoughts from an earth scientist, who needs to deal with this problem, and is in search for a solution. __Janko -- Institut fuer Meereskunde phone: 49-431-597 3989 Dept. Theoretical Oceanographyfax : 49-431-565876 Duesternbrooker Weg 20email: [EMAIL PROTECTED] 24105 Kiel, Germany ___ 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] ANN: HOWTO Use mod_gzip to accelerate Zope
We are pleased to announce a new Zope HOWTO for the community: "Use mod_gzip to accelerate Zope." (http://www.zope.org/Members/Mamey/mod_gzip). Mamey has been following the release of the mod_gzip module by Remote Communications (http://www.remotecommunications.com) since last week. Working with the budding mod_gzip user base, we have been able to get a patched version to work on a RH 6.1 test server. We invite everyone to take a look at this exciting technology that will benefit anyone that serves Zope via the Apache server. -- -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] Director of Technologyhttp://www.mamey.com Mamey Phone: (413) 529-9993 -- -- ___ 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: [Image-SIG] Properly integrating PIL, reportlab, and zope
I have no idea if this will help you. We use PIL, reportlabs and zope to create P.O.'s, to place a logo on the page we use the following line of code: c.drawInlineImage("gclogo_color.gif", .5*inch, 10.*inch,4*inch) where c is created thusly: c = canvas.Canvas(fileName,(PAGE_WIDTH*inch,PAGE_LENGTH*inch), pageCompression=0) HTH, Dan ed colmar wrote: Hi all! I am working on a project using zope and reportlab. The goal is to have uploaded images end up in a formatted PDF file. I have both of these halves completed, I need to figure out how to connect them. I have been using SquishFile.py as the wrapper around uploaded images, as is done in squishdot. The few image types I have tried have displayed fine on screen, but PIL is not able to recognise the image. How would you go about wrapping the file in a PIL.Image() ? I've been trying things similar to: cardimage=PIL.Image.open(self.uploadedimage) c.drawInlineImage(cardimage, 1,1) This gives an error in reportlab.canvas.convert() I tried using PIL.image.fromstring(), but I can't quite get the it to work out: filebytes=[str(self.uploadedimage.file_bytes()), 'bytes'] cardimage=PIL.Image.fromstring(self.uploadedimage.content_type(), filebytes, self.uploadedimage.file_data()) c.drawInlineImage(cardimage, 1,1) This gives a typeerror: PIL/Image.py, line 848, in new has anyone succesfully done this? can I just Leave the SquishFile wrapper off if it is ONLY going to be images that get uploaded? Thanks for any ideas! -ed- ___ Image-SIG maillist - [EMAIL PROTECTED] http://www.python.org/mailman/listinfo/image-sig ___ 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] Mapping tools and Zope - SIG? Fishbowl?
I'm writing to all who responded to my query regarding mapping tools for Zope or others interested in this issue. In one of the responses, was the suggestion to start a SIG or Fishbowl. At this point in time, I'm in a research phase for a project where a mapping interface will be needed in Zope based web application. We are starting to move into the design phase and so some technical decisions will start to be made in the next two months at which point we will begin building something. I've received a number of other interesting replies about GIS and Zope and possible solutions. These have ranged from "I know about this" to "I use this" to "We should build something". I think there might be sufficient interest in at least starting a SIG or Fishbowl or separate list about the problem. Is there?? I'm personally a bit hesitant to even consider building yet another GIS product. There are many of them out their (see www.freegis.org) for web display, cartography, spatial analysis, etc. Obviously our interest here is web interfaces, but these other products are testimony to the ubiquitous nature of the problem; a good suite of comprehensive GIS software solutions just doesn't exist, either for free or commercially (IMHO). The approach my team will likely take on our project will be to examine existing open source products and determine if there is one that is sufficient to meet our needs and simply use it. If we can build some tools around this product to facilitate it's future use with Zope by others, we will open source those. I would welcome the discussion of this issue, since it is important and it is one of the up and coming needs for web applications. I would welcome feedback from others who undoubtedly have significant experience and knowledge to bring to this problem. T -- Trevor Wiens [EMAIL PROTECTED] The significant problems that we face cannot be solved at the same level of thinking we were at when we created them. (Albert Einstein) ___ 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] Re:GoLive
Fred Yankowski wrote: On Wed, Nov 01, 2000 at 08:31:09AM -0600, Christopher J. Kucera wrote: That should be pretty easy . . . Zope will let you add objects that have dots in the titles, so just put a method "index_html" in the root folder which has the following line: dtml-var index.html That obvious solution fails in some cases. It failed for me the very first time I needed it, when I tried to integrate web pages created by the Web Studio tool into a larger Zope website. Web Studio (ack, phooey) creates a main index.html that uses Javascript to redirect to another page that acts as the real entry point. That Javascript code gets confused when loaded via dtml-var index.html as above. I resorted to doing the following instead: dtml-call "RESPONSE.redirect(URL1 + '/index.html')" I avoid dotted names like th eplague, so my suggestion may not work but you could try: dtml-var "_['index.html']" -- E PLURIBUS LINUX ___ 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] Zope.org down?
mindlace, Check out my company's new HOWTO on an additional way to improve performance: http://www.zope.org/Members/Mamey/mod_gzip On Wed, Nov 01, 2000 at 11:38:42AM -0500, ethan mindlace fremen wrote: Zope.org will be on hardware that stretches the notion of "commodity" soon, but it will be sufficient such that all 500mb of our objects can be floating about in ram if need be. This should improve our performance drastically. Hope that helps, -- -mindlace- Zopatista Community Liason -- Andres Corrada-Emmanuel Email: [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] XML-RPC vs External method?
Hello all, I have setup a query form to query a small MySQL database using Zope. It consists of: 1. ZMySQL Database Connection (ZMySQLDA) 2. ZSQL method 3. A search interface. Now, what I want is the user to have the option of viewing the results in HTML or raw XML. I think there can be two approaches to this: 1. External method, or 2. XML-RPC. 1. External method: Replaces the ZMySQL database connection with an external Python function called 'mysqldb_XML', pieces of which follow: def mysqldb_XML(self,query): """ Use a MySQL SAX driver to map relational data to XML. Hacked from PyXML saxdemo.py. The MySQL driver is a modified version of Sean McGrath's drv_mysql.py ("XML Processing with Python"). """ from xml.sax import saxexts, saxlib, saxutils, writer import sys,urllib #Our MySQLdb XML driver; driver="xml.sax.drivers.drv_mysqldb" . out = sys.stdout; p=saxexts.make_parser(driver) dh=writer.PrettyPrinter(out,dtdinfo=info) try: p.setDocumentHandler(dh) return p.parse(query) except IOError,e: return in_sysID+": "+str(e) except saxlib.SAXException,e: return str(e) Inside Zope, I get the ZSQL 'query' and do something like: dtml-call "RESPONSE.setHeader('content-type','text/xml')" dtml-in "mysqldb_XML(query)" dtml-var sequence-item /dtml-in 2. XML-RPC: It seems to me XML-RPC could do this too, but I don't know how one would print out the raw XML response. Could I have a Zope client request the ZSQL method above, but instead of sending it to my output DTML method, I just print the raw-XML stream? Examples would be helpful:-) It seems to me if XML-RPC already produces an XML formatted stream, it would be more efficient to just use it (unless there is yet another way in Zope I'm not aware of). Is it possible? Is there any reason to want to use the external method instead? Thanks for your comments, --irene -- Irene Barg Email: [EMAIL PROTECTED] Steward Observatory Phone: 520-621-2602 933 N. Cherry Ave. University of Arizona FAX:520-621-1891 Tucson, AZ 85721 http://nickel.as.arizona.edu/~barg -- ___ 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] Job opportunities
Software Engineers Join a small, motivated team to create the next generation of web applications. The successful applicant will be comfortable working hard to meet deadlines and enjoy the challenge of developing new skills and innovative solutions on a day to day basis. Skills Required: - Good knowledge of HTML4 necessary. - Zope and/or python experience highly desirable, but not necessary - Basic javascript knowledge an advantage. - Experience developing software in a Unix environment prefered. - Experience in web application servers such as php, coldfusion, or asp helpful - Commercial experience not necessary...will accepted graduates Position: Permanent or contract. Location: Melbourne, Australia Renumeration: 50k-80k depending on skills and experience. Technical Writer / Trainer Working with a small team of programmers, your role will entail developement and maintenance of programmers documentation, and online and printed user manuals and other sources of information for commercial off-the-shelf software. You will also be involved in the shaping of company documentation and training standards, and involved with product planning and testing. It is necessary for you to be able to learn both the technical and user aspects of the the companies software products, and be able to liaise with subject matter experts to extract the required level of detail. Prior experience in leading documentation projects is essential, as with working knowledge of deskop documentation publication tools. Experience in conducting training sessions a plus. Work with a highly talented and motivated team, in a casual work/office environment. Position: Permanent or contract. Location: Melbourne, Australia Renumeration: 55k neg Mail to [EMAIL PROTECTED] for further information and applications. -- Terry Kerr ([EMAIL PROTECTED]) Bizar Software Pty Ltd (www.bizarsoftware.com.au) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ 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] OT Zope book images - PDF
In light of all the hubbub about the Zope book, I thought I would try and make my own copy of it in PDF format (just for me, of course). I'm finding that Acrobat doesn't know how to convert the PNG image file type used in the Zope Book. (or rather, I don't know how to get it to work !) Anyone know how to get png files into Acrobat? Oh, I'm trying to use their 'Open Web Page' method of creating the document. Is there another/better way that will get the png images? Thanks, Eric. ___ 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] Multi-lingual sites and workflow
I was wondering if anyone here has used Zope to create bilingual/multi-lingual/localised websites. I've done a number of bilingual (French and English) projects in recent years using plain old html where the two language versions had to be kept mostly symmetrical and its been a bit of a pain as the site grows to keep the two versions in synch and make sure the translations are done on time etc. Its seems that Zope might help manage these kinds of projects - by smoothing the workflow - tracking what needs translation, perhaps sending stuff to the translator automatically, reporting on what's been done by who and comparing the two language versions to make sure they are parallel. And perhaps even sharing a common architecture - so that you didn't need two sets of DTML methods etc. I'm wondering if this fits into other generic Zope workflow products that people have talked about developing or if it would have to be built from scratch. Anyone have thoughts on this subject? Regards Lee Hunter Hum Communications Ltd. ___ 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] OT Zope book images - PDF
Eric, I got Acrobat to recognise the png's by first loading the html nto msword and then 'printing' the PDF from there. hth Phil - Original Message - From: "Eric Walstad" [EMAIL PROTECTED] To: "[EMAIL PROTECTED]" [EMAIL PROTECTED] Sent: Thursday, November 02, 2000 12:58 AM Subject: [Zope] OT Zope book images - PDF | In light of all the hubbub about the Zope book, I thought I would try and | make my own copy of it in PDF format (just for me, of course). I'm finding | that Acrobat doesn't know how to convert the PNG image file type used in the | Zope Book. (or rather, I don't know how to get it to work !) Anyone know | how to get png files into Acrobat? Oh, I'm trying to use their 'Open Web | Page' method of creating the document. Is there another/better way that | will get the png images? | Thanks, | Eric. | | | ___ | 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] XML-RPC vs External method?
if the xml format is simple you could just do it dtml, it would end up with some extra white space but it would still be valid. a dtml method akin to ?xml version="1.0"? dtml-in mysqlretrieve item contentdtml-var content/content squishydtml-var squishy/content /item /dtml-in kapil Irene Barg wrote: Hello all, I have setup a query form to query a small MySQL database using Zope. It consists of: 1. ZMySQL Database Connection (ZMySQLDA) 2. ZSQL method 3. A search interface. Now, what I want is the user to have the option of viewing the results in HTML or raw XML. I think there can be two approaches to this: 1. External method, or 2. XML-RPC. 1. External method: Replaces the ZMySQL database connection with an external Python function called 'mysqldb_XML', pieces of which follow: def mysqldb_XML(self,query): """ Use a MySQL SAX driver to map relational data to XML. Hacked from PyXML saxdemo.py. The MySQL driver is a modified version of Sean McGrath's drv_mysql.py ("XML Processing with Python"). """ from xml.sax import saxexts, saxlib, saxutils, writer import sys,urllib #Our MySQLdb XML driver; driver="xml.sax.drivers.drv_mysqldb" . out = sys.stdout; p=saxexts.make_parser(driver) dh=writer.PrettyPrinter(out,dtdinfo=info) try: p.setDocumentHandler(dh) return p.parse(query) except IOError,e: return in_sysID+": "+str(e) except saxlib.SAXException,e: return str(e) Inside Zope, I get the ZSQL 'query' and do something like: dtml-call "RESPONSE.setHeader('content-type','text/xml')" dtml-in "mysqldb_XML(query)" dtml-var sequence-item /dtml-in 2. XML-RPC: It seems to me XML-RPC could do this too, but I don't know how one would print out the raw XML response. Could I have a Zope client request the ZSQL method above, but instead of sending it to my output DTML method, I just print the raw-XML stream? Examples would be helpful:-) It seems to me if XML-RPC already produces an XML formatted stream, it would be more efficient to just use it (unless there is yet another way in Zope I'm not aware of). Is it possible? Is there any reason to want to use the external method instead? Thanks for your comments, --irene -- Irene Barg Email: [EMAIL PROTECTED] Steward Observatory Phone: 520-621-2602 933 N. Cherry Ave. University of Arizona FAX:520-621-1891 Tucson, AZ 85721 http://nickel.as.arizona.edu/~barg -- ___ 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] Help! Zope Crash
Edward Muller wrote: Sometimes the zope server can be up for a few days, sometimes only a few hours. I am not sure what is causing this or how to go about tracking it down. Is there anything I can do? Any help would be greatly appreciated. Well, this may just be 'any help'. But A couple of months ago the FreePM.org site would do the same thing. It did not seem to be traffic dependent, maintenance ... etc. Finally my host (http://www.michaelchaney.com thank you for supporting opensource) changed out the memory in the machine. He tried in the memory in a different machine it worked fine. But I have had the site go down since. -- Tim Cook -- Office: (901) 884-4126 8am-5pm CST Free Practice Management,Inc. | http://FreePM.org Censorship: The reaction of the ignorant to freedom. ___ 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] Help! Zope Crash
Tim Cook wrote: tried in the memory in a different machine it worked fine. But I have had the site go down since. Should be: I have not had the site go down since. (maybe I'll learn to proof my emails!) -- Tim Cook -- Office: (901) 884-4126 8am-5pm CST Free Practice Management,Inc. | http://FreePM.org Censorship: The reaction of the ignorant to freedom. ___ 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] Help! Zope Crash
Edward Muller wrote: I am running a Zwiki site at http://www.handhelds.org:8080/wiki. This site has become invaluable to our growing handhelds.org community as a place to collect information. But, sadly our zope server keeps dyingNo idea why Sometimes the zope server can be up for a few days, sometimes only a few hours. I am not sure what is causing this or how to go about tracking it down. Is there anything I can do? make sure you start zope with the STUPID_LOG_FILE environment variable set. Then, when your zope dies, look at the tail end of the log file. It should have a line that has an "Aiieee ! 12312 exited with error code: xx". The error code is what you should be looking at- it will tell you what your OS reports the problem as being. error 11 on linux is segfault, which *may* be hardware related. hope this helps, -- -mindlace- Zopatista Community Liason ___ 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] incorporating generated sub-websites within a Zope site
Fred Yankowski [EMAIL PROTECTED] said: OK, this problem is largely the result of the crappy web-design tool she's using, but I really have no control over that. The subsite manage/author doesn't know HTML and would be completely helpless with Zope's "through the web" editing interface. You could of course convert the structure of the site in DTML documents that include the contents from Structured Text documents. Anyone can learn STX, so she could edit the contents through the Zope interface. Also a possibility, although I'm way out of my league here (I'm not a Windows user): WebDAV under '98. If you can explore the documents with the '98 explorer, you should be able to edit them with any tool, not? (I believe that anyone can learn HTML as well, given someone with reasonable didactic skills and an hour or two of time). -- Cees de Groot http://www.cdegroot.com [EMAIL PROTECTED] GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Forge your CipherSaber and list it: http://www.xs4all.nl/~cg/ciphersaber/ ___ 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] Zope.org uptime listed by netcraft
on www.netcraft.com I looked at the list with the websites having the maximum uptime and found - Zope - under the top 10 ! Check it out: http://uptime.netcraft.com/today/top.avg.html phil