Re: [Zope3-Users] Specialized URL traversal.. Best way?

2005-12-31 Thread Marius Gedminas
there? I would also like to know that. Marius Gedminas -- Any sufficiently advanced Operating System is indistinguishable from Linux. -- Jim Dennis signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users

Re: [Zope3-Users] Specialized URL traversal.. Best way?

2006-01-10 Thread Marius Gedminas
On Tue, Jan 03, 2006 at 05:37:30PM -0500, Wade Leftwich wrote: Marius Gedminas wrote: On Thu, Dec 29, 2005 at 11:22:28PM -0700, Jeff Shell wrote: Again, this is to have URLs like: myapp/@@tags/zope/viewlet How about this? It gives

Re: [Zope3-Users] Namespace/Viewlets

2006-05-27 Thread Marius Gedminas
this should be the correct usage: class FooView(BrowserView): def __call__(self): template = ViewPageTemplateFile(foo.pt) return template(self) Big Fat Disclaimer: I'm writing from memory and could be completely wrong. Marius Gedminas -- 9. Okay, then, what do you

Re: [Zope3-Users] Zope and UTF-8 accentuated characters

2006-08-26 Thread Marius Gedminas
. I tried defining my templates' charset as utf-8, but that generates lots of errors. Has anyone an idea on how to solve this problem. You have not told us enough to diagnose the problem. Can you reproduce it with a shortest possible test case? Marius Gedminas -- Woe unto them that rise up

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2006-08-31 Thread Marius Gedminas
not happen? Must Zope3 support Python versions prior to the introduction of the Decimal type? Not as far as I know. I'm willing to tackle it and make a submission, otherwise. +1 I am going to work on this today. Marius Gedminas -- You can't spell evil without vi. pgp92jSDRH66d.pgp

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2006-08-31 Thread Marius Gedminas
On Thu, 31 Aug 2006 20:29:49 +0700 Darryl Cousins [EMAIL PROTECTED] wrote: On Thu, 2006-08-31 at 15:07 +0300, Marius Gedminas wrote: I am going to work on this today. For what it may be worth, a Decimal field: Code: http://projects.treefernwebservices.co.nz/tfws.org.nz/file/trunk/src/tfws

Re: [Zope3-Users] svn.zope.org and www.zope.org not online

2006-10-10 Thread Marius Gedminas
a new one. I see 63.240.213.171 in one network, and 63.240.213.1 back at the office. It's probably best to wait until the various DNS servers stop acting crazy. Marius Gedminas -- It's not illegal to disagree with my opinions (*). [...] (*) Although it obviously _should_ be. Mwhaahahahahaaa... You

Re: [Zope3-Users] ForbiddenAttribute or unknown attribute?

2006-10-15 Thread Marius Gedminas
a security declaration allowing accesss to this attribute, but your object doesn't actually have the attribute. Marius Gedminas -- ...the only place for 63,000 bugs is a rain forest signature.asc Description: Digital signature ___ Zope3-users mailing

Re: [Zope3-Users] Problem with Python 2.4.4

2006-10-24 Thread Marius Gedminas
stream object doesn't accept a maximum size). Marius Gedminas -- Read what I mean, not what I write. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Problem with Python 2.4.4

2006-10-24 Thread Marius Gedminas
On Tue, Oct 24, 2006 at 10:42:41AM -0400, Jim Fulton wrote: Marius Gedminas wrote: I've fixed this bug a couple of weeks ago. It was http://www.zope.org/Collectors/Zope3-dev/535 (It's not marked as resolved, because the Zope file stream object discards the maximum size, circumventing

Re: [Zope3-Users] Name chooser and Renaming

2007-01-10 Thread Marius Gedminas
chooser and never let you specify your own name. IContainerNamesContainer indicates that you have a container of the second kind. I hope this clears things up for you. Marius Gedminas -- My opinions may have changed, but not the fact that I'm right! signature.asc Description: Digital signature

Re: [Zope3-Users] Blog for Zope3

2007-01-15 Thread Marius Gedminas
On Mon, Jan 15, 2007 at 12:33:52AM +0100, Christophe Combelles wrote: I'm currently playing with zblog. It's very basic, you can just add blog entries as text and display them. But it's a good starting point and I'm currently adding category management. Surely you mean tags! *ducks* Marius

Re: [Zope3-Users] Re: Empty ZCML file

2007-01-16 Thread Marius Gedminas
does not care if that element is configure or include or something else. I think a single include is fine for package include files, as they are not intended to be modified. The idea is that if you don't want one, you'll remove it from the package-includes directory. Marius Gedminas -- Get a life

Re: [Zope3-Users] Content cloning ?

2007-01-16 Thread Marius Gedminas
: if somebody decides to copy a folder that contains your application objects, these will get copied without looking for any specific adapters. Marius Gedminas -- While preceding your entrance with a grenade is a good tactic in Quake, it can lead to problems if attempted at work. -- C Hacking

Re: [Zope3-Users] recipe for handling of SMTPRecipientsRefused

2007-01-16 Thread Marius Gedminas
time. Is the issue reported to http://www.zope.org/Collectors/Zope3-dev? If not, could you report it there? Marius Gedminas -- PCMCIA - People Can't Memorize Computer Industry Acronyms signature.asc Description: Digital signature ___ Zope3-users

Re: [Zope3-Users] Can't rename objects

2007-01-16 Thread Marius Gedminas
the names used for the elements stored in this container, instead the names will *always* be computed automatically by the name chooser. Remove this interface and you will get your Rename button in the ZMI. the class itself: BTreeContainer, SiteManagerContainer What's wrong? Marius

Re: [Zope3-Users] Skinning problem

2007-01-17 Thread Marius Gedminas
. (I'm sure href context/++resource++name.css is the right solution for plain resource files, but I haven't used resourceDirectory much.) Marius Gedminas -- A: No. Q: Should I include quotations after my reply? signature.asc Description: Digital signature

Re: [Zope3-Users] Re: Skinning problem

2007-01-18 Thread Marius Gedminas
(s) to make them traversable so that you could say obj/@@absolute_url/something_to_append in a TALES expression. But it wouldn't work when something_to_append starts with '@@'.) Marius Gedminas -- Never, ever expect hackers to be able to read closed proprietary document formats like Microsoft

Re: [Zope3-Users] Problems with custom EditForm

2007-01-24 Thread Marius Gedminas
on an object other than 'self'.) HTH, Marius Gedminas -- TCP_UP - The 16-bit TCP Urgent Pointer, encoded as the hex representation of the value of the field. The hex string MUST be capitalized since it is urgent. -- RFC 3093 signature.asc Description: Digital

Re: [Zope3-Users] Access to request in content object and object path in doctests

2007-01-24 Thread Marius Gedminas
): setup.placelessTearDown() def test_suite(): return doctest.DocTestSuite(setUp=setUp, tearDown=tearDown) if __name__ == '__main__': unittest.main(defaultTest='test_suite')) I avoid setup.placefulSetUp, and I avoid zapi/ztapi. Cheers, Marius Gedminas -- System going down at 5

Re: [Zope3-Users] How To Kill Zope

2007-01-31 Thread Marius Gedminas
. Marius Gedminas -- A secret: don't tell DARPA I'm not building the sun destroying weapon they think I am. -- Michael Salib, the author of Starkiller signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org

Re: [Zope3-Users] PT, i18n and dynamic attributes...how to?

2007-02-02 Thread Marius Gedminas
here! and click . Marius Gedminas -- Life was simple before World War II. After that, we had systems. -- Grace Murray Hopper, 1987 signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] css/page template ?

2007-02-10 Thread Marius Gedminas
}/@@/yourfile.css {$site} is the URL of the nearest site. Which you can easily find in a page template, if you use link rel=stylesheet tal:attributes=href context/++resource++yourfile.css / Marius Gedminas -- You can't have megalomania. *I* have megalomania. -- Joe Bednorz

Re: [Zope3-Users] Permission problem on adapter

2007-02-11 Thread Marius Gedminas
manually in the constructor. Marius Gedminas -- Where do you think you're going today? signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: Can't find MessageIDFactory

2007-02-11 Thread Marius Gedminas
message here) just above, condense them all to time_report = _(Your message here, mapping={'time_to_cook': 45, 'something_else': 'here'}) Marius Gedminas -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting

Re: [Zope3-Users] Error when calling addform

2007-02-11 Thread Marius Gedminas
the schema, like in your example above, you can do class BlogCommentAdd(form.AddForm): form_fields = form.Fields(IBlogComment).omit('__name__', '__parent__') Marius Gedminas -- * philiKON wonders what niemeyer is committing

Re: [Zope3-Users] Re: formlib vs. cancel button

2007-02-15 Thread Marius Gedminas
it. Something like validator=NULL_VALIDATOR would be fine, or some kind of decorator. +1 for allowing @form.action(Cancel, validator=form.no_validation) Note that as a side effect of an empty validator you will always get an empty data dictionary in the handler method. Marius Gedminas -- Corsac yeah

Re: [Zope3-Users] Error when calling addform

2007-02-15 Thread Marius Gedminas
solution that scales well when you need to change something. Form directives may work well for trivial cases, but they don't scale when you need to change things. My point is that if there is something new here, I would like to learn. :) You will not regret learning zope.formlib. Marius

Re: [Zope3-Users] Zope 3 mkzopeinstance OverflowWarning Error Condition

2007-02-15 Thread Marius Gedminas
of the iceberg. Marius Gedminas -- BYTE editors are people who separate the wheat from the chaff, and then carefully print the chaff. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman

Re: [Zope3-Users] Re: formlib vs. cancel button

2007-02-15 Thread Marius Gedminas
On Thu, Feb 15, 2007 at 05:37:52PM +0100, Philipp von Weitershausen wrote: Martin Aspeli wrote: Marius Gedminas wrote: On Thu, Feb 15, 2007 at 09:55:19AM +, Martin Aspeli wrote: Dennis Schulz wrote: I dont know if it is the proper way, but when I return an empty string

Re: [Zope3-Users] Grant role top zope.anybody

2007-02-17 Thread Marius Gedminas
file that is included in site.zcml after principals.zcml. Marius Gedminas -- If something has not yet gone wrong then it would ultimately have been beneficial for it to go wrong. signature.asc Description: Digital signature ___ Zope3-users mailing list

Re: [Zope3-Users] Grant role top zope.anybody

2007-02-18 Thread Marius Gedminas
On Sun, Feb 18, 2007 at 11:47:06AM +0100, Florian Lindner wrote: Am Samstag, 17. Februar 2007 23:35 schrieb Marius Gedminas: On Sat, Feb 17, 2007 at 12:48:05PM +0100, Florian Lindner wrote: ZCML is order-dependent (sadly). You need to put your grant after the principal definition

Re: [Zope3-Users] Re: OrderedContainer.keys() does not return newely added key in ObjectAddedEvent

2007-02-20 Thread Marius Gedminas
perspective? You can submit the patch and the original bug report to the Zope 3 bug collector (http://www.zope.org/Collectors/Zope3-dev). Marius Gedminas -- Corsac yeah, i'm reading the answers, currently Corsac but what I see is that there is no real procedure to rebuild initfs Corsac

Re: [Zope3-Users] Schema fields vs custom metadata

2007-02-23 Thread Marius Gedminas
? As schema fields or as custom metadata? I have tried both without success and need to know which of the two are the correct way or if I need to change the hole design. I would use schema fields. Which way is more correct depends on your application. Marius Gedminas -- I spent a lot

Re: [Zope3-Users] Problem with macro

2007-02-25 Thread Marius Gedminas
, @@view.html/index revers to the template, and @@view.html/index/macros refers to the macros defined in that template. Marius Gedminas -- For every complex problem, there is a solution that is simple, neat, and wrong signature.asc Description: Digital signature

Re: [Zope3-Users] Problem with macro

2007-02-26 Thread Marius Gedminas
On Mon, Feb 26, 2007 at 02:40:13PM +0100, Florian Lindner wrote: Am Sonntag, 25. Februar 2007 15:03 schrieb Marius Gedminas: On Sun, Feb 25, 2007 at 02:02:43PM +0100, Florian Lindner wrote: I have a simple problem. A template: html metal:use-macro=views/standard_macros/view

Re: [Zope3-Users] Question about IOrderedContainer interface

2007-02-26 Thread Marius Gedminas
=IReadContainer permission=zope.View / require interface=IWriteContainer permission=zope.ManageContent / require attributes=updateOrder permission=zope.ManageContent / Marius Gedminas -- There's an old story about the person who wished his computer were as easy to use

Re: [Zope3-Users] External content with ZPT

2007-02-26 Thread Marius Gedminas
. There is no direct way to access files or URLs within ZPTs. Marius Gedminas -- To be intoxicated is to feel sophisticated but not be able to say it. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] Zope3 with RDBMS (avoiding ZODB)?

2007-02-28 Thread Marius Gedminas
that mean that we should definitively not use Zope3 if we don't want to use the ZODB but our RDBMS instead? No, but that is not a typical use of Zope 3 (although it's been done), so you should not expect much in the way of documentation. Marius Gedminas -- Nuclear war can ruin your whole compile

Re: [Zope3-Users] Can I override IntId's subscriber in overrides.zcml?

2007-02-28 Thread Marius Gedminas
for your objects so that the NotYet exception never occurs. Marius Gedminas -- The laser etcher can accept most any image data, (think logos or screen dumps!) and render it on a heat-sensitive surface. There's a big tunable exhaust fan, so the thing can be dialed in to Not vaporize your laptop

Re: [Zope3-Users] Zope3 startup

2007-02-28 Thread Marius Gedminas
the ZODB database, and then starts listening on network ports. Marius Gedminas -- Any sufficiently advanced magic is indistinguishable from technology. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] Zope3 startup

2007-03-02 Thread Marius Gedminas
-weitershausen/2007_01_09_you-thought-zope-3-wasn Marius Gedminas -- The laser etcher can accept most any image data, (think logos or screen dumps!) and render it on a heat-sensitive surface. There's a big tunable exhaust fan, so the thing can be dialed in to Not vaporize your laptop

Re: [Zope3-Users] z.a.component.vocabulary.UtilityNameTerm bad implementation ?

2007-03-31 Thread Marius Gedminas
are implemented as methods not properties. bug ? I think so. BTW, the UtilityName vocabulary that uses UtilityNameTerms does not appear to be used anywhere. Marius Gedminas -- You'll find creativity working hand in hand with engineering. It will feel strange and you might feel like things are out

Re: [Zope3-Users] boolean value of adapted objects

2007-04-03 Thread Marius Gedminas
or if (ISharedDataInfo(context, None) is None or IPrivateDataInfo(context, None) is None): return None return context whichever seems clearer. Marius Gedminas -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top

Re: [Zope3-Users] OOBTree instances lose attributes upon restart

2007-04-06 Thread Marius Gedminas
(...) def __init__(self): self.data = OOBTree() def __getitem__(self, key): return self.data[key] ... Marius Gedminas -- I dont know about madness (and anyway, the little green martians dancing around me tell me not to worry...), but I've implemented something

Re: [Zope3-Users] Re: execution time of a request?

2007-04-08 Thread Marius Gedminas
remember how to use the profile/hotshot modules). http://mg.pov.lt/blog/profiling.html Speaking of which, has anybody ever succeeded in profiling Zope 3 unit tests? I get an exception at the very end, and no useful results. Marius Gedminas -- One picture is worth 128K words. signature.asc Description

Re: [Zope3-Users] Add unittest

2007-04-18 Thread Marius Gedminas
-vpu -s ProxyCache Marius Gedminas -- [...] the basic your gun, your foot, your choice memory model. -- jtv on lkml signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman

Re: [Zope3-Users] Calling a view in a doc test

2007-06-04 Thread Marius Gedminas
. Marius Gedminas -- Cool. Does it also recode ISO10646-1 pcf files into the funny permutations and subsets used a long time ago in a galaxy far far away on the planets Isolatinus XV and Koiruski VIII ... -- Markus Kuhn inquires about libXft signature.asc Description: Digital signature

Re: [Zope3-Users] Utility for removing unneeded import statements

2007-06-05 Thread Marius Gedminas
something def doctest_foo(): use something def doctest_bar(): use something def test_suite(): return doctest.DocTestSuite() Can the import checker in Z3 handle this? Marius Gedminas -- To stay awake all night adds a day to your life

Re: [Zope3-Users] Calling a view in a doc test

2007-06-05 Thread Marius Gedminas
On Tue, Jun 05, 2007 at 04:49:37PM +0200, Florian Lindner wrote: Am Montag, 4. Juni 2007 schrieb Marius Gedminas: On Mon, Jun 04, 2007 at 03:14:16PM +0200, Florian Lindner wrote: in a doctest I have an object which has a view registered. I want to call this view and test for the XML

Re: [Zope3-Users] Utility for removing unneeded import statements

2007-06-05 Thread Marius Gedminas
not find all unnecessary imports, that's why I switched to pyflakes. By pyflakes doesn't handle I meant it found too many unnecessary imports, some of which were actually very necessary (for the doctests). Marius Gedminas -- Linux is not user-friendly. It _is_ user-friendly. It is not ignorant

Re: [Zope3-Users] Re: Evolution of ZoDB after changing python modules structure (moving content classes to another module)

2007-06-12 Thread Marius Gedminas
(e.g. ones stored in annotations) refer to your old classes, you'll need to do more. Stephan Richter once figured out how to do that for SchoolTool, IIRC it involved looping through all OIDs in the database and marking them as _p_changed. Marius Gedminas -- Whom the gods would destroy, they first

Re: [Zope3-Users] Zope3 profiler ?

2007-06-12 Thread Marius Gedminas
://mg.pov.lt/blog/benchmarking-zope3-apps.html Marius Gedminas -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth signature.asc Description: Digital signature ___ Zope3-users mailing list

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-06-16 Thread Marius Gedminas
=metrod.app.layer.IMetroDBrowserLayer / Marius Gedminas -- Despite all appearances, your boss is a thinking, feeling, human being. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Calling a view in a doc test

2007-06-19 Thread Marius Gedminas
On Mon, Jun 18, 2007 at 10:14:14PM +0200, Florian Lindner wrote: Am Dienstag, 5. Juni 2007 schrieb Marius Gedminas: I would suggest that you remove everything and keep just def blogSetUp(test): zope.testing.module.setUp(test, 'Blog.doctest') it worked after I've added the line above

Re: [Zope3-Users] Getting view result from Python

2007-06-27 Thread Marius Gedminas
. There must be some other piece of code that fails for you. So zapi.getMultiAdapter creates the view, but how can I initialize it with it's required parameters (context and request) ? getMultiAdapter does that. I speak from personal experience. Marius Gedminas -- ...the only place for 63,000 bugs

[Zope3-Users] mkzopeapp and zope.publisher/zope.exceptions incompatibility?

2007-07-07 Thread Marius Gedminas
are in the 3.5 version range. Marius Gedminas -- Always forgive your enemies. Nothing annoys them more. -- Oscar Wilde signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] Re: Introducing z3c.form - widget snippets

2007-07-13 Thread Marius Gedminas
the cost of the snippet is too high: 1. It introduces a new pattern for cases that are well-covered otherwise. 2. It requires a new directive. But as I said before, you should publish your work and see how people like it. FWIW I'm with Stephan on this one. Too many new concepts. Marius

Re: [Zope3-Users] Re: Introducing z3c.form - widget snippets

2007-07-14 Thread Marius Gedminas
On Fri, Jul 13, 2007 at 01:53:04PM -0400, Stephan Richter wrote: On Friday 13 July 2007 13:34, Marius Gedminas wrote: tal:block define=widget view/widgets/mywidget Almost.  You need a nocall: there Not true, I think. :-) z3c.form widgets are not callable; they only have a render

Re: [Zope3-Users] Why all of the names of the interfaces in the zope3 are the same 'InterfaceClass'?

2007-12-12 Thread Marius Gedminas
zope.interface.interfaces import IInterface for x in sorted(dir(interfaces)): ... obj = getattr(interfaces, x) ... if IInterface.providedBy(obj): ... obj.__name__ HTH, Marius Gedminas -- C is for Cookies. Perl is even better for Cookies. signature.asc Description: Digital

Re: [Zope3-Users] TAL expression and ascii

2007-12-14 Thread Marius Gedminas
Python script, you'll have to take care of converting your binary strings to Unicode yourself. Am I misunderstanding something or doing something wrong? I think so. If you could show us how you're migrating some data into the ZODB, we could give you more advice. Regards, Marius Gedminas

Re: [Zope3-Users] public view on a private object

2007-12-19 Thread Marius Gedminas
couldn't figure it out for a long time? I've seen before the sort of tracebacks left by an exception that happens when Zope is trying to render an exception view. The exception caught here seems familiar, and self._logErrorWithErrorReportingUtility in the traceback is a big hint. HTH, Marius Gedminas

Re: [Zope3-Users] Copy / Move ZODB Content From Dev Zope3Instance to Production Zope3 Instance?

2008-01-22 Thread Marius Gedminas
attached (i.e. have None as the __parent__) -- these will never be copied/exported In general, I'd say it's impossible to provide reliable object copying (or import/export) without knowing (or limiting) what your application stores in the DB. Marius Gedminas -- No sane person should use

Re: [Zope3-Users] Transforming formlib field data on save

2008-01-22 Thread Marius Gedminas
in this email is untested. HTH, Marius Gedminas -- An algorithm must be seen to be believed. -- D.E. Knuth signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman

Re: [Zope3-Users] InvalidObjectReference error

2008-01-22 Thread Marius Gedminas
, or mutable default method arguments). Marius Gedminas -- Westheimer's Discovery: A couple of months in the laboratory can frequently save a couple of hours in the library. signature.asc Description: Digital signature ___ Zope3-users

Re: [Zope3-Users] Status of zsync

2008-01-22 Thread Marius Gedminas
of your application, including page templates, should be developed on the filesystem. Use ViewPageTemplateFile for templates instead of ZPTPage. Marius Gedminas -- Some people around here wouldn't recognize subtlety if it hit them on the head. signature.asc Description: Digital signature

Re: [Zope3-Users] ImportError running bin/zopectl run myScript.py

2008-01-22 Thread Marius Gedminas
/debugzope script doesn't have these two lines, so I suggest you remove them: import paths paths.addPackagePaths() I've filed a bug: https://bugs.launchpad.net/zope3/+bug/185219 Marius Gedminas -- Get a life? Well, once I nearly found one, but the link was broken. signature.asc Description

Re: [Zope3-Users] zmi menu error

2008-01-23 Thread Marius Gedminas
and DriverView for ICar and IDriver interfaces instead of Car and Driver classes. That's right. This is a Zope 3 bug that's been fixed in SVN: http://svn.zope.org/?rev=79035view=rev Marius Gedminas -- Cheap, Fast, Good -- pick two. signature.asc Description: Digital signature

Re: Fwd: [Zope3-Users] z3c-form meta.zcml error

2008-01-24 Thread Marius Gedminas
was fixed on the same day in a newer setuptools 0.6 prerelease. Marius Gedminas -- Funny off-topic messages are always on-topic. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org

Re: [Zope3-Users] Literal double quoted string within single quoted attribute in ZPT

2008-01-28 Thread Marius Gedminas
the code much more complicated, I think (unless we support structure as well in this case). Marius Gedminas -- Despite all appearances, your boss is a thinking, feeling, human being. signature.asc Description: Digital signature ___ Zope3-users mailing

Re: [Zope3-Users] Instance - increase number of threads

2008-01-28 Thread Marius Gedminas
On Mon, Jan 28, 2008 at 08:07:48PM +0200, Marius Gedminas wrote: On Mon, Jan 28, 2008 at 10:47:58AM +0100, Meier Daniel wrote: Hi there, Newbie question: Where can I increase the number of threads for a zope3 instance? Edit the zope.conf and add threads 5 for whatever value

Re: [Zope3-Users] Instance - increase number of threads

2008-01-28 Thread Marius Gedminas
object caches, so increasing the number of threads might increase the server memory usage. PLEASE NOTE This message may contain confidential, proprietary, or legally privileged snip These are *annoying* Marius Gedminas -- Writing setattr hooks properly is a black art. Writing persistent setattr

[Zope3-Users] Re: [Zope-dev] Zope 3.4.0 candidate 1 Released

2008-02-01 Thread Marius Gedminas
On Fri, Feb 01, 2008 at 11:06:48AM -0500, Chris McDonough wrote: I typed four more paragraphs full of markety stuff here but deleted them. *cheers* Marius Gedminas -- The clothes have no emperor. -- C.A.R. Hoare, commenting on ADA. signature.asc Description: Digital

[Zope3-Users] Re: [Zope-dev] Zope 3.4.0 candidate 1 Released

2008-02-03 Thread Marius Gedminas
On Fri, Feb 01, 2008 at 05:26:14PM -0500, Chris McDonough wrote: Marius Gedminas wrote: On Fri, Feb 01, 2008 at 11:06:48AM -0500, Chris McDonough wrote: I typed four more paragraphs full of markety stuff here but deleted them. *cheers* I'll take that as STFU ;-) It wasn't intended

Re: [Zope3-Users] Slow response time with zope3

2008-02-05 Thread Marius Gedminas
after Zope 3 serves the first request. Marius Gedminas -- (Pdb) operationerr.w_value.w_value.w_value.w_value.w_value.w_value pypy.interpreter.executioncontext.OperationError instance at 0x5eee30 -- one of the clearer PyPy debugging sessions (seen in Michael Hudson's sig

Re: [Zope3-Users] Datetime Error

2008-02-12 Thread Marius Gedminas
error to me. I cannot reproduce it with Zope 3 trunk. Perhaps it was fixed in a later version? I wouldn't worry too much. Marius Gedminas -- If the ancients were right and to think is to exist, does Microsoft exist? signature.asc Description: Digital signature

Re: [Zope3-Users] z3ext

2008-02-13 Thread Marius Gedminas
. (z3extcms, z3extportal or something like that). By the way, what does z3ext mean? I see ext, I have flashbacks to Zope 2 ExternalFile or ExternalEditor products. Marius Gedminas -- ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). -- Matt Welsh

Re: [Zope3-Users] Re: Error in testbrowser documentation

2008-02-14 Thread Marius Gedminas
, IBrowser was last modified in rev 40065. I guess the person who added the index argument forgot to update the interface definition. Fixed now. Marius Gedminas -- The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over

Re: [Zope3-Users] if make check(test) failure, should I make install?

2008-02-20 Thread Marius Gedminas
to maintain zope.testing Judging from the pathname, you were testing Zope 3.4.0c1. Let me try it... Marius Gedminas -- Apologies for taking up the bandwidth with the apology. Anything else I can apologise for .. er no can't think of anything, sorry about that. Andy Hunt

Re: [Zope3-Users] How do you develop in zope 3?

2008-02-20 Thread Marius Gedminas
$ ~/zope/bin/zopeproject webdev Marius Gedminas -- Every nonempty totally-disconnected perfect compact metric space is homeomorphic to the Cantor set. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] z3c.form - how to set single default values from another object?

2008-02-20 Thread Marius Gedminas
are created initialized. Marius Gedminas -- Nothing ever goes missing that they don't look at me, ever since that time I lost my horse. As if that could be helped. He was white and it was snowing, what did they expect? -- Dolorous Edd in A Storm of Swords by George R. R. Martin

Re: [Zope3-Users] Cloning interfaces/interface fields - how?

2008-02-21 Thread Marius Gedminas
, fixed since. Marius Gedminas -- Go not unto the Usenet for advice, for you will be told both yea and nay (and quite a few things that just have nothing at all to do with the question). signature.asc Description: Digital signature ___ Zope3-users mailing

Re: [Zope3-Users] Re: [Zope-dev] Zope 3.4.0 candidate 1 Released

2008-03-28 Thread Marius Gedminas
to do a post and so on, i think i dont need to enumerate all the disadvantages of a mailing list compared to a forum. forums (and capitalization) are way too cumbersome we should switch to texting each other with our mobile phones how bout a zope3 page on myspace?lol *shudder* Marius

Re: [Zope3-Users] Weird behaviour of ViewPageTemplateFile()

2008-04-10 Thread Marius Gedminas
a local variable instead of a class attribute, pass the view itself as the first argument to __call__ class MyView(BrowserView): def __call__(self): pt = ViewPageTemplateFile('empty.pt') data = pt(self) return data HTH, Marius Gedminas -- Anyone

Re: [Zope3-Users] zope.app.wsgi doesn't register product configurations properly

2008-04-21 Thread Marius Gedminas
) ... This is exactly what zope.app.server does when starting up the server. Or is product configuration explicitly not desired with zope.app.wsgi? I think it's a simple bug. Would you mind adding it to the bug tracker? https://launchpad.net/zope3/+bugs Marius Gedminas -- Linux: the operating system

Re: [Zope3-Users] missing some tabs in the ZMI

2008-04-30 Thread Marius Gedminas
the Tasks or Services tabs, but services as a concept were removed a while ago, in the great component architecture simplification. Now we have only adapters and utilities. Marius Gedminas -- Actually, the Singularity seems rather useful in the entire work avoidance field. I _could_ write up that report

Re: [Zope3-Users] How do I find out references to objects in ZODB

2008-05-02 Thread Marius Gedminas
bet is to keep track of this yourself. Indexes and catalogs may help. Marius Gedminas -- Given enough eyeballs all bugs are shallow. -- Eric S. Raymond, The Cathedral and the Bazaar signature.asc Description: Digital signature ___ Zope3

Re: [Zope3-Users] How can I determine (in code) if the instance is running in devmode or not?

2008-05-30 Thread Marius Gedminas
is_devmode_enabled(): Is devmode enabled in zope.conf? config_context = getConfigContext() return config_context.hasFeature('devmode') Regards, Marius Gedminas -- Don't trust a statistic you haven't faked yourself. -- Seen in another posting by Markus Kuhn

Re: [Zope3-Users] IIntIds in test environment

2008-06-05 Thread Marius Gedminas
, Marius Gedminas -- ... there is always a well-known solution to every human problem -- neat, plausible, and wrong. -- H. L. Mencken (1880-1956), Prejudices signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3

Re: [Zope3-Users] NOTICE: zope.org server move

2008-06-11 Thread Marius Gedminas
that well in advance of the physical move (say, couple of days before), then new DNS information should propagate quickly. Regards, Marius Gedminas -- Microsoft is not the answer. Microsoft is the question. No is the answer. signature.asc Description: Digital signature

Re: [Zope3-Users] buildout recipe for ReportLab

2008-07-11 Thread Marius Gedminas
that they declare 'ReportLab' as an egg dependency and then mirror ReportLab-2.1.tgz in their HTTP/FTP site. Marius Gedminas -- [...] the basic your gun, your foot, your choice memory model. -- jtv on lkml signature.asc Description: Digital signature

Re: [Zope3-Users] Configuration Problems?

2008-08-01 Thread Marius Gedminas
it to class ATDemoDisplayForm(form.Form): A simple display form Archetypes. fields = field.Fields(IArchetype).omit('__name__', '__parent__') mode = DISPLAY_MODE Marius Gedminas -- If it wasn't for C, we'd be using BASI, PASAL and OBOL signature.asc Description: Digital signature

Re: [Zope3-Users] building zope 3 instances?

2008-08-20 Thread Marius Gedminas
in your buildout.cfg might be OK. Marius Gedminas -- Bumper sticker: No radio - Already stolen. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Apache config. for skinned sites

2008-08-24 Thread Marius Gedminas
:8080/++skin++skin2/mysite/++vh++http:%{HTTP_HOST}:80/++/$1 [L,P] instead. Marius Gedminas -- MCSE == Marginal Computer Software Enthusiast signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] z3c, GET variables handling pattern

2008-09-11 Thread Marius Gedminas
what I suggested: override the page template and add a hidden field. Take a look at z3c/formdemo/sqlmessage/edit.pt HTH, Marius Gedminas -- ... there is always a well-known solution to every human problem -- neat, plausible, and wrong. -- H. L. Mencken (1880-1956), Prejudices

Re: [Zope3-Users] NotFound Exceptions

2008-09-17 Thread Marius Gedminas
/+bug/261620 stops it from writing to __parent__/__name__ on every access. Marius Gedminas -- This is, or so I'm told, a classic book. I can see why. It is long and it requires a great effort to finish it. If you go through a great effort to suffer for a long time, you are allowed to sneer at people

Re: [Zope3-Users] z3c.formjs - global js-variables and form-content in scripts

2008-09-18 Thread Marius Gedminas
in formjsdemo. It seems quite similar to the tree editor demo in formjsdemo: http://demo.carduner.net/z3c.formjsdemo/test If it were a widget for List fields, it would be a great addition to, um, z3c.widget? z3c.listwidget? I think. The ancient Zope 3 widget for List fields is pretty bad. Marius

Re: [Zope3-Users] ZCML Layout Decision?

2008-10-09 Thread Marius Gedminas
.) Another design decision is that this is a framework for application developers and probably 99% of them will have no previous Zope experience. So teaching them how to setup zcml for their own security declarations etc will be an issue as well. Have you considered Grok? Marius Gedminas

Re: [Zope3-Users] WrongContainedType

2008-10-09 Thread Marius Gedminas
in zope.schema._field, specifically, in Object._validate, and try to see what's wrong by single-stepping. Marius Gedminas -- We're sysadmins. To us, data is a protocol-overhead. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3

Re: [Zope3-Users] WrongContainedType

2008-10-10 Thread Marius Gedminas
and set required=False in all fields? If there is a problem, can you post the interface and class of this object as a sample? And probably the code which tries to store the object. That is the correct path to fixing Tim's problem, but I think we should fix Zope as well. Marius Gedminas -- I

  1   2   >