, and : as the adapt operator.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org
needs?
Can you give an example of the kind of situation where you'd need access
to objects in a doomed transaction in their doomed state, in order to
make an error report?
I'm interested in improving the error handling system in Zope 3, so your
use-case will be very useful.
--
Steve Alexander
the [EMAIL PROTECTED] list first.
The [EMAIL PROTECTED] list is for discussing the development of Zope and
its internals, not for discussing how to use Zope and its API.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http
[EMAIL PROTECTED] and
[EMAIL PROTECTED]
Unless the discussion is about Zope 3 products, in which case it should
be on only [EMAIL PROTECTED]
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
Then, I'd be able to follow the link, authenticate, and read the issue.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
But lo, still you won't be able to do something as
mundane as limit the memory the FTP server is able to consume without
affecting the HTTP server.
You can do this with Zope. Just use ZEO and run one ZEO front-end for
HTTP and one for FTP.
--
Steve Alexander
what version of python and zodb you are using.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman
of this helps for tal:attributes.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http
PROTECTED]
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org
-collector-monitor
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http
, especially objects that
represent code such as python scripts and dtml methods and page templates.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related
with python 2.2 properties.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http
Steve Alexander wrote:
Tim McLaughlin wrote:
According to docs and testing (in the interpreter) I can make a
read-only calculated attribute using property() (I know that setters
do not work w/ non-new-style classes). So I tried the following:
class CMixin:
def getter(self):
return
:
transaction.abort()
else:
request.response.setBody(result)
## request ends
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo
of thing 'large-scale' implies here, and what
kind of problems the fixes fixed.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists
be to revert the current fix, and
instead make tal:attributes use quoteattr.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
those
characters, and no tests would fail.
Also, in a refactoring, this behaviour couild be easily lost if there is
no unit test to demonstrate correct behaviour.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org
, in ?
TypeError: int() argument must be a string or a number
int(AttributeError())
Traceback (most recent call last):
File stdin, line 1, in ?
AttributeError: AttributeError instance has no attribute '__int__'
--
Steve Alexander
___
Zope-Dev maillist
--
Steve Alexander
___
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
I spoke too soon. UnicodeEncodeError is a subclass of ValueError. So
catching ValueError from int(str_or_unicode) is the way to go. Who's
writing that Zope 3 style guide again?
Great.
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ZopePythonStyleGuide
--
Steve Alexander
)
[GCC 2.96 2731 (Red Hat Linux 7.2 2.96-108.7.2)] on linux2
Type help, copyright, credits or license for more information.
callable(object())
0
class Foo:
... pass
...
callable(Foo())
0
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL
.
Of course, Zope 3 isn't ready for general use yet...
--
Steve Alexander
___
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
on 'callable'. You cannot reliably use 'callable'
when you're also using acquisition wrappers.
See my comment to this Collector report.
http://collector.zope.org/Zope/578
I suggest you report the bug you have found in the Collector.
--
Steve Alexander
://www.zope.org/About
--
Steve Alexander
___
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
relative to CookieCrumbler so that it gets
traversed first.
If you need both CookieCrumbler and this new behaviour, you could derive
your product from CookieCrumbler. This would ensure that things happen
in the correct order.
--
Steve Alexander
___
Zope
elements are now created in code.
However, various unit tests of zope and 3rd party products rely on
having a Data.fs.in.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts
you make up a simple python module to demonstrate your case, just
using a method, and mapply?
It may be that there's a way to achieve what you want, while still
keeping things reasonably explicit.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL
()).
Sounds like you could use ZPatterns.
If you do implement your own __getattr__, you might need to check if the
object you want to return implements __of__, and return
object.__of__(self) (or something like that).
--
Steve Alexander
___
Zope-Dev
no
proof that such data was ever received by the browser in any way
meaningful to the end-user. This gets even more complicated when http
proxies are involved.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org
of deprecated APIs in the Zope 2 core.
So, bravo to the CMF developers and contributors. Not only do we have a
useful and innovative framework today, we have the blueprints for a
better Zope tomorrow.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED
, *args):
... pass
...
foo.func_code.co_flags
7
def foo(bar):
... pass
...
foo.func_code.co_flags
3
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML
of the fact
they have been found by that process, referenced.
Your requirement is self-contradictory.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding
methods is used
within other methods.
--
Steve Alexander
___
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
much faster.
--
Steve Alexander
___
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
stream, in the rare cases when this does happen.
--
Steve Alexander
___
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
not to be informed that the source
file for a PageTemplateFile isn't there. That's clearly a programming error.
So, I suggest removing the try: except: clause entirely, and letting
os.stat() raise its error.
Or, am I missing something here?
--
Steve Alexander
an
equivalent exception.
For some reason, the code was not getting there when I came across this
problem. I guess this 'if' expression must have evaluated true.
if hasattr(self, '_v_program') and mtime == self._v_last_read:
return
I'm not sure why it would have done so though.
--
Steve
-effects, then return the HEAD response.
I would generally recommend against this, as it may end up being rather
expensive.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross
explained in the Collector how to fix this problem back in March.
http://collector.zope.org/Zope/181
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding
fragment to set the
Last-Modified head if either there is no header set, or its own
last-modified time is later than one that is set.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
Vincenzo Di Somma wrote:
Hi all,
does someone knows about problems testing CatalogAware subclasses ?
I have unit tests for my class and work well, but if I subclass also
from CatalogAware I receive:
Don't use CatalogAware, use CatalogPathAware.
--
Steve Alexander
in the Acquisition code there is a __getattr__
but I can't find it.
it is implemented in C.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related
.
--
Steve Alexander
___
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
of Zope2 exceeds that threshold.
(I think we will be in a much better position with Zope 3)
:-)
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding
for paths and URLs. I haven't had
cause to use that though.
You make a choice as to what you want as Content and what you want as
behind-the-scenes plumbing.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org
attribute execution clear, because they are
defined as unordered.
If you're using ordered attributes, then you're not using XML.
Indeed, and if your indentation is meaningful in your C source-code,
you're not using C.
However, that doesn't negate the benefit of a consistent coding style.
--
Steve
://aspn.activestate.com/ASPN/Mail/Message/xml-dev/666339
--
Steve Alexander
___
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
Zope 2.5.1, I can write a Python Product that expects
standard_template.pt to exist.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related
suggested is that an 'if' *element* would
leave something on the interpreter's stack, for use by an 'else' element
later.
So, the document remains well-formed, but there is a coupling between
non-contained elements.
--
Steve Alexander
___
Zope
in a future release, at which point the dynamic
patch can be removed.
While you are dynamically extending Zope, I don't think there are any
plans to incorporate this into the core Zope distribution.
--
Steve Alexander
___
Zope-Dev maillist
Jerome Alet wrote:
On Mon, 29 Apr 2002, Steve Alexander wrote:
You should certainly not use the App.Hotfixes interface for this.
The App.Hotfixes interface is for registering dynamic patches that will
become part of Zope in a future release, at which point the dynamic
patch can be removed
, using the same mechanism as a
Hotfix. However, use of this mechanism does not qualify a product as a
Hotfix.
The terms monkeypatch and dynamic patch have been used to describe
this mechanism. Please use one of these in preference to Hotfix.
--
Steve Alexander
/ExtensionClass.stx?rev=HEAD
--
Steve Alexander
___
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
) and are cleared at transaction boundaries.
--
Steve Alexander
___
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
external
reference instead of the object's pickle. The fixed-size reference
points to a separate some_object.pickle file which contains the pickle
for that one object. The some_object.pickle file gets overwritten on
each update.
--
Steve Alexander
Andreas Jung wrote:
Cool... I would not have expected this to work :-)
IIRC, the range fix was one of the last maintenance tasks on the old
Components/BTree package before it was deprecated in favour of the new
Zope/BTrees implementation.
--
Steve Alexander
instance
via an environment variable. So, I can read something meaningful to me,
and I won't have to remember exactly which servers I have running on
which ports.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org
,
a MailHost), and ensuring that this service will not be inadvertantly
shadowed by something else (a DMTL Method perhaps) in a higher-up folder.
The concept of replaceable isn't needed in Zope 3, as services are
kept separate from content.
--
Steve Alexander
sanctioned and versioned and released alongside versions of Zope.
--
Steve Alexander
___
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
://cvs.zope.org/Docs/Docs.tar.gz?tarball=1
--
Steve Alexander
___
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
of those who make calls on
an interface.
With Python2.2, you can demonstrate this by defining a class that has
static methods only, but which still satisfies some interface
definition. The self argument need not occur at all.
--
Steve Alexander
in Zope3 omit the self argument.
--
Steve Alexander
___
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
Jeffrey P Shell wrote:
On 1/27/02 11:25 AM, Steve Alexander [EMAIL PROTECTED] wrote:
Hi folks,
When I define an Interface, are the methods of the interface supposed to
have self as the first argument?
No.
In which case, perhaps we should change InterfaceInterface
that your class definition had the side-effect of altering the
module's security object doesn't leave any traces in the class object
that results from your definition.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org
account of conventions used in Zope products.
http://pychecker.sourceforge.net/
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists
**
CLICK UNDERLINED LINK TO RECEIVE INFORMATION
Please submit this patch to the collector, and I'll see what I can do to
get it into the Zope core.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org
.
Actually, now that CST is in the Zope core, I should rewrite the form-id
manager to take advantage of that.
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding
that
knows that it isn't putting out SGML-style stuff.
--
Steve Alexander
___
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
.
--
Steve Alexander
___
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
)
--
Steve Alexander
___
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
don't know why that is, or if it
is possible to change that. I suspect they simply have far too much to do...
:-)
Does the fishbowl process address this for you?
http://dev.zope.org/Fishbowl/Introduction.html
--
Steve Alexander
Software Engineer
Cat-Box limited
the right way, even when you've already produced the
code, and making up for people's lack of time to do everything?
--
Steve Alexander
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts
Jean Lagarde wrote:
Thanks Steve,
No doubt that is probably what is happening. Sadly, I need ZClass1 to be
a dataskin.
Make both ZClass1 and ZClass2 derive from Dataskin before anything else.
It will do no harm that DataSkin is derived from twice in one class.
--
Steve Alexander
ownership of them.
Improvements to the user folder API that fall outside getting it
working with XML-RPC bring up larger issues, which I see are being
discussed here:
http://dev.zope.org/Wikis/DevSite/Proposals/BetterUserManagement
--
Steve Alexander
Software Engineer
Cat-Box limited
Steve Alexander wrote:
In summary:
I want to make sure that things are no worse in Zope 2.5 final than in
Zope 2.5. Any breakage caused by this API change is a bug, and needs to
be sorted out by Zope 2.5 final.
That should have read:
I want to make sure that the user management
a solution that will
work with just the ZODB, without needing all of Zope.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML
these messages at startup.
You're getting these errors because of persistent Catalog objects stored
by the Zope help system, which were created before Zope 2.4.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED
the validate attribute of the dtml method
object, and you'll get strange errors.
I've put this into the new collector, with a patch:
http://new.zope.org/Collector/4
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL
,
Microsoft, Netscape and any other browser vendor you want to ;-)
You could program something really fancy into the UserFolder that
continued to allow the old password until the new password has been
used, or one day has passed.
--
Steve Alexander
Software Engineer
Cat-Box limited
homepage,
and sends the user an email.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
wide web?
--
Steve Alexander
Software Engineer
Cat-Box limited
___
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
/standard/macros/header_and_footer
This is the latest version of PageTemplates, TAL, and ZTUtils from CVS,
with the latest Zope trunk from CVS.
Any ideas?
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED
with comments about how ZPatterns fits into all of this would also be
welcome.
I can't see that it would particularly help you.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman
directly returning the results a comprehension.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists
, but I'd like this to be enabled by default in Zope.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists
Steve Alexander wrote:
Any particular reason why you can't use Random.shuffle from a
PythonScript? Or any other methods of a Random object.
I'd like to propose that restricted python be allowed access to methods
of random.Random.
I know that I can write a product to add a security
Steve Alexander wrote:
Any ideas what might be happening?
I think the compiled code of the python script might be incorrect when
directly returning the results a comprehension.
Hmmm... it happened again. I think it might have something to do with
the PythonScript falling out
there, but is deprecated, and
will issue a warning the first time it is called.
You can use manage_delIndex instead.
Both are protected by the addIndex permission.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist
using the new
declarative security assertions, as the declaration would be right next
to the method definition.
Here's a first-draft patch, for comments etc.
I haven't looked at the documentation of the API, so that might need
changing too.
--
Steve Alexander
Software Engineer
Cat-Box limited
formatting.
I'm running this in a GMT+1 timezone btw.
Zope latest from CVS, Python 2.1.
I never got a reply as to whether it was a bug or a feature, so I didn't
work on a fix.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev
of this a few months ago, where someone
(Evan?) proposed a safe version of type(). I guess this got lost in the
conversion to RestrictedPython with Zope 2.4.
Oh yeah... an ugly workaround is to try to append to f and see if you
get and AttributeError.
--
Steve Alexander
Software Engineer
Cat
traversal hook?
http://www.zope.org/Documentation/ZDG/ObjectPublishing.dtml
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML
that stderr
should go to ZLog, and ZLog's stderr messages should get appended to a
specified file.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
this before, please speak up!
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
Steve Alexander wrote:
I'm getting a strange problem with ZCatalog, using python 2.1, Zope from
CVS.
I get all the results I expect with this:
ul
dtml-in Catalog(process_step=['start','mailed'])
li dtml-subject_name; -- dtml-relationship_name; - dtml-rater_name;
/dtml-in
/ul
Steve Alexander wrote:
This gives partial results:
dtml-in Catalog(process_step=['start','mailed'],
sort_on='subject_name')
...because this returns a LazyCat instance, for which len() is broken.
This gives full results:
dtml-in Catalog(process_step=['start','mailed'],
sort_on
Steve Alexander wrote:
Patch coming up soon...
Patch against Catalog.py, from CVS:
*** lib/python/Products/ZCatalog/Catalog.py.original
--- lib/python/Products/ZCatalog/Catalog.py.patched
***
*** 673,679
if (type(so) is type
# Convert scores to use wids:
widScores=IIBucket()
! try:
! getWid=lexicon.getWordId
! except AttributeError:
! getWid=lexicon.lexicon.getWordId
for word, score in wordScores.items():
widScores[getWid(word)]=score
--
Steve
if you do so.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
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
1 - 100 of 440 matches
Mail list logo