Hello.
Recently I am playing with a COREBlog *integrating* it with my own
EasyPublisher-like or Plone-like engine for web-things. Everything is quite
good (though some features CB still lacks).
Hovewer, two small-but-serious things, described below, causes a pain.
1. Item issue
COREBlog is a ZCatalog itself. However, I already have my own ZCatalog-based
engine with typo and suggestions support. Therefore I need all
"self.coreblog.entries" should be cataloged centralized in my own ZCatalog,
instead in COREBlog itself. Plus, I have advanced indexing mechanism, which
allows suggestions/typo learn-on-the-fly instead of reindexing everything.
But the problem is on cataloging Entry object, it returns the path None.
It can be fixed easily, if Entry object would be at least OFS.SimpleItem with
full getPhysicalPath(), absolute_url() and so on to support. It breaks
nothing, just add better handling. For example, allows you do less acrobatic
feats in the code in case of using "internal" ZCatalog like this (Entry.py):
parent.catalog_object(join(parent.getPhysicalPath(),"/") + "/" +
str(self.id))
...but would be just short-and-simple:
parent.catalog_object(self)
OK, patch to the latest version of Entry.py:
--------------------------------------------
--- Entry.py-original 2005-07-27 00:24:12.802935408 +0300
+++ Entry.py 2005-07-27 00:52:14.385296032 +0300
@@ -35,6 +35,7 @@
from App import Management, Undo
from AccessControl import ClassSecurityInfo
from OFS import ZDOM
+from OFS.SimpleItem import SimpleItem
from DateTime import DateTime
from BTrees.IIBTree import IISet
from BTrees.IOBTree import IOBTree
@@ -103,7 +104,7 @@
return r_body
-class Entry(ObjectBase,Management.Tabs,Undo.UndoSupport,ZDOM.Element):
+class Entry(ObjectBase,Management.Tabs,Undo.UndoSupport,ZDOM.Element,
SimpleItem):
"""Class for COREBlog Entries"""
security = ClassSecurityInfo()
---------------------------------------------
2. *Edit* entry-comment-trackback hook lack.
When user changes the entry or comment or trackback thing, such hook should
tell to external index machine something like: "Hey, I am changed, user
threw lots and added something new to the text! So please re-index me
transparently, when you will be able to!".
I can add it, but what if my changes will be refused? Maybe better/other
ideas?
Atsushi?.. :-)
--
暮
For Sale: Parachute. Only used once, never opened, small stain.
_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]