From ree at ree.hu Wed Jul 2 16:36:06 2008 From: ree at ree.hu (Balazs Ree) Date: Wed, 2 Jul 2008 16:36:06 +0200 Subject: [Kss-devel] ANN: kss.plugin.cacheability Message-ID: kss.plugin.cacheability is a transitional package that brings you cacheable KSS requests for version 1.4 and trunk, today. The work was fully sponsored by Zest Software. Cacheability allows you to use GET KSS requests, instead of the POST request, that KSS currently uses. GET requests in KSS are planned and hopefully arrive in the next major version. Meanwhile this package provides transitional access to this feature. The plugin javascript uses some unpublished parts of the KSS core. We will need to provide a clean API as well, for similar tasks in the next version. So the plugin code should not be considered as an example, but I encourage its usage. I will provide an upgrade path, once the feature lands in KSS. To summarize the main usage, you can make a server action as GET request this way: css:event { action-client: cacheability-serverAction; cacheability-serverAction-url: actionName; } The future syntax for this will be (once it lands in trunk): css:event { action-server: actionName method(GET); } POST records will always stay the default method in KSS, as the GET method you must only use with such server actions that are guaranteed to make no changes to the content. Enjoy! Please report any problems or feel free to propose enhancements. Thanks to Zest for sponsorship. -- Balazs Ree From ree at ree.hu Wed Jul 2 16:58:14 2008 From: ree at ree.hu (Balazs Ree) Date: Wed, 2 Jul 2008 16:58:14 +0200 Subject: [Kss-devel] ANN: kss.plugin.cacheability References: Message-ID: Some important information that was left out. Project page: https://launchpad.net/kss.plugin.cacheability svn: https://svn.plone.org/svn/collective/plonekss/kss.plugin.cacheability/trunk bzr (readonly): lp:~kissbooth/kss.plugin.cacheability/collective-trunk -- Balazs Ree From ree at ree.hu Wed Jul 2 17:42:19 2008 From: ree at ree.hu (Balazs Ree) Date: Wed, 2 Jul 2008 17:42:19 +0200 Subject: [Kss-devel] bazaar mirror of the kss svn repositories Message-ID: I succesfully installed a private bazaar mirror for the kss svn branches (codespeak, collective) on kssproject.org. The mirroring is done on the kssproject.org server, with buildout invoked from cron. It's simple and we can easily add any svn branch to mirror. This makes it possible to add projects hosted in svn repositories as "remote branches" on launchpad. Launchpad can also mirror from svn by itself, but this is currently available only by asking the site admins. So having a private mirror gives us more flexibility. For an example to browse the code with launchpad, visit the newly created https://code.launchpad.net/~kissbooth/kss.plugin.cacheability/collective-trunk or https://code.launchpad.net/~kssteam/kukit.js/trunk You can also subscribe to the rss feed of any branch. -- Balazs Ree From ree at ree.hu Thu Jul 3 08:37:23 2008 From: ree at ree.hu (Balazs Ree) Date: Thu, 3 Jul 2008 08:37:23 +0200 Subject: [Kss-devel] ANN: kss.plugin.cacheability References: <20080702213220.GA18572@wiggy.net> Message-ID: On Wed, 02 Jul 2008 23:32:20 +0200, Wichert Akkerman wrote: > > This begs the interesting question: what infrastructure is there to > control caching (Cache-Control, Expires, IMS-request, E-Tags, purges) > for those requests? Yes. The current solution provides the GET requests but it does not do much more atm. As I am not too familiar with cache control and cachefu, I count on your and others' help on this issue. I believe the cache control for the KSS requests should be done in the same way as for the normal pages. If this means we need to add extra headers to the dynamic request, there is a possibility to do that from javascript. Afaik, the browser already puts headers there, for example, the request has the cookies of the original page request, which makes authentication work. But we have to check if we need to modify anything on the request. Best wishes, -- Balazs Ree From wichert at wiggy.net Wed Jul 2 23:32:20 2008 From: wichert at wiggy.net (Wichert Akkerman) Date: Wed, 2 Jul 2008 23:32:20 +0200 Subject: [Kss-devel] [Plone-developers] ANN: kss.plugin.cacheability In-Reply-To: References: Message-ID: <20080702213220.GA18572@wiggy.net> Previously Balazs Ree wrote: > > kss.plugin.cacheability is a transitional package that brings you > cacheable KSS requests for version 1.4 and trunk, today. > > The work was fully sponsored by Zest Software. > > Cacheability allows you to use GET KSS requests, instead of the POST > request, that KSS currently uses. > > GET requests in KSS are planned and hopefully arrive in the next > major version. Meanwhile this package provides transitional access to > this feature. > > The plugin javascript uses some unpublished parts of the KSS core. We > will need to provide a clean API as well, for similar tasks in the next > version. So the plugin code should not be considered as an example, but I > encourage its usage. I will provide an upgrade path, once the feature > lands in KSS. > > To summarize the main usage, you can make a server action as GET request > this way: > > css:event { > action-client: cacheability-serverAction; > cacheability-serverAction-url: actionName; > } > > The future syntax for this will be (once it lands in trunk): > > css:event { > action-server: actionName method(GET); > } > > > POST records will always stay the default method in KSS, as the GET > method you must only use with such server actions that are guaranteed to > make no changes to the content. This begs the interesting question: what infrastructure is there to control caching (Cache-Control, Expires, IMS-request, E-Tags, purges) for those requests? Wichert. -- Wichert Akkerman It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. From ree at ree.hu Thu Jul 3 13:22:59 2008 From: ree at ree.hu (Balazs Ree) Date: Thu, 3 Jul 2008 13:22:59 +0200 Subject: [Kss-devel] ANN: kss.plugin.jsmath Message-ID: KSS plugin for client-side display of LaTeX mathematical formula by the jsMath library kss.plugin.jsmath enables the use of the `jsMath library `_ for KSS. The plugin was sponsored by the 40th International Chemistry Olympiad (ChO), 2008 Budapest. Egg: http://pypi.python.org/pypi/kss.plugin.jsmath Project page: http://launchpad.net/kss.plugin.jsmath Repository: hosted in bazaar, on launchpad. It can be checked out with the following command: bzr branch lp:kss.plugin.jsmath For commit access, please sign up as member of the team "kissbooth" on launchpad.net. To use the development trunk directly from buildout, you can use the recipe http://pypi.python.org/pypi/gf.recipe.bzr/ Usage ----- jsMath has its own markers for marking the beginning and end of the formulas in your text content. In addition, this component provides a KSS action, that needs to be executed on the nodes, within which you want the conversion to be enabled. This action will activate the conversion on the selected areas only. For example the following rule activates conversion inside all nodes that are marked with the "mathcontent" CSS class:: .mathcontent:load { action-client: jsmath-activate; } Markup ------ jsMath offers more variants for marking your content, these are controllable by parameters on the action. According to defaults, putting the formula between the markers ``\(`` and ``\)`` works out of the box:: \( \textstyle \sqrt{x+2}\quad \underline 4\quad \overline{x+y}\quad x^ {\underline n}\quad x^{\overline{m+n}} \quad \sqrt{x^2+\sqrt{\alpha}} \) The markers only become active in the areas that you select with KSS. Dynamic loading --------------- jsMath has a mechanism for loading its large javascript dynamically, on demand. The package uses this mechanism combined with custom code that helps dynamic loading integrate with KSS. More to be read in the README. Caveats ------- Since the conversion happens on client side, you will not be able to use the same mechanism to convert your pages to PDF, on the server side. Special thanks -------------- Special thanks to Dr. G?bor Magyarfalvi, at the Institute of Chemistry, E?tv?s Lor?nd University, Budapest, for his support. -- Balazs Ree From mymir.org at googlemail.com Thu Jul 3 14:49:57 2008 From: mymir.org at googlemail.com (Vladislav Vorobiev) Date: Thu, 3 Jul 2008 16:49:57 +0400 Subject: [Kss-devel] New GET future Message-ID: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> Hello, I do not understand how to use them. I want to send a GET REQUEST to my SERVER. .editMens:click { evt-click-preventdefault: true; evt-click-allowbubbling: true; action-client: cacheability-serverAction; cacheability-serverAction-url: actionName; } What's mean actionName? By click on my editMens link, i got [Exception... "'Error: Error : undefined local action [cacheability-serverAction].' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "" data: no] in a firebug. Is it the URL to server script? Can I use a construction something like this? cacheability-serverAction-url: kssattr(bla); ?? Maybe somebody has a working example for me? Thanks Vlad From ree at ree.hu Thu Jul 3 15:06:34 2008 From: ree at ree.hu (Balazs Ree) Date: Thu, 3 Jul 2008 15:06:34 +0200 Subject: [Kss-devel] New GET future References: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> Message-ID: On Thu, 03 Jul 2008 16:49:57 +0400, Vladislav Vorobiev wrote: > Hello, > > I do not understand how to use them. > > I want to send a GET REQUEST to my SERVER. > > .editMens:click { > evt-click-preventdefault: true; > evt-click-allowbubbling: true; > action-client: cacheability-serverAction; > cacheability-serverAction-url: actionName; > } > > What's mean actionName? By click on my editMens link, i got In place of actionName you need to use the name of server action that you want to run on the server. > [Exception... "'Error: Error : undefined local action > [cacheability-serverAction].' when calling method: > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "" data: no] > > in a firebug. Is it the URL to server script? > > Can I use a construction something like this? > cacheability-serverAction-url: kssattr(bla); ?? Yes. > Maybe somebody has a working example for me? Your example will probably work, the problem is likely that you have not installed the plugin properly. If you install the plugin as an egg, you will need to include its zcml with the available "slug" that needs to be copied to etc/package-includes. This is written in docs/INSTALL.txt. If you use buildout, you need to add kss.plugin.cacheability to the "zcml =" list in the [instance] section. Good luck, -- Balazs Ree From mymir.org at googlemail.com Thu Jul 3 19:38:25 2008 From: mymir.org at googlemail.com (Vladislav Vorobiev) Date: Thu, 3 Jul 2008 21:38:25 +0400 Subject: [Kss-devel] New GET future In-Reply-To: <604c02230807031036x7f97af43i404197beb7a5c56f@mail.gmail.com> References: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> <604c02230807031036x7f97af43i404197beb7a5c56f@mail.gmail.com> Message-ID: <604c02230807031038t1305d16bh25622348f8242506@mail.gmail.com> Thanks first! i install kss so: Easy_install2.4 kss.core Easy_install2.4 kss.demo Easy_install2.4 kss.plugin.cacheability I copied zcml's from kss/core/kss.core-configure.zcml kss/core/kss.core-meta.zcml kss/demo/kss.demo-configure.zcml kss/demo/kss.demo-meta.zcml and kss.plugin.cacheability-0.1.1-py2.4.egg/kss/plugin/cacheability/kss.plugin.cacheability-configure.zcml to myInstance/etc/package-includes and trying to start up zope in debug mode. bin/zopectl stop /opt/Zope-2.11/lib/python/ZPublisher/Iterators.py:1: DeprecationWarning: The Interface package is deprecated and will be removed in Zope 2.12. Use zope.interface instead. from Interface import Interface daemon manager not running india207:/home/vavvav/zopeinstance# bin/zopectl fg /opt/Zope-2.11/lib/python/ZPublisher/Iterators.py:1: DeprecationWarning: The Interface package is deprecated and will be removed in Zope 2.12. Use zope.interface instead. from Interface import Interface /home/vavvav/zopeinstance/bin/runzope -X debug-mode=on /opt/Zope-2.11/lib/python/ZPublisher/Iterators.py:1: DeprecationWarning: The Interface package is deprecated and will be removed in Zope 2.12. Use zope.interface instead. from Interface import Interface 2008-07-03 19:22:45 INFO ZServer HTTP server started at Thu Jul 3 19:22:45 2008 Hostname: 0.0.0.0 Port: 8080 2008-07-03 19:22:45 INFO Zope Set effective user to "vavvav" /home/vavvav/zopeinstance/Products/LocalFS/LocalFS.py:54: DeprecationWarning: zope.app.content_types has moved to zope.contenttype. Import of zope.app.content_types will become unsupported in Zope 3.5 from zope.app.content_types import find_binary 2008-07-03 19:22:45 INFO Localizer Install "Globals.get_request". 2008-07-03 19:22:45 INFO Localizer Full Unicode-aware ZPT. /usr/lib/python2.4/site-packages/Products.ManagableIndex-2.0-py2.4.egg/Products/ManagableIndex/ValueProvider.py:31: DeprecationWarning: Products.PageTemplates.TALES has moved to zope.tales.tales. Import of Products.PageTemplates.TALES will become unsupported in 2.12 from Products.PageTemplates.TALES import CompilerError 2008-07-03 19:22:45 WARNING Application Duplicate Product name: After loading Product 'OFolder' from '/home/vavvav/zopeinstance/Products', I skipped the one in '/usr/lib/python2.4/site-packages/Products.OFolder-1.0-py2.4.egg/Products'. 2008-07-03 19:22:45 INFO ReplaceSupport Applied patch version 1.0.3. 2008-07-03 19:22:46 INFO ExtFile Using configuration file /home/vavvav/zopeinstance/Products/ExtFile/extfile.ini /opt/Zope-2.11/lib/python/zope/configuration/fields.py:417: UserWarning: You did not specify an i18n translation domain for the 'title' field in /usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/permission.zcml warnings.warn( 2008-07-03 19:22:47 ERROR Application Couldn't install Five Traceback (most recent call last): File "/opt/Zope-2.11/lib/python/OFS/Application.py", line 783, in install_product initmethod(context) File "/opt/Zope-2.11/lib/python/Products/Five/__init__.py", line 31, in initialize zcml.load_site() File "/opt/Zope-2.11/lib/python/Products/Five/zcml.py", line 53, in load_site _context = xmlconfig.file(file) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 610, in file include(context, name, package) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 689, in finish args = toargs(context, *self.argdata) File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 1381, in toargs args[str(name)] = field.fromUnicode(s) File "/opt/Zope-2.11/lib/python/zope/configuration/fields.py", line 139, in fromUnicode value = self.context.resolve(name) File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 182, in resolve mod = __import__(mname, *_import_chickens) File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/core/demo/zopeconfig.py", line 17, in ? class KSSCoreDemos(object): File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/core/demo/zopeconfig.py", line 27, in KSSCoreDemos packageName = 'kss.core.plugins.core.demo'), ZopeXMLConfigurationError: File "/home/vavvav/zopeinstance/etc/site.zcml", line 15.2-15.55 ZopeXMLConfigurationError: File "/home/vavvav/zopeinstance/etc/package-includes/kss.core-configure.zcml", line 2.0-2.30 ZopeXMLConfigurationError: File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/configure.zcml", line 17.4-17.34 ZopeXMLConfigurationError: File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/configure.zcml", line 11.2-11.29 ZopeXMLConfigurationError: File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/core/configure.zcml", line 9.4-9.67 ZopeXMLConfigurationError: File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/core/demo/configure.zcml", line 26.6-31.10 TypeError: __init__() got an unexpected keyword argument 'packageName' Traceback (most recent call last): File "/opt/Zope-2.11/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/opt/Zope-2.11/lib/python/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py", line 109, in prepare self.startZope() File "/opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py", line 300, in startZope Zope2.startup() File "/opt/Zope-2.11/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/opt/Zope-2.11/lib/python/Zope2/App/startup.py", line 110, in startup OFS.Application.initialize(application) File "/opt/Zope-2.11/lib/python/OFS/Application.py", line 309, in initialize initializer.initialize() File "/opt/Zope-2.11/lib/python/OFS/Application.py", line 338, in initialize self.install_products() File "/opt/Zope-2.11/lib/python/OFS/Application.py", line 603, in install_products return install_products(app) File "/opt/Zope-2.11/lib/python/OFS/Application.py", line 634, in install_products folder_permissions, raise_exc=debug_mode) File "/opt/Zope-2.11/lib/python/OFS/Application.py", line 783, in install_product initmethod(context) File "/opt/Zope-2.11/lib/python/Products/Five/__init__.py", line 31, in initialize zcml.load_site() File "/opt/Zope-2.11/lib/python/Products/Five/zcml.py", line 53, in load_site _context = xmlconfig.file(file) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 610, in file include(context, name, package) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 546, in include processxmlfile(f, context) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 378, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/Zope-2.11/lib/python/zope/configuration/xmlconfig.py", line 357, in endElementNS self.context.end() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 542, in end self.stack.pop().finish() File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 689, in finish args = toargs(context, *self.argdata) File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 1381, in toargs args[str(name)] = field.fromUnicode(s) File "/opt/Zope-2.11/lib/python/zope/configuration/fields.py", line 139, in fromUnicode value = self.context.resolve(name) File "/opt/Zope-2.11/lib/python/zope/configuration/config.py", line 182, in resolve mod = __import__(mname, *_import_chickens) File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/core/demo/zopeconfig.py", line 17, in ? class KSSCoreDemos(object): File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/core/demo/zopeconfig.py", line 27, in KSSCoreDemos packageName = 'kss.core.plugins.core.demo'), zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/vavvav/zopeinstance/etc/site.zcml", line 15.2-15.55 ZopeXMLConfigurationError: File "/home/vavvav/zopeinstance/etc/package-includes/kss.core-configure.zcml", line 2.0-2.30 ZopeXMLConfigurationError: File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/configure.zcml", line 17.4-17.34 ZopeXMLConfigurationError: File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/configure.zcml", line 11.2-11.29 ZopeXMLConfigurationError: File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/core/configure.zcml", line 9.4-9.67 ZopeXMLConfigurationError: File "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/plugins/core/demo/configure.zcml", line 26.6-31.10 TypeError: __init__() got an unexpected keyword argument 'packageName' It seems to be corrupt, is't it? I dont't know what to do now. ZOPE-2.11 Python2.4.5 Vlad 2008/7/3 Balazs Ree : > On Thu, 03 Jul 2008 16:49:57 +0400, Vladislav Vorobiev wrote: > >> Hello, >> >> I do not understand how to use them. >> >> I want to send a GET REQUEST to my SERVER. >> >> .editMens:click { >> evt-click-preventdefault: true; >> evt-click-allowbubbling: true; >> action-client: cacheability-serverAction; >> cacheability-serverAction-url: actionName; >> } >> >> What's mean actionName? By click on my editMens link, i got > > In place of actionName you need to use the name of server action that you > want to run on the server. > >> [Exception... "'Error: Error : undefined local action >> [cacheability-serverAction].' when calling method: >> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c >> (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "" data: no] >> >> in a firebug. Is it the URL to server script? >> >> Can I use a construction something like this? >> cacheability-serverAction-url: kssattr(bla); ?? > > Yes. > >> Maybe somebody has a working example for me? > > Your example will probably work, the problem is likely that > you have not installed the plugin properly. > > If you install the plugin as an egg, you will need to include its zcml > with the available "slug" that needs to be copied to etc/package-includes. > This is written in docs/INSTALL.txt. > > If you use buildout, you need to add kss.plugin.cacheability > to the "zcml =" list in the [instance] section. > > Good luck, > > -- > Balazs Ree > > _______________________________________________ > Kss-devel mailing list > Kss-devel at codespeak.net > http://codespeak.net/mailman/listinfo/kss-devel > -- Best Regards Vlad Vorobiev http://www.mymir.org -- Best Regards Vlad Vorobiev http://www.mymir.org From ree at ree.hu Thu Jul 3 19:52:35 2008 From: ree at ree.hu (Balazs Ree) Date: Thu, 3 Jul 2008 19:52:35 +0200 Subject: [Kss-devel] New GET future References: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> <604c02230807031036x7f97af43i404197beb7a5c56f@mail.gmail.com> <604c02230807031038t1305d16bh25622348f8242506@mail.gmail.com> Message-ID: Hi Vladislav! On Thu, 03 Jul 2008 21:38:25 +0400, Vladislav Vorobiev wrote: - SNIP - > "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/ plugins/core/demo/configure.zcml", > line 26.6-31.10 > TypeError: __init__() got an unexpected keyword argument > 'packageName' It is certainly a bug, but I don't think I have met it. Thanks for reporting it, I may need to ask some other questions later so please back up your config! Meanwhile, can you please temporarily remove kss.demo and see what happens that way? This may make this problem go away (although it still needs to be fixed, but it can get you going.) Best wishes, -- Balazs Ree From mymir.org at googlemail.com Thu Jul 3 21:50:41 2008 From: mymir.org at googlemail.com (Vladislav Vorobiev) Date: Thu, 3 Jul 2008 23:50:41 +0400 Subject: [Kss-devel] New GET future In-Reply-To: References: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> <604c02230807031036x7f97af43i404197beb7a5c56f@mail.gmail.com> <604c02230807031038t1305d16bh25622348f8242506@mail.gmail.com> Message-ID: <604c02230807031250u6e4c5c39i8b53cdfb5d36cade@mail.gmail.com> Hi, Without kss.demo it works well now. I patched cacheability.js library for my own intention on line 187 // sending form /*VV url = url + '?' + encoded;*/ url = url Its attaches "?" on my URL. My URL already includes. Maybe it is not very good idea but possibly it would be well to implement some feature to turn of question mark on the and of URL. In some cases, that would certainly be useful. Maybe it is not a very good idea, but possibly it would be nice to implement some feature to turn of question mark at the and of URL. In some cases this would certainly be useful. See tread with subject: turn off ?kukitTimeStamp Vlad 2008/7/3 Balazs Ree : > Hi Vladislav! > > On Thu, 03 Jul 2008 21:38:25 +0400, Vladislav Vorobiev wrote: > > - SNIP - > >> "/usr/lib/python2.4/site-packages/kss.core-1.4.1-py2.4.egg/kss/core/ > plugins/core/demo/configure.zcml", >> line 26.6-31.10 >> TypeError: __init__() got an unexpected keyword argument >> 'packageName' > > It is certainly a bug, but I don't think I have met it. Thanks for > reporting it, I may need to ask some other questions later so please back > up your config! Meanwhile, can you please temporarily remove kss.demo and > see what happens that way? This may make this problem go away (although > it still needs to be fixed, but it can get you going.) > > Best wishes, > > -- > Balazs Ree > > _______________________________________________ > Kss-devel mailing list > Kss-devel at codespeak.net > http://codespeak.net/mailman/listinfo/kss-devel > -- Best Regards Vlad Vorobiev http://www.mymir.org From ree at ree.hu Fri Jul 4 06:40:01 2008 From: ree at ree.hu (Balazs Ree) Date: Fri, 4 Jul 2008 06:40:01 +0200 Subject: [Kss-devel] New GET future References: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> <604c02230807031036x7f97af43i404197beb7a5c56f@mail.gmail.com> <604c02230807031038t1305d16bh25622348f8242506@mail.gmail.com> <604c02230807031250u6e4c5c39i8b53cdfb5d36cade@mail.gmail.com> Message-ID: On Thu, 03 Jul 2008 23:50:41 +0400, Vladislav Vorobiev wrote: > Hi, > > Without kss.demo it works well now. > > I patched cacheability.js library for my own intention on line 187 > > // sending form > /*VV url = url + '?' + encoded;*/ url = url > > Its attaches "?" on my URL. My URL already includes. Maybe it is not > very good idea but possibly it would be well to implement some feature > to turn of question mark on the and of URL. In some cases, that would > certainly be useful. Why does your url include a question mark? I think this is the problem. You must add your parameters with KSS and not as part of the server action's name. We need to put the question mark there, because "?" is obligatory in front of the parameters. We should omit the "?" in case there are no parameters at all, but that hardly makes any difference? > Maybe it is not a very good idea, but possibly it would be nice to > implement some feature to turn of question mark at the and of URL. Can you explain why the question mark is so important in your use case? > In some cases this would certainly be useful. See tread with subject: > turn off ?kukitTimeStamp kukitTimeStamp is a different issue. I understand why some developers felt the need to get rid of it, but it was put there intentionally: to ensure requests are not cacheable, even in case of a foul browser and cache setup. However even if we omit it, POST requests are still (supposed to be) uncacheable, so maybe it was too much precaution on our side. But since you brought up kukitTimeStamp: THe plugin action can actually take a "method" parameter. If you specify "POST" here, it will do POST requests the old way - but without the kukitTimeStamp. This would also become the built in way for KSS, in the future, if it works well. -- Balazs Ree From gotcha at bubblenet.be Fri Jul 4 09:47:21 2008 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Fri, 04 Jul 2008 09:47:21 +0200 Subject: [Kss-devel] New GET future In-Reply-To: References: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> <604c02230807031036x7f97af43i404197beb7a5c56f@mail.gmail.com> <604c02230807031038t1305d16bh25622348f8242506@mail.gmail.com> <604c02230807031250u6e4c5c39i8b53cdfb5d36cade@mail.gmail.com> Message-ID: <486DD589.4020105@bubblenet.be> Balazs Ree wrote: > On Thu, 03 Jul 2008 23:50:41 +0400, Vladislav Vorobiev wrote: > >> In some cases this would certainly be useful. See tread with subject: >> turn off ?kukitTimeStamp > > kukitTimeStamp is a different issue. I understand why some > developers felt the need to get rid of it, but it was put there > intentionally: to ensure requests are not cacheable, even in case of a > foul browser and cache setup. However even if we omit it, POST requests > are still (supposed to be) uncacheable, so maybe it was too much > precaution on our side. IIRC, the timestamp is there to turn around a bug in one of the browsers that does cache even when it should not. I should have commented which browser though :-( -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be From jfroche at pyxel.be Tue Jul 8 12:12:52 2008 From: jfroche at pyxel.be (=?ISO-8859-1?Q?Jean-Fran=E7ois_Roche?=) Date: Tue, 08 Jul 2008 12:12:52 +0200 Subject: [Kss-devel] kss plugin template Message-ID: <48733DA4.6080108@pyxel.be> Hello, Few days ago we wrote with gotcha a kss plugin template into ZopeSkel trunk. ZopeSkel hasn't been released since. I have just discovered the existance of kss.templates ... Would be good if we unify these two into ZopeSkel trunk before a new release. Regards, Jeff From jeroen.vloothuis at xs4all.nl Wed Jul 9 22:27:11 2008 From: jeroen.vloothuis at xs4all.nl (Jeroen Vloothuis) Date: Wed, 09 Jul 2008 22:27:11 +0200 Subject: [Kss-devel] kss plugin template In-Reply-To: <48733DA4.6080108@pyxel.be> References: <48733DA4.6080108@pyxel.be> Message-ID: <48751F1F.7020100@xs4all.nl> Jean-Fran?ois Roche wrote: > Few days ago we wrote with gotcha a kss plugin template into ZopeSkel > trunk. ZopeSkel hasn't been released since. I have just discovered the > existance of kss.templates ... Would be good if we unify these two into > ZopeSkel trunk before a new release. > I would suggest you take a look at kss.templates for the docs with regards to the Javascript etc. and take what you need. Some of the code it generates might have become a bit outdated so yours would probably be the better option. If you have any questions feel free to ask me. kss.templates was created just before the last Plone conf so my memory may be a bit rusty but I will try to help :-) From mymir.org at googlemail.com Sun Jul 13 12:28:03 2008 From: mymir.org at googlemail.com (Vladislav Vorobiev) Date: Sun, 13 Jul 2008 12:28:03 +0200 Subject: [Kss-devel] New GET future In-Reply-To: References: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> <604c02230807031036x7f97af43i404197beb7a5c56f@mail.gmail.com> <604c02230807031038t1305d16bh25622348f8242506@mail.gmail.com> <604c02230807031250u6e4c5c39i8b53cdfb5d36cade@mail.gmail.com> Message-ID: <604c02230807130328m3a660d45y8983595ed16c4b3a@mail.gmail.com> Hello, > Why does your url include a question mark? I think this is the problem. > You must add your parameters with KSS and not as part of the server > action's name. you are right. My URL consists of a complete URL with parameters. We discussed this matter in a parent thread. What I don't understand is: wy do I HAVE TO add my parameters as kssAttributes only? The other way works well enough. Could you explain this? > We need to put the question mark there, because "?" is obligatory in > front of the parameters. We should omit the "?" in case there are no > parameters at all, but that hardly makes any difference? Yes, it does! Because, if my URI already includes some parameters it does't work. It is a good idea to implement this. >> Maybe it is not a very good idea, but possibly it would be nice to >> implement some feature to turn of the question mark at the and of URL. > > Can you explain why the question mark is so important in your use case? It is simpler to handle. If I use kssAttributes only, I have to write kss for every single one of them. For example I have something like this

AA

BB

kss for this statment .myScriptKss:click{ evt-click-preventdefault: true; evt-click-allowbubbling: true; action-server: myScriptKss; myScriptKss-a: kssAttr(a); myScriptKss-b: kssAttr(b); } .myScript2Kss:click{ evt-click-preventdefault: true; evt-click-allowbubbling: true; action-server: myScriptKss; myScriptKss-a: kssAttr(a); myScriptKss-b: kssAttr(b); myScriptKss-c: kssAttr(c); } It makes a post request, but there is no difference for this example. --- Simply I've still not found how i attach parameters here: action-client: cacheability-serverAction; cacheability-serverAction-url: myScriptKss; myScriptKss-a:kssAttr(a); ? --- The other way I see is to make it simpler

AA

BB

My kss statement ist shorter in this case. Only one class for all of them. .myScriptXKss:click { evt-click-preventdefault: true; evt-click-allowbubbling: true; action-client: cacheability-serverAction; cacheability-serverAction-url: kssAttr(uri); } I do not understand why I can't use them. It works fine. From mymir.org at googlemail.com Sun Jul 13 14:48:15 2008 From: mymir.org at googlemail.com (Vladislav Vorobiev) Date: Sun, 13 Jul 2008 14:48:15 +0200 Subject: [Kss-devel] New GET future In-Reply-To: <604c02230807130328m3a660d45y8983595ed16c4b3a@mail.gmail.com> References: <604c02230807030549j8143ae2h1a6f7f3c424511c2@mail.gmail.com> <604c02230807031036x7f97af43i404197beb7a5c56f@mail.gmail.com> <604c02230807031038t1305d16bh25622348f8242506@mail.gmail.com> <604c02230807031250u6e4c5c39i8b53cdfb5d36cade@mail.gmail.com> <604c02230807130328m3a660d45y8983595ed16c4b3a@mail.gmail.com> Message-ID: <604c02230807130548v3c9d0f91g201f152a0eb43b7c@mail.gmail.com> 2008/7/13 Vladislav Vorobiev : > Hello, > >> Why does your url include a question mark? I think this is the problem. >> You must add your parameters with KSS and not as part of the server >> action's name. > > you are right. My URL consists of a complete URL with parameters. We > discussed this matter in a parent thread. What I don't understand is: > wy do I HAVE TO add my parameters as kssAttributes only? The other way > works well enough. Could you explain this? > >> We need to put the question mark there, because "?" is obligatory in >> front of the parameters. We should omit the "?" in case there are no >> parameters at all, but that hardly makes any difference? > > Yes, it does! Because, if my URI already includes some parameters it > does't work. It is a good idea to implement this. > >>> Maybe it is not a very good idea, but possibly it would be nice to >>> implement some feature to turn of the question mark at the and of URL. >> >> Can you explain why the question mark is so important in your use case? > > It is simpler to handle. If I use kssAttributes only, I have to write > kss for every single one of them. > > For example I have something like this > >

AA

>

BB

> > > kss for this statment > > .myScriptKss:click{ > evt-click-preventdefault: true; > evt-click-allowbubbling: true; > action-server: myScriptKss; > myScriptKss-a: kssAttr(a); > myScriptKss-b: kssAttr(b); > } > > .myScript2Kss:click{ > evt-click-preventdefault: true; > evt-click-allowbubbling: true; > action-server: myScriptKss; > myScriptKss-a: kssAttr(a); > myScriptKss-b: kssAttr(b); > myScriptKss-c: kssAttr(c); > } > > > It makes a post request, but there is no difference for this example. > --- > Simply I've still not found how i attach parameters here: > action-client: cacheability-serverAction; > cacheability-serverAction-url: myScriptKss; > myScriptKss-a:kssAttr(a); ? > --- > > > > The other way I see is to make it simpler > >

AA

> >

BB

> > My kss statement ist shorter in this case. Only one class for all of them. > > .myScriptXKss:click { > evt-click-preventdefault: true; > evt-click-allowbubbling: true; > action-client: cacheability-serverAction; > cacheability-serverAction-url: kssAttr(uri); > } > > > I do not understand why I can't use them. It works fine. > here working example: http://mykniga.de/kssTest From hedley at upfrontsystems.co.za Mon Jul 14 16:38:14 2008 From: hedley at upfrontsystems.co.za (Hedley Roos) Date: Mon, 14 Jul 2008 16:38:14 +0200 Subject: [Kss-devel] getKssUIDClass and its (lack of) use Message-ID: <487B64D6.6040607@upfrontsystems.co.za> Hi all In fields.py I notice a method called getKssUIDClass. It is a "sister" method of getKssClasses. The latter is used in all Archetypes field widgets. In validation.py in method kssValidateField the instance to be validated can be retrieved by uid (default behaviour if uid is supplied), else the instance is aq_inner(self.context). This brings me to my point: I really want that uid to be present, but for that to happen it must: a) Be explicitly added in every Archetypes widget Page Template b) Just be added as part of getKssClasses Why do I need it present? I'm developing a solution where any Archetype can be created / edited while another item is in context. The "popup" is in fact a floating div which renders the instance's edit screen. The classical example is while looking at folder_contents I decide I want to edit an item without leaving folder contents at all. I've tried playing around with adjusting the context only for my floating div, but that is quite difficult since I have to do some magic with and then I might have to change kukit.js where it resolves the base. It seems that the code in archetypes.kss is ready to use uid to override the context, so I want to go that way. Any thoughts? Thanks Hedley From hedley at upfrontsystems.co.za Thu Jul 24 16:52:08 2008 From: hedley at upfrontsystems.co.za (Hedley Roos) Date: Thu, 24 Jul 2008 16:52:08 +0200 Subject: [Kss-devel] Continue an event in certain cases Message-ID: <48889718.6010903@upfrontsystems.co.za> Hi all Let's say I intercept the click event on an anchor. Is there a way (in trusted code) to cancel the operation and let the click (and thus subsequent navigation) continue as though no ajax trickery took place? BTW, is there a kss-users list or is the devel list still ok for these types of questions? Thanks Hedley From mborch at gmail.com Tue Jul 29 14:19:55 2008 From: mborch at gmail.com (Malthe Borch) Date: Tue, 29 Jul 2008 14:19:55 +0200 Subject: [Kss-devel] getKssUIDClass and its (lack of) use In-Reply-To: <487B64D6.6040607@upfrontsystems.co.za> References: <487B64D6.6040607@upfrontsystems.co.za> Message-ID: <488F0AEB.5010509@gmail.com> Hedley Roos wrote: > It seems that the code in archetypes.kss is ready to use uid to override > the context, so I want to go that way. This was introduced for exactly your use-case; the only implementation I know of (my own, incidentally) is in Collage, a Plone product. To be clear, if you specify a UID attribute, it should override the global context. \malthe