From Nylan at gmx.net Mon Jun 4 00:40:37 2007 From: Nylan at gmx.net (Nylan at gmx.net) Date: Mon, 04 Jun 2007 00:40:37 +0200 Subject: [Kss-devel] kss and zope 3.3.1 Message-ID: <235623378@web.de> Hello, I'v tried kss in combination with zope 3.3.1, but without success. Does KSS for Zope not work with the 3.3.1 release of zope or did I misunderstood the tutorial/installation instructions? - I've put http://codespeak.net/svn/kukit/azax/trunk and the demo in the instance folder /var/zope/zope/zope-3.3.1/lib/python. - copied azax-configure.zcml, azax-meta.zcml, azaxdemo-configure.zcml and azaxdemo-meta.zcml into /var/zope/zope/zope-3.3.1/ The logging pane of the two_selects example gives me: INFO: Initializing kss INFO: bootstrap INFO: Count of KSS links: 1 INFO: Start loading and processing http://192.168.0.64:8080/demo/++resource++azax_two_selects.kss resource type kss I would appreciate an advice. Thanks! Best regards! Nylan From ree at ree.hu Mon Jun 4 07:15:39 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 4 Jun 2007 07:15:39 +0200 Subject: [Kss-devel] kss and zope 3.3.1 References: <235623378@web.de> Message-ID: Mon, 04 Jun 2007 00:40:37 +0200 keltez?ssel Nylan-hi6Y0CQ0nG0 azt ?rta: > I'v tried kss in combination with zope 3.3.1, but without success. > > Does KSS for Zope not work with the 3.3.1 release of zope or did I > misunderstood the tutorial/installation instructions? > > - I've put azax/trunk and the demo in the > instance folder /var/zope/zope/zope-3.3.1/lib/python. - copied > azax-configure.zcml, azax-meta.zcml, azaxdemo-configure.zcml and > azaxdemo-meta.zcml into /var/zope/zope/zope-3.3.1/ The "Product/azax" has no functional trunk any more, it is only left there for its 1.1 branch that is supported to work with Zope 2.9. You need to use http://codespeak.net/svn/kukit/kss.core/trunk and http://codespeak.net/svn/kukit/kss.demo/trunk . If you use them and still experience problems, please let us know so we can fix possible bugs! Thanks for your help in advance. Good luck, -- Balazs Ree From gantioler.harald at email.de Mon Jun 4 09:06:50 2007 From: gantioler.harald at email.de (gantioler.harald at email.de) Date: Mon, 04 Jun 2007 09:06:50 +0200 Subject: [Kss-devel] kss and zope-3.3.1 Message-ID: <235861794@web.de> Hello, thanks for your quick reply. Now it works. I'll testing it today. There was an error/typo in : "/usr/lib64/python2.4/site-packages/kss.core-1.2dev_r43821-py2.4.egg/kss/core/commands.py", line 200, in render Message: self.request.RESPONSE.setHeader('Content-type', 'text/xml;charset=utf-8') AttributeError: 'BrowserRequest' object has no attribute 'RESPONSE' There were some warnings : /usr/lib64/python2.4/site-packages/kss.demo-1.2dev_r42989-py2.4.egg/kss/demo/configfeature/fiveconfig.py:52: DeprecationWarning: zope.app.component.interface has moved to zope.component.interface. Import of zope.app.component.interface will become unsupported in Zope 3.5 import zope.app.component.interface /usr/lib64/python2.4/site-packages/kss.demo-1.2dev_r42989-py2.4.egg/kss/demo/configfeature/fiveconfig.py:53: DeprecationWarning: zope.app.location has moved to zope.location. Import of zope.app.location will become unsupported in Zope 3.5 import zope.app.location /usr/lib64/python2.4/site-packages/kss.core-1.2dev_r43821-py2.4.egg/kss/core/tests/ecmaview.py:21: DeprecationWarning: BrowserView is deprecated. It has been moved to zope.publisher.browser. This reference will be removed in Zope 3.5. from zope.app.publisher.browser import BrowserView I've changed zope.app.XXXXX into zope.XXXXX Best regards. From Nylan at gmx.net Mon Jun 4 09:12:10 2007 From: Nylan at gmx.net (Nylan at gmx.net) Date: Mon, 04 Jun 2007 09:12:10 +0200 Subject: [Kss-devel] kss and zope 3.3.1 Message-ID: <235866622@web.de> Hello, thanks for your quick reply. Now it works. I'll testing it today. There was an error/typo in : "/usr/lib64/python2.4/site-packages/kss.core-1.2dev_r43821-py2.4.egg/kss/core/commands.py", line 200, in render Message: self.request.RESPONSE.setHeader('Content-type', 'text/xml;charset=utf-8') AttributeError: 'BrowserRequest' object has no attribute 'RESPONSE' There were some warnings : /usr/lib64/python2.4/site-packages/kss.demo-1.2dev_r42989-py2.4.egg/kss/demo/configfeature/fiveconfig.py:52: DeprecationWarning: zope.app.component.interface has moved to zope.component.interface. Import of zope.app.component.interface will become unsupported in Zope 3.5 import zope.app.component.interface /usr/lib64/python2.4/site-packages/kss.demo-1.2dev_r42989-py2.4.egg/kss/demo/configfeature/fiveconfig.py:53: DeprecationWarning: zope.app.location has moved to zope.location. Import of zope.app.location will become unsupported in Zope 3.5 import zope.app.location /usr/lib64/python2.4/site-packages/kss.core-1.2dev_r43821-py2.4.egg/kss/core/tests/ecmaview.py:21: DeprecationWarning: BrowserView is deprecated. It has been moved to zope.publisher.browser. This reference will be removed in Zope 3.5. from zope.app.publisher.browser import BrowserView I've changed zope.app.XXXXX into zope.XXXXX Best regards. From Nylan at gmx.net Mon Jun 4 21:41:29 2007 From: Nylan at gmx.net (Nylan at gmx.net) Date: Mon, 04 Jun 2007 21:41:29 +0200 Subject: [Kss-devel] =?iso-8859-15?q?Problems_with_kssSubmitForm_=2C_chang?= =?iso-8859-15?q?ing_value_of_all_=22input=22-tags_after_select=3Achange?= =?iso-8859-15?q?=3F?= Message-ID: <236377724@web.de> Hello, I'm having some problems with kssSubmitForm, but the demo works without problems. Use-case: There is one "select"-tag in forms.pt with a vocabulary based choice (data fetched from database) On "select:change" I would like to change the attribute "value" of all "input"-tags as well.(value fetched again from sql database) My aim is to initialise input tags with data from templates("select"-Tag) So my first idea was kssSubmitForm (dictionary of all input fields) --> doesn't work at all (see below) and to use setAttribute somehow. :-) It was my first idea, so if there is a shorter way please don't mind telling me. Thanks. Best regards! Harald error with kssSubmitForm: --------------------------------------------------------------------------------------------------------------- 2007-06-04T20:52:52 ERROR SiteError http://192.168.0.64:8080/dsdsd/submitFullForm Traceback (most recent call last): File "/usr/lib64/zope-3.3.1/lib/python/zope/publisher/publish.py", line 133, in publish result = publication.callObject(request, obj) File "/usr/lib64/zope-3.3.1/lib/python/zope/app/publication/zopepublication.py", line 161, in callObject return mapply(ob, request.getPositionalArguments(), request) File "/usr/lib64/zope-3.3.1/lib/python/zope/publisher/publish.py", line 99, in mapply raise TypeError('Missing argument to %s(): %s' % ( - __traceback_info__: > --------------------------------------------------------------------------------------------------------------- form.kss --------------------------------------------------------------------------------------------------------------- select:change { action-server: submitFullForm; submitFullForm-kssSubmitForm: 'source'; } --------------------------------------------------------------------------------------------------------------- demoview.py --------------------------------------------------------------------------------------------------------------- from kss.core import KSSView ,kssaction from datetime import datetime class DemoView(KSSView): @kssaction def submitFullForm(self, form): assert hasattr(form, 'keys'), 'Form data is expected to be a dict-like object.' # marshall back the repr of this dict. ksscore = self.getCommandSet('core') ksscore.replaceInnerHTML('#target', repr(form)) --------------------------------------------------------------------------------------------------------------- forms.pt ---------------------------------------------------------------------------------------------------------------

Start logging pane

Edit something

Status
Error
Target
References: <236377724@web.de> Message-ID: <46647E74.6070005@bubblenet.be> Nylan at gmx.net wrote: > Hello, > > I'm having some problems with kssSubmitForm, but the demo works without problems. > > Use-case: > There is one "select"-tag in forms.pt with a vocabulary based choice (data fetched from database) > On "select:change" I would like to change the attribute "value" of all "input"-tags as well.(value fetched again from sql database) > My aim is to initialise input tags with data from templates("select"-Tag) > > > So my first idea was kssSubmitForm (dictionary of all input fields) --> doesn't work at all (see below) > and to use setAttribute somehow. :-) > > It was my first idea, so if there is a shorter way please don't mind telling me. > > Thanks. > > Best regards! > > Harald > > Quick comment, I'd go with simple stuff. I'd replace the whole form instead of trying to fine tune... value attributes. > > error with kssSubmitForm: > --------------------------------------------------------------------------------------------------------------- > 2007-06-04T20:52:52 ERROR SiteError http://192.168.0.64:8080/dsdsd/submitFullForm > Traceback (most recent call last): > File "/usr/lib64/zope-3.3.1/lib/python/zope/publisher/publish.py", line 133, in publish > result = publication.callObject(request, obj) > File "/usr/lib64/zope-3.3.1/lib/python/zope/app/publication/zopepublication.py", line 161, in callObject > return mapply(ob, request.getPositionalArguments(), request) > File "/usr/lib64/zope-3.3.1/lib/python/zope/publisher/publish.py", line 99, in mapply > raise TypeError('Missing argument to %s(): %s' % ( > - __traceback_info__: > > --------------------------------------------------------------------------------------------------------------- > > > form.kss > --------------------------------------------------------------------------------------------------------------- > select:change { > action-server: submitFullForm; > submitFullForm-kssSubmitForm: 'source'; > } > --------------------------------------------------------------------------------------------------------------- > > > demoview.py > --------------------------------------------------------------------------------------------------------------- > from kss.core import KSSView ,kssaction > from datetime import datetime > > class DemoView(KSSView): > > @kssaction > def submitFullForm(self, form): > assert hasattr(form, 'keys'), 'Form data is expected to be a dict-like object.' > # marshall back the repr of this dict. > ksscore = self.getCommandSet('core') > ksscore.replaceInnerHTML('#target', repr(form)) > --------------------------------------------------------------------------------------------------------------- > > > forms.pt > --------------------------------------------------------------------------------------------------------------- > xmlns:tal="http://xml.zope.org/namespaces/tal" > xmlns:metal="http://xml.zope.org/namespaces/metal" > > > > tal:attributes="href string:${context/@@absolute_url}/++resource++form.kss"/> > > > > >
>
>

Start logging pane

>
action="." tal:attributes="action request/URL"> > >

Edit something

>
tal:content="view/status">Status
> >
> >
> >
>
> >
tal:content="structure widget/error">Error
>
> >
>
> > > tal:replace="structure action/render" > /> > > >
>
>
>
Target
> > --------------------------------------------------------------------------------------------------------------- > > > > _______________________________________________ > Kss-devel mailing list > Kss-devel at codespeak.net > http://codespeak.net/mailman/listinfo/kss-devel -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From ree at ree.hu Tue Jun 5 07:58:40 2007 From: ree at ree.hu (Balazs Ree) Date: Tue, 5 Jun 2007 07:58:40 +0200 Subject: [Kss-devel] Problems with kssSubmitForm , changing value of all "input"-tags after select:change? References: <236377724@web.de> Message-ID: On Mon, 04 Jun 2007 21:41:29 +0200 Nylan-hi6Y0CQ0nG0 wrote: > I'm having some problems with kssSubmitForm, but the demo works without > problems. > > Use-case: > There is one "select"-tag in forms.pt with a vocabulary based choice > (data fetched from database) On "select:change" I would like to change > the attribute "value" of all "input"-tags as well.(value fetched again > from sql database) My aim is to initialise input tags with data from > templates("select"-Tag) > > > So my first idea was kssSubmitForm (dictionary of all input fields) --> > doesn't work at all (see below) and to use setAttribute somehow. :-) To debug this sort of problem, first you would look at what is actually sent up to the server. This can be done by capturing the traffic between the client and the server (by tcpwatch), or simply looking at the request in FireBug and see what actually has sent up. p.s. if you are on FireFox, do not call createLogginPane, but use FireBug. It is much more friendly. Doing so you would realize that the client sends up what's expected, so the submit works correctly, however the error happens on the server side. Also the error message indicates the publisher has problems marshalling the form to the variables. So the signature of the method is wrong somehow. We will soon see why. --------------------------------------------------------------------------------------------------------------- > select:change { > action-server: submitFullForm; > submitFullForm-kssSubmitForm: 'source'; > } > --------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- > from kss.core import KSSView ,kssaction from datetime import datetime > > class DemoView(KSSView): > > @kssaction > def submitFullForm(self, form): > assert hasattr(form, 'keys'), 'Form data is expected to be a > dict-like object.' # marshall back the repr of this dict. > ksscore = self.getCommandSet('core') > ksscore.replaceInnerHTML('#target', repr(form)) > --------------------------------------------------------------------------------------------------------------- So the problem is that kssSubmitForm works differently then sending up individual parameters: it sends up the form values to the request directly. This means the variables you receive are the variables that would be sent up if you did an ordinary form submit in the normal way. On the server you have two main options (similarly to the ordinary submits withoug kss): - do not specify parameters in the method, and access your field variables from REQUEST, or: - specify parameters on the method (not "form" but the actual field names), and let the publisher marshall them automatically, but then they must exist on the form otherwise you get an error. so in the end the solution is to try: @kssaction def submitFullForm(self, keys): ... I hope this helps you to continue. Also Godefroid's advice will turn out to be very useful, wherever possible, try to reuse the things you render on the server for replacement in the page, instead of tweaking attributes manually. This is however not a rule, just a useful pattern. -- Balazs Ree From ree at ree.hu Fri Jun 8 10:19:40 2007 From: ree at ree.hu (Balazs Ree) Date: Fri, 8 Jun 2007 10:19:40 +0200 Subject: [Kss-devel] planned merge of ree-stripout-comments Message-ID: Hi All, I plan to merge in the ree-stripout-comments branchs to trunk, and I am interested if there are any objections. Pro Merge: - It's there for a while and it works. - it is difficult to maintain 2 versions of the js code (changes cause diffs everywhere even with equivalent lines), plus we have other branches that need to depend on this or that one, causing extra work and making merges difficult. - I plan to keep the current resource defaults at first. Ie, RR uses + +resource++kukit-src.js and will continue to do so, this will involve precompressing with the new 'devel' filter which gives you the full unstripped code (equivalent to as before) but the ;;;-s themselves removed, so even that cannot cause a headache. Users that want to try the new dual source formats and the switching mechanism, will need to follow instructions on how to change things in RR to activate them. Con Merge: - We agreed the current ;;; commentification needs to be changed because we don't like how we apply it in some cases, but till now we have not started yet to enhance it. However since it won't be active by default, it is not likely to cause any problems so yet I'd prefer to bring it to trunk and change things later, instead of waiting to settle it and having to deal with forking codebase. Again, this is very unlikely to cause any problems because of what I wrote above. Actually noone would notice it really. If there is no word against this merge, i'd do this on the weekend. In case something is not entirely clear about the issue, please ask and I clarify for more. -- Balazs Ree From ree at ree.hu Fri Jun 8 10:30:59 2007 From: ree at ree.hu (Balazs Ree) Date: Fri, 8 Jun 2007 10:30:59 +0200 Subject: [Kss-devel] change parameter names on toggleClass etc. actions Message-ID: Currently we have three actions that change the "class" of a given node, but they accept different parameter names. It was Martin who was so kind to draw my attention to this inconsistency. toggleClass requires "className" addClassName, removeClassName require "name" This is disturbing. They should all require the same parameter name, either of the two. I would suggest using className for all the three. In addition we could consider replacing the name of the action toggleClass with toggleClassName as well. But this I feel is less important then the fixing the parameter names. In case this meets an agreement, I would volunteer to do these changes, including javascript, commandsets, demos, and selenium tests, all with proper BBB naturally. Any opinions? -- Balazs Ree From gotcha at bubblenet.be Fri Jun 8 11:28:58 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Fri, 08 Jun 2007 11:28:58 +0200 Subject: [Kss-devel] change parameter names on toggleClass etc. actions In-Reply-To: References: Message-ID: <4669215A.1040503@bubblenet.be> Balazs Ree wrote: > Currently we have three actions that change the "class" of a given node, > but they accept different parameter names. It was Martin who was so kind > to draw my attention to this inconsistency. > > toggleClass requires "className" > addClassName, removeClassName require "name" > > This is disturbing. They should all require the same parameter name, > either of the two. > > I would suggest using className for all the three. > > In addition we could consider replacing the name of the action > toggleClass with toggleClassName as well. But this I feel is less > important then the fixing the parameter names. > > In case this meets an agreement, I would volunteer to do these changes, > including javascript, commandsets, demos, and selenium tests, all with > proper BBB naturally. > > Any opinions? > I think 'name' is not correct. Those actions actually change the class 'value'. If you work on changing and getting coherence, I think we should go to toggleClassValue, addClassValue, removeClassValue with a single 'value' parameter. My 2 cents -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From ree at ree.hu Fri Jun 8 15:31:54 2007 From: ree at ree.hu (Balazs Ree) Date: Fri, 8 Jun 2007 15:31:54 +0200 Subject: [Kss-devel] change parameter names on toggleClass etc. actions References: <4669215A.1040503@bubblenet.be> Message-ID: Fri, 08 Jun 2007 11:28:58 +0200 keltez?ssel Godefroid Chapelle azt ?rta: > Balazs Ree wrote: >> toggleClass requires "className" addClassName, >> removeClassName require "name" >> In case this meets an agreement, I would volunteer to do these changes, >> including javascript, commandsets, demos, and selenium tests, all with >> proper BBB naturally. >> >> Any opinions? > I think 'name' is not correct. Those actions actually change the class > 'value'. > > If you work on changing and getting coherence, I think we should go to > > toggleClassValue, addClassValue, removeClassValue Then, value is redundant either. So why not simply: toggleClass, addClass, removeClass ? > with a single 'value' parameter. This sounds good. -- Balazs Ree From gotcha at bubblenet.be Fri Jun 8 19:15:46 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Fri, 08 Jun 2007 19:15:46 +0200 Subject: [Kss-devel] change parameter names on toggleClass etc. actions In-Reply-To: References: <4669215A.1040503@bubblenet.be> Message-ID: <46698EC2.5050508@bubblenet.be> Balazs Ree wrote: > Fri, 08 Jun 2007 11:28:58 +0200 keltez?ssel Godefroid Chapelle azt ?rta: > > Then, value is redundant either. So why not simply: > > toggleClass, addClass, removeClass ? +1 > >> with a single 'value' parameter. > > This sounds good. > -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From optilude at gmx.net Fri Jun 8 21:51:12 2007 From: optilude at gmx.net (Martin Aspeli) Date: Fri, 08 Jun 2007 20:51:12 +0100 Subject: [Kss-devel] change parameter names on toggleClass etc. actions In-Reply-To: <46698EC2.5050508@bubblenet.be> References: <4669215A.1040503@bubblenet.be> <46698EC2.5050508@bubblenet.be> Message-ID: Godefroid Chapelle wrote: > Balazs Ree wrote: >> Fri, 08 Jun 2007 11:28:58 +0200 keltez?ssel Godefroid Chapelle azt ?rta: >> >> Then, value is redundant either. So why not simply: >> >> toggleClass, addClass, removeClass ? > > +1 +1 Short and memorable is good. Martin -- Acquisition is a jealous mistress From jeroen.vloothuis at xs4all.nl Sat Jun 9 11:06:25 2007 From: jeroen.vloothuis at xs4all.nl (Jeroen Vloothuis) Date: Sat, 09 Jun 2007 11:06:25 +0200 Subject: [Kss-devel] Development tools Message-ID: To make development with KSS a bit nicer I was thinking of adding a few features. The first feature would be a listing of the available commands. This could be implemented as a simple Javascript function which displays all commands with their documentation. Because KSS is a pluggable framework a developer can then easily see which command's are available for the chosen platform. Something like this would help Plone developers because there are/might be a few specific Plone commands. Using a self documenting feature means you will always have the proper documentation. Another feature would be to have some interactive prompt support. Currently Firebug already provides us with a console. It would be great if we could use this to execute something like: kssApplyRule('a.special:click { ... }') kssClearRules() Does anyone else see value in these ideas? From gotcha at bubblenet.be Sat Jun 9 11:42:22 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Sat, 09 Jun 2007 11:42:22 +0200 Subject: [Kss-devel] Development tools In-Reply-To: References: Message-ID: <466A75FE.90007@bubblenet.be> Jeroen Vloothuis wrote: > To make development with KSS a bit nicer I was thinking of adding a few > features. > > The first feature would be a listing of the available commands. This > could be implemented as a simple Javascript function which displays all > commands with their documentation. > > Because KSS is a pluggable framework a developer can then easily see > which command's are available for the chosen platform. Something like > this would help Plone developers because there are/might be a few > specific Plone commands. > > Using a self documenting feature means you will always have the proper > documentation. > > > Another feature would be to have some interactive prompt support. > Currently Firebug already provides us with a console. It would be great > if we could use this to execute something like: > > kssApplyRule('a.special:click { ... }') > > kssClearRules() > > Does anyone else see value in these ideas? I see value in both ideas. However, we should avoid growing kss size. IOW, can you think how to add those features so that they are not included in default kukit.js ? You could have a devel.js that would be concatenated separately. Regards -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From ree at ree.hu Sun Jun 10 08:33:32 2007 From: ree at ree.hu (Balazs Ree) Date: Sun, 10 Jun 2007 08:33:32 +0200 Subject: [Kss-devel] Development tools References: Message-ID: On Sat, 09 Jun 2007 11:06:25 +0200 Jeroen Vloothuis wrote: > To make development with KSS a bit nicer I was thinking of adding a few > features. > > The first feature would be a listing of the available commands. This > could be implemented as a simple Javascript function which displays all > commands with their documentation. > We have been long planning a feature that ends up similar to this, and although it's not written yet, I discussed it in details with a lot of developers including you. So I would expect you to remember it, but maybe I did not make myself clear enough when we talked about the last time in April. Anyway I am writing you a bit about it now but it's a long planned feature with more than I could detail in a single mail. This was called maybe the "docstring feature" but there was no established name for it yet. It is quite high priority for me personally, the main reason for not starting on it is because while we cannot fulfill our more burning obligations like fix Plone bugs, we cannot start giving resources to a "nice to have" feature. Nevertheless I support the idea to start working on this on an upcoming sprint and I already planned it for the Snowsprint, and also for Potsdam (where I could not attend in the end), but there was not enough interest between the developers to start with it really. Some differences between your proposal and the original proposal is, that - we want to handle both documentation and registration metadata, and - we don't plan to do the mechanism that delivers this information from javascript. Instead we want to store the data itself inside the javascript, but deliver it from python. The original idea was this: We want to have something that is like how the dosctrings function in python. For this we need to establish a documentation standard that is both pythonic and also fits the java world. This way the javascript plugins would become self documenting. They would contain comments blocks next to the plugin registrations. This would document the given function (action, provider, selector, eg. everything that is extensible) probably in ReST. In addition it would contain rich metadata that would describe - the identification (type and name of the plugin) - mandatory and optional parameters to default value - and every other information that we currently register from zcml. This way all the documentation and registration information would be in the javascript, close to the actual code it documents. Instead of the number of the zcml directives we would have a *single zcml directive* that defines a javascript file as a plugin. Then it would parse the docstring information from the file and build up the registration database on the server side so we would have the same data available as currently but without the need for registering both on the client and on the server redundantly. In addition we would have a plain python api and a commandline for the same task. This means that any other server side (non-zope or even non- python) could use the same extractor to fetch the necessary information. One of the use of the fetched information (as currently) is doing early semantical checks on the server like disallow marshalling nonexistent commands, and the second is to offer the documentation from the server. >From zope this would be on-line rendering of the plugin documentation from a view, presented from a document tab somewhere. For other systems we can build a set of static html pages that can be served up to the client. To avoid a misunderstanding, we do not, by no means, want to generate any javascript code. The javascript plugins would be registered as before, only their usage would be annotated in the docstrings next to them. The original idea as described above was for the self-documenting of the plugin javascript. At the time when this idea was born, we did not yet have the commandsets, so it did not cover then. But obviously the same can be extended to the commandsets either, to have the documentation of them available. This would even be esaier since parsing the python does not require a separate parser. However also together with this, as a separate but connecting task, we would want to standardize the loading of the commandsets for zope and plain python as well. About the actual tasks that are needed to start with first, we would need two things: 1. Design the actual documentation format. If we use ReST, there is chance that we can describe the metadata als with syntax already existing in RsST. We have to investigate if this is possible. 2. Find a parser builder in python. I did some research that included about six python parser builders but I could not settle on any of them. As a direct goal, we need a parser because we need to extract the comments out of the javascript. Even just this is far from trivial, and imo, instead of doing complex regexp magic, we need to choose one of the available parser builder libraries. Both these two are tasks that we could typically do together, on a sprint. Maybe a bit separate task is to have code that extracts the comment blocks from js, this could be dome before the sprint. > Because KSS is a pluggable framework a developer can then easily see > which command's are available for the chosen platform. Something like > this would help Plone developers because there are/might be a few > specific Plone commands. > > Using a self documenting feature means you will always have the proper > documentation. So as I described above, this is planned to be provided, and even more. > Another feature would be to have some interactive prompt support. > Currently Firebug already provides us with a console. It would be great > if we could use this to execute something like: > > kssApplyRule('a.special:click { ... }') > > kssClearRules() > > Does anyone else see value in these ideas? Would be nice to think about this, except that kssClearRules is not possible currently with the kss core. Again I do not want to go deeper into this, just briefly: Clearing rules would be a desirable feature. It would require however that the physically bound browser events can be cleared. This is not supported by DOM/BOM, only posible if we have already depended on one of the javascript frameworks or use custom code. Even after this, it would require a significant rewrite of the kss core. One of the main challenges is, how to implement the rebinding of nodes when a html class changes. Ie, this is the main feature where clearing of events would become necessary. However in the worst case such an operation, unfortunately, may degrade to rebinding all the rules in a page. I don't want to go deeper into this, realistically this is not something we will have soon, but it could come after wa have completed the other four or five planned/ongoing "nice to have" projects. However the kssApplyRule would be feasible. What would be, however, even more interesting and even more feasible, is write introspection utilities for kss, to provide a way to see which rules are bound where. In the end we could arrive to FireBug where you can introspect kss similarly the way you can introspect html nodes. -------------------------- Summarizing, both features you raised are important on the long term however they involve pretty complex details, and we have much higher priority tasks at the moment that we must complete first for the success of kss. Nevertheless we need to start planning these things in parallel, but since there has been lots of brainstorming done on these issues already, and that they involve the deep knowledge of the core code, I find it inevitable that we start working on these issues together, during a sprint. -- Balazs Ree From ree at ree.hu Mon Jun 11 11:28:14 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 11 Jun 2007 11:28:14 +0200 Subject: [Kss-devel] kssproject.org upgrade Message-ID: Hi, I finished the product upgrade of the kssproject.org website. This means we are running on Plone 2.5 now. As an unhappy side effect, the members data is not migrated from the old site. Therefore everyone who had an account on the website, now has to re- register with the same username as previously. I apologize for the inconvenienve, and please let me know if you experience any problems. Also, if anything seems to be wrong with the migrated site, please let me know. A small functional enhancement is that we have PloneHelpCenter installed, where we will gradually move our existing documentation to. This assures we are more compatible with the structure of plone.org and can interchange and publish docs, howtos and tutorials more freely. We will also, hopefully, find the resources to create a new design for the site soon. -- Balazs Ree From gotcha at bubblenet.be Mon Jun 11 13:23:45 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Mon, 11 Jun 2007 13:23:45 +0200 Subject: [Kss-devel] kssproject.org upgrade In-Reply-To: References: Message-ID: <466D30C1.1040800@bubblenet.be> Balazs Ree wrote: > Hi, > > I finished the product upgrade of the kssproject.org website. This means > we are running on Plone 2.5 now. Great :-) Thanks > As an unhappy side effect, the members > data is not migrated from the old site. > > Therefore everyone who had an account on the website, now has to re- > register with the same username as previously. I apologize for the > inconvenienve, and please let me know if you experience any problems. Done ! > > Also, if anything seems to be wrong with the migrated site, please let me > know. > > A small functional enhancement is that we have PloneHelpCenter installed, > where we will gradually move our existing documentation to. This assures > we are more compatible with the structure of plone.org and can > interchange and publish docs, howtos and tutorials more freely. > > We will also, hopefully, find the resources to create a new design for > the site soon. > Can I suggest to upgrade code on azaxdemo.ree.hu ? ... and name it demo.kssproject.org ? -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From ree at ree.hu Mon Jun 11 14:15:14 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 11 Jun 2007 14:15:14 +0200 Subject: [Kss-devel] kssproject.org upgrade References: <466D30C1.1040800@bubblenet.be> Message-ID: On Mon, 11 Jun 2007 13:23:45 +0200 Godefroid Chapelle wrote: > Balazs Ree wrote: >> We will also, hopefully, find the resources to create a new design for >> the site soon. >> >> > Can I suggest to upgrade code on azaxdemo.ree.hu ? > > ... and name it demo.kssproject.org ? I will do that next. And sorry for keeping that promised for so long :) -- Balazs Ree From gotcha at bubblenet.be Mon Jun 11 16:11:57 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Mon, 11 Jun 2007 16:11:57 +0200 Subject: [Kss-devel] kssproject.org upgrade In-Reply-To: References: <466D30C1.1040800@bubblenet.be> Message-ID: <466D582D.8090208@bubblenet.be> Balazs Ree wrote: > On Mon, 11 Jun 2007 13:23:45 +0200 Godefroid Chapelle wrote: > >> Balazs Ree wrote: > >>> We will also, hopefully, find the resources to create a new design for >>> the site soon. >>> >>> >> Can I suggest to upgrade code on azaxdemo.ree.hu ? >> >> ... and name it demo.kssproject.org ? > > I will do that next. > > And sorry for keeping that promised for so long :) > No apologize needed, this is voluntary work ! -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From shywolf9982 at gmail.com Mon Jun 11 16:42:47 2007 From: shywolf9982 at gmail.com (Simone Deponti) Date: Mon, 11 Jun 2007 16:42:47 +0200 Subject: [Kss-devel] kssproject.org upgrade References: Message-ID: <20070611164247.6f3521e2@localhost.localdomain> On Mon, 11 Jun 2007 11:28:14 +0200 Balazs Ree wrote: > > We will also, hopefully, find the resources to create a new design > for the site soon. > Yay great! I might ask one of the graphic designers here (they're all quite skilled in Plone skinning too) if they feel like creating a mockup in their free time (and ofcourse, will be a volunteer work: they will be involved personally and not through the agency). That could be quite possible since recently they are enjoying MUCH more free time then I have. Hopefully soon I'll have more free time myself and I could go back to contribute. Greetings, -- Simone Deponti hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is. From gotcha at bubblenet.be Mon Jun 11 17:57:35 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Mon, 11 Jun 2007 17:57:35 +0200 Subject: [Kss-devel] kssproject.org upgrade In-Reply-To: <20070611164247.6f3521e2@localhost.localdomain> References: <20070611164247.6f3521e2@localhost.localdomain> Message-ID: <466D70EF.40601@bubblenet.be> Simone Deponti wrote: > On Mon, 11 Jun 2007 11:28:14 +0200 > Balazs Ree wrote: > > >> We will also, hopefully, find the resources to create a new design >> for the site soon. >> > > Yay great! > > I might ask one of the graphic designers here (they're all quite > skilled in Plone skinning too) if they feel like creating a mockup in > their free time (and ofcourse, will be a volunteer work: they will be > involved personally and not through the agency). > That could be quite possible since recently they are enjoying MUCH more > free time then I have. > > Hopefully soon I'll have more free time myself and I could go back to > contribute. > > Greetings, > You might want to wait a bit... Alain Meurant (which was with us in Sorrento) has asked some of his students to propose a logo. Let's see what comes out of it first. -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From jeroen.vloothuis at xs4all.nl Mon Jun 11 17:59:31 2007 From: jeroen.vloothuis at xs4all.nl (Jeroen Vloothuis) Date: Mon, 11 Jun 2007 17:59:31 +0200 Subject: [Kss-devel] kssproject.org upgrade In-Reply-To: <20070611164247.6f3521e2@localhost.localdomain> References: <20070611164247.6f3521e2@localhost.localdomain> Message-ID: <466D7163.4030105@xs4all.nl> Simone Deponti wrote: > On Mon, 11 Jun 2007 11:28:14 +0200 > Balazs Ree wrote: > > > >> We will also, hopefully, find the resources to create a new design >> for the site soon > > Yay great! > > I might ask one of the graphic designers here (they're all quite > skilled in Plone skinning too) if they feel like creating a mockup in > their free time (and ofcourse, will be a volunteer work: they will be > involved personally and not through the agency). > That could be quite possible since recently they are enjoying MUCH more > free time then I have. > One of my colleagues is already working on something. He will have a basic mock up finished before juli (probably a complete skin as well). From shywolf9982 at gmail.com Mon Jun 11 18:17:14 2007 From: shywolf9982 at gmail.com (Simone Deponti) Date: Mon, 11 Jun 2007 18:17:14 +0200 Subject: [Kss-devel] kssproject.org upgrade References: <20070611164247.6f3521e2@localhost.localdomain> <466D70EF.40601@bubblenet.be> Message-ID: <20070611181714.46c2d629@localhost.localdomain> On Mon, 11 Jun 2007 17:57:35 +0200 Godefroid Chapelle wrote: > You might want to wait a bit... > > Alain Meurant (which was with us in Sorrento) has asked some of his > students to propose a logo. > > Let's see what comes out of it first. > Well, he was a little bit enthusiast about it and he already started. Having more layouts/mockups to choose from can be a problem? He actually asked me if there was already a logo and I said no: so he's working on that too I suspect. And we cannot make a design without a logo first. -- Simone Deponti hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is. From gotcha at bubblenet.be Mon Jun 11 18:41:41 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Mon, 11 Jun 2007 18:41:41 +0200 Subject: [Kss-devel] kssproject.org upgrade In-Reply-To: <20070611181714.46c2d629@localhost.localdomain> References: <20070611164247.6f3521e2@localhost.localdomain> <466D70EF.40601@bubblenet.be> <20070611181714.46c2d629@localhost.localdomain> Message-ID: <466D7B45.1040909@bubblenet.be> Simone Deponti wrote: > On Mon, 11 Jun 2007 17:57:35 +0200 > Godefroid Chapelle > wrote: > >> You might want to wait a bit... >> >> Alain Meurant (which was with us in Sorrento) has asked some of his >> students to propose a logo. >> >> Let's see what comes out of it first. >> > > Well, he was a little bit enthusiast about it and he already started. :-) > Having more layouts/mockups to choose from can be a problem? Nope, you are right > He actually asked me if there was already a logo and I said no: so he's > working on that too I suspect. > And we cannot make a design without a logo first. > Right -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From ree at ree.hu Mon Jun 11 19:14:13 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 11 Jun 2007 19:14:13 +0200 Subject: [Kss-devel] ree-stripout-comments branch merged Message-ID: I finished merging the "stripout comments" branch to the trunk. The goal of the changes is make the javascript slightly smaller and slightly faster. Before the merge, I got rid of all the multiline comments constructions that caused unreadable code in the first version. It is all single line ;;; comments now. What is new? We have ;;; comments in the javascript source, and those lines are removed in the "production" version of the code by the packer. However they are all present in the "development" version. Lines marked by ;;; include all error and information messages, logging, and lots of assertions. Iow, you will have boring error messages in production mode if something breaks, but in return you get better performance if everything works. The production and development version will be governed by the RR debug mode in Plone. Alternately, the mode is also switchable from the client by a cookie. Ie, you can also debug on production servers, without the need to change anything at the server side. The last step that will affect plone.app.kss, is yet missing from the merge, this will switch Plone to use the new altrrnating resources. I will do this soon. Meanwhile you can test it yourself manually, and this is how to do it: 1. In portal_javascript tool, rename ++resource++kukit-src.js to ++resource++kukit.js, and enter the following condition into it: here/@@kss_devel_mode/isoff 2. create a new resource like the previous one, with the name ++resource++kukit-devel.js with this condition: here/@@kss_devel_mode/ison or if you want, you can combine both of these conditions with the current condition that disables kss for anonymous users, but this is not important for testing. It's all set up now. By default you get production mode. If you look at FireBug, you see nothing. But you can visit a simple UI at the browser page: kss_devel_mode/ui This is a very simplistic interface that will be made nicer later. It shows you if kss is currently in production or in development mode. And you can toggle a browser cookie with the buttons. The setting can also be overruled by RR: if you set debug mode in portal_javascript, kss will get into development mode permanently and independently of the setting of the cookie. -- Balazs Ree From gotcha at bubblenet.be Tue Jun 12 11:35:26 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Tue, 12 Jun 2007 11:35:26 +0200 Subject: [Kss-devel] ree-stripout-comments branch merged In-Reply-To: References: Message-ID: <466E68DE.2070003@bubblenet.be> Balazs Ree wrote: > I finished merging the "stripout comments" branch to the trunk. The goal > of the changes is make the javascript slightly smaller and slightly > faster. > > Before the merge, I got rid of all the multiline comments constructions > that caused unreadable code in the first version. It is all single > line ;;; comments now. > > > What is new? > > We have ;;; comments in the javascript source, and those lines are > removed in the "production" version of the code by the packer. However > they are all present in the "development" version. > > Lines marked by ;;; include all error and information messages, logging, > and lots of assertions. Iow, you will have boring error messages in > production mode if something breaks, but in return you get better > performance if everything works. > > The production and development version will be governed by the RR debug > mode in Plone. Alternately, the mode is also switchable from the client > by a cookie. Ie, you can also debug on production servers, without the > need to change anything at the server side. > All this work goes in the direction of smaller KSS. This should reduce some of the bad comments about KSS size. I really like the care you have put in keeping KSS developer-friendly with the switch via cookie/web interface ! Thanks a lot. -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From jc at upfrontsystems.co.za Tue Jun 12 14:45:31 2007 From: jc at upfrontsystems.co.za (jc at upfrontsystems.co.za) Date: Tue, 12 Jun 2007 14:45:31 +0200 Subject: [Kss-devel] Optimizing polling with kss timeout Message-ID: Hi Everyone, I'm busy writing an instant messenger client for Plone using kss. The messenger makes use of polling (using kss timeout) to ask the chat service (that stores the messages) whether there are any new messages for the currently logged in member. The kss: div#message-area:timeout { evt-timeout-delay: 2000; action-server: kss_update_message_area; kss_update_message_area-contact: currentFormVar('contact_id'); } When I shutdown the zope server that the messenger is running on, the browser continues to poll. This causes the cpu usage of my pc to spike every time a timeout fires. By compacting several kss entries into the one you see above and then calling only one script, I've been able to bring these spikes down to about 50% (they were above 90% before) of total cpu usage. Does anyone else have any advice of suggestions on how to further reduce the cpu load on the client side? AFAIK the trunk has been merged with comment stripped code. Can I use a checkout of the trunk as it is currently, for usage in a production environment and will it have a significant impact on the cpu issue? Thanks in advance JC From gotcha at bubblenet.be Tue Jun 12 15:11:20 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Tue, 12 Jun 2007 15:11:20 +0200 Subject: [Kss-devel] Optimizing polling with kss timeout In-Reply-To: References: Message-ID: <466E9B78.2050104@bubblenet.be> jc at upfrontsystems.co.za wrote: > Hi Everyone, > > I'm busy writing an instant messenger client for Plone using kss. > > The messenger makes use of polling (using kss timeout) to ask the chat > service (that stores the messages) whether there are any new messages > for the currently logged in member. > > The kss: > > div#message-area:timeout { > evt-timeout-delay: 2000; > action-server: kss_update_message_area; > kss_update_message_area-contact: currentFormVar('contact_id'); > } > > When I shutdown the zope server that the messenger is running on, the > browser continues to poll. This causes the cpu usage of my pc to spike > every time a timeout fires. By compacting several kss entries into the > one you see above and then calling only one script, I've been able to > bring these spikes down to about 50% (they were above 90% before) of > total cpu usage. I had seen cpu issues with the timeout event but never reported it myself. To avoid this type of situation where info gets lost, I have asked Balazs to setup poi on kssproject.org. He will tell this list when it is done. Can you, at that time, file the issue ? > > Does anyone else have any advice of suggestions on how to further > reduce the cpu load on the client side? > > AFAIK the trunk has been merged with comment stripped code. Can I use > a checkout of the trunk as it is currently, for usage in a production > environment and will it have a significant impact on the cpu issue? AFAIK, Balazs was already using the stripout-comments branch in production. However, I doubt it will have any impact about the timeout cpu issue. > > Thanks in advance > JC -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From ree at ree.hu Tue Jun 12 22:38:59 2007 From: ree at ree.hu (Balazs Ree) Date: Tue, 12 Jun 2007 22:38:59 +0200 Subject: [Kss-devel] Optimizing polling with kss timeout References: Message-ID: > I'm busy writing an instant messenger client for Plone using kss. The problem needs further investigation, I can only give some initial remarks. > The messenger makes use of polling (using kss timeout) to ask the chat > service (that stores the messages) whether there are any new messages > for the currently logged in member. > > The kss: > > div#message-area:timeout { > evt-timeout-delay: 2000; > action-server: kss_update_message_area; > kss_update_message_area-contact: currentFormVar('contact_id'); > } > > When I shutdown the zope server that the messenger is running on, the > browser continues to poll. This causes the cpu usage of my pc to spike > every time a timeout fires. The question is, what do you expect to happen when the server is shut down? At least, this is not considered as normal operation for the core plugin components. If this is eventually expected in your application, we can suggest several things for you, but it only makes sense to say anything if we understand what happens exactly. > By compacting several kss entries into the > one you see above and then calling only one script, This is good, because there must not be more then one calls at one time, the server should give all the responses from a single script. > I've been able to > bring these spikes down to about 50% (they were above 90% before) of > total cpu usage. 100% CPU usage is normal and not a problem in itself. Problem is if there is large CPU usage where there should not be any. So we will look at this. > Does anyone else have any advice of suggestions on how to further > reduce the cpu load on the client side? I believe that anything more can be suggested depending on what we find, not before. > AFAIK the trunk has been merged with comment stripped code. Can I use a > checkout of the trunk as it is currently, for usage in a production > environment and will it have a significant impact on the cpu issue? As Godefroid said as well, not likely in this case. But you are encouraged to use the trunk and report if you discover issues. It should be as stable as before the merge. I will let you know if poi is up and running and kindly ask you to file this issue then so that it does not get forgotten. Thanks for your help in testing and calling our attention to this. -- Balazs Ree From jeroen.vloothuis at xs4all.nl Thu Jun 14 08:31:22 2007 From: jeroen.vloothuis at xs4all.nl (Jeroen Vloothuis) Date: Thu, 14 Jun 2007 08:31:22 +0200 Subject: [Kss-devel] Another CSS selector test Message-ID: Just found a link to another CSS selector test. This might be interesting because the CSS selector is one of the main performance bottlenecks. http://mootools.net/slickspeed/ The nice about this one is that you can test it in various browsers on your own system. Unfortunenately it does not feature base2 which is supposed to be a lot faster than cssQuery. In my case prototype was the fastest closely followed by mootools. From apm13 at columbia.edu Thu Jun 14 18:05:03 2007 From: apm13 at columbia.edu (Alec Mitchell) Date: Thu, 14 Jun 2007 09:05:03 -0700 Subject: [Kss-devel] Another CSS selector test In-Reply-To: References: Message-ID: <365118370706140905r2a6aab66p541cacc3db4b3d20@mail.gmail.com> This is indeed very useful, it's pretty clear that cssQuery is pretty sub-optimal. I got similar results with mootools and prototype nearly tied in FF (in both cases mootools was slightly faster though), with dojo and ext 3-4x slower, and jQuery and cssQuery >15x slower. In Safari, he results were a bit different. Ext was the fastest, only slightly slower than it was in FF, dojo was 2x slower than than, mootools and prototype 3x slower, and jQuery and cssQuery again unusable at >7x slower than ext. I have no idea what this all means, and its interesting how different the relative perfomance of these libraries is across js implementations. The only obvious conclusion is that cssQuery is a complete dog, and jQuery should be avoided if selector performance is a consideration (for KSS it's one of the primary considerations, IMO). Alec On 6/13/07, Jeroen Vloothuis wrote: > Just found a link to another CSS selector test. This might be > interesting because the CSS selector is one of the main performance > bottlenecks. > > http://mootools.net/slickspeed/ > > The nice about this one is that you can test it in various browsers on > your own system. Unfortunenately it does not feature base2 which is > supposed to be a lot faster than cssQuery. > > In my case prototype was the fastest closely followed by mootools. > > _______________________________________________ > Kss-devel mailing list > Kss-devel at codespeak.net > http://codespeak.net/mailman/listinfo/kss-devel > From gotcha at bubblenet.be Thu Jun 14 20:50:09 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Thu, 14 Jun 2007 20:50:09 +0200 Subject: [Kss-devel] Another CSS selector test In-Reply-To: <365118370706140905r2a6aab66p541cacc3db4b3d20@mail.gmail.com> References: <365118370706140905r2a6aab66p541cacc3db4b3d20@mail.gmail.com> Message-ID: <46718DE1.3030205@bubblenet.be> Alec Mitchell wrote: > This is indeed very useful, it's pretty clear that cssQuery is pretty > sub-optimal. I got similar results with mootools and prototype nearly > tied in FF (in both cases mootools was slightly faster though), with > dojo and ext 3-4x slower, and jQuery and cssQuery >15x slower. > > In Safari, he results were a bit different. Ext was the fastest, only > slightly slower than it was in FF, dojo was 2x slower than than, > mootools and prototype 3x slower, and jQuery and cssQuery again > unusable at >7x slower than ext. > > I have no idea what this all means, and its interesting how different > the relative perfomance of these libraries is across js > implementations. The only obvious conclusion is that cssQuery is a > complete dog, and jQuery should be avoided if selector performance is > a consideration (for KSS it's one of the primary considerations, IMO). > > Alec > > On 6/13/07, Jeroen Vloothuis wrote: >> Just found a link to another CSS selector test. This might be >> interesting because the CSS selector is one of the main performance >> bottlenecks. >> >> http://mootools.net/slickspeed/ >> >> The nice about this one is that you can test it in various browsers on >> your own system. Unfortunenately it does not feature base2 which is >> supposed to be a lot faster than cssQuery. >> >> In my case prototype was the fastest closely followed by mootools. >> I saw the same results on my FF under Mac OS. The interesting stuff is that the code of slickspeed is actually pretty pluggable. IOW, it should be pretty easy to add base2 to the tests in order to evaluate it as well. PS I never ran any PHP app so I have no idea how complex it would be to make a setup where we could plug base2. -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From jc at upfrontsystems.co.za Thu Jun 14 22:15:23 2007 From: jc at upfrontsystems.co.za (JCBrand) Date: Thu, 14 Jun 2007 22:15:23 +0200 Subject: [Kss-devel] Optimizing polling with kss timeout In-Reply-To: References: Message-ID: <4671A1DB.3050305@upfrontsystems.co.za> Balazs Ree wrote: >> The messenger makes use of polling (using kss timeout) to ask the chat >> service (that stores the messages) whether there are any new messages >> for the currently logged in member. >> >> The kss: >> >> div#message-area:timeout { >> evt-timeout-delay: 2000; >> action-server: kss_update_message_area; >> kss_update_message_area-contact: currentFormVar('contact_id'); >> } >> >> When I shutdown the zope server that the messenger is running on, the >> browser continues to poll. This causes the cpu usage of my pc to spike >> every time a timeout fires. >> > > The question is, what do you expect to happen when the server is shut > down? At least, this is not considered as normal operation for the core > plugin components. If this is eventually expected in your application, we > can suggest several things for you, but it only makes sense to say > anything if we understand what happens exactly. > I shut down the server since it is running on my development machine and I wanted to see how much of the cpu is used by azax alone. That way I can get an idea what the load would be like when the server is on a remote machine. > As Godefroid said as well, not likely in this case. But you are > encouraged to use the trunk and report if you discover issues. It should > be as stable as before the merge. > > I will let you know if poi is up and running and kindly ask you to file > this issue then so that it does not get forgotten. > > Thanks for your help in testing and calling our attention to this Thanks for the feedback! I'll make a checkout of the trunk. Regards JC From ree at ree.hu Sat Jun 16 10:22:24 2007 From: ree at ree.hu (Balazs Ree) Date: Sat, 16 Jun 2007 10:22:24 +0200 Subject: [Kss-devel] bug tracker up and running Message-ID: The kss bugtracker is up and running on http://kssproject.org/bugs . This is only meant for bugs concerning the kss internals: core framework, plugins, in short kss.core and everything that is in the codespeak repository. For bugs about the Plone applicaton and plone.app.kss, the Plone tracker has to be used. -- Balazs Ree From optilude at gmx.net Sat Jun 16 13:10:15 2007 From: optilude at gmx.net (Martin Aspeli) Date: Sat, 16 Jun 2007 12:10:15 +0100 Subject: [Kss-devel] bug tracker up and running In-Reply-To: References: Message-ID: Balazs Ree wrote: > The kss bugtracker is up and running on http://kssproject.org/bugs . > > This is only meant for bugs concerning the kss internals: core framework, > plugins, in short kss.core and everything that is in the codespeak > repository. For bugs about the Plone applicaton and plone.app.kss, the > Plone tracker has to be used. Which version of Poi and Plone is that running? You shouldn't see the "copy" action like that as anonymous... in fact, you shouldn't see a green border at all. Martin -- Acquisition is a jealous mistress From ree at ree.hu Sat Jun 16 16:25:38 2007 From: ree at ree.hu (Balazs Ree) Date: Sat, 16 Jun 2007 16:25:38 +0200 Subject: [Kss-devel] bug tracker up and running References: Message-ID: Sat, 16 Jun 2007 12:10:15 +0100 keltez?ssel Martin Aspeli azt ?rta: > Balazs Ree wrote: >> The kss bugtracker is up and running on http://kssproject.org/bugs . >> >> This is only meant for bugs concerning the kss internals: core >> framework, plugins, in short kss.core and everything that is in the >> codespeak repository. For bugs about the Plone applicaton and >> plone.app.kss, the Plone tracker has to be used. > > Which version of Poi and Plone is that running? You shouldn't see the > "copy" action like that as anonymous... in fact, you shouldn't see a > green border at all. Plone 2.5.3-final, and the Poi release 1.0, as downloaded from plone.org. I am not very familiar with Poi, so I decided to use the stable version instead of svn. Please tell me what I should use, your help is much appreciated (even in private). Thanks in advance! From optilude at gmx.net Sat Jun 16 17:12:48 2007 From: optilude at gmx.net (Martin Aspeli) Date: Sat, 16 Jun 2007 16:12:48 +0100 Subject: [Kss-devel] bug tracker up and running In-Reply-To: References: Message-ID: Balazs Ree wrote: > Sat, 16 Jun 2007 12:10:15 +0100 keltez?ssel Martin Aspeli azt ?rta: > >> Balazs Ree wrote: >>> The kss bugtracker is up and running on http://kssproject.org/bugs . >>> >>> This is only meant for bugs concerning the kss internals: core >>> framework, plugins, in short kss.core and everything that is in the >>> codespeak repository. For bugs about the Plone applicaton and >>> plone.app.kss, the Plone tracker has to be used. >> Which version of Poi and Plone is that running? You shouldn't see the >> "copy" action like that as anonymous... in fact, you shouldn't see a >> green border at all. > > Plone 2.5.3-final, and the Poi release 1.0, as downloaded from plone.org. > I am not very familiar with Poi, so I decided to use the stable version > instead of svn. Please tell me what I should use, your help is much > appreciated (even in private). That should be fine. Are there any custom workflows in effect? It may very well be a UI bug in Poi. Martin -- Acquisition is a jealous mistress From ree at ree.hu Mon Jun 18 08:23:54 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 18 Jun 2007 08:23:54 +0200 Subject: [Kss-devel] bug tracker up and running References: Message-ID: Sat, 16 Jun 2007 16:12:48 +0100 keltez?ssel Martin Aspeli azt ?rta: > Balazs Ree wrote: >> Sat, 16 Jun 2007 12:10:15 +0100 keltez?ssel Martin Aspeli azt ?rta: >> >>> Balazs Ree wrote: >>>> The kss bugtracker is up and running on http://kssproject.org/bugs . >>>> >>>> This is only meant for bugs concerning the kss internals: core >>>> framework, plugins, in short kss.core and everything that is in the >>>> codespeak repository. For bugs about the Plone applicaton and >>>> plone.app.kss, the Plone tracker has to be used. >>> Which version of Poi and Plone is that running? You shouldn't see the >>> "copy" action like that as anonymous... in fact, you shouldn't see a >>> green border at all. >> >> Plone 2.5.3-final, and the Poi release 1.0, as downloaded from >> plone.org. I am not very familiar with Poi, so I decided to use the >> stable version instead of svn. Please tell me what I should use, your >> help is much appreciated (even in private). > > That should be fine. Are there any custom workflows in effect? > > It may very well be a UI bug in Poi. There seem to be just the standard workflows. However I came upon this: The green borders are shown if user has "Add Portal Content" permission. The poi tracker workflow grants this to anonymous. So this is why the green borders are shown. However, if I take away the permission, then Anonymous gets an unautrorized when he tries to save the issue he adds. So the permission is needed. I have no idea how this could be working fine somewhere else and not here. -- Balazs Ree From lewicki at provider.pl Mon Jun 18 08:38:50 2007 From: lewicki at provider.pl (Pawel Lewicki) Date: Mon, 18 Jun 2007 08:38:50 +0200 Subject: [Kss-devel] bug tracker up and running In-Reply-To: References: Message-ID: <4676287A.7050300@provider.pl> Balazs Ree pisze: > Sat, 16 Jun 2007 16:12:48 +0100 keltez?ssel Martin Aspeli azt ?rta: > > >> Balazs Ree wrote: >> >>> Sat, 16 Jun 2007 12:10:15 +0100 keltez?ssel Martin Aspeli azt ?rta: >>> >>> >>>> Balazs Ree wrote: >>>> >>>>> The kss bugtracker is up and running on http://kssproject.org/bugs . >>>>> >>>>> This is only meant for bugs concerning the kss internals: core >>>>> framework, plugins, in short kss.core and everything that is in the >>>>> codespeak repository. For bugs about the Plone applicaton and >>>>> plone.app.kss, the Plone tracker has to be used. >>>>> >>>> Which version of Poi and Plone is that running? You shouldn't see the >>>> "copy" action like that as anonymous... in fact, you shouldn't see a >>>> green border at all. >>>> >>> Plone 2.5.3-final, and the Poi release 1.0, as downloaded from >>> plone.org. I am not very familiar with Poi, so I decided to use the >>> stable version instead of svn. Please tell me what I should use, your >>> help is much appreciated (even in private). >>> >> That should be fine. Are there any custom workflows in effect? >> >> It may very well be a UI bug in Poi. >> > > > There seem to be just the standard workflows. > > However I came upon this: > > The green borders are shown if user has "Add Portal Content" permission. > The poi tracker workflow grants this to anonymous. So this is why the > green borders are shown. > > However, if I take away the permission, then Anonymous gets an > unautrorized when he tries to save the issue he adds. So the permission > is needed. > > I have no idea how this could be working fine somewhere else and not here. > Hi, You may manually control that bar. Just add function like that in proper context def showEditableBorder(self, **kw): if self.portal_membership.isAnonymousUser(): return 0 else: return self.portal_skins.plone_scripts.showEditableBorder(**kw) Pawel From optilude at gmx.net Mon Jun 18 09:36:55 2007 From: optilude at gmx.net (Martin Aspeli) Date: Mon, 18 Jun 2007 08:36:55 +0100 Subject: [Kss-devel] bug tracker up and running In-Reply-To: References: Message-ID: Balazs Ree wrote: > Sat, 16 Jun 2007 16:12:48 +0100 keltez?ssel Martin Aspeli azt ?rta: > >> Balazs Ree wrote: >>> Sat, 16 Jun 2007 12:10:15 +0100 keltez?ssel Martin Aspeli azt ?rta: >>> >>>> Balazs Ree wrote: >>>>> The kss bugtracker is up and running on http://kssproject.org/bugs . >>>>> >>>>> This is only meant for bugs concerning the kss internals: core >>>>> framework, plugins, in short kss.core and everything that is in the >>>>> codespeak repository. For bugs about the Plone applicaton and >>>>> plone.app.kss, the Plone tracker has to be used. >>>> Which version of Poi and Plone is that running? You shouldn't see the >>>> "copy" action like that as anonymous... in fact, you shouldn't see a >>>> green border at all. >>> Plone 2.5.3-final, and the Poi release 1.0, as downloaded from >>> plone.org. I am not very familiar with Poi, so I decided to use the >>> stable version instead of svn. Please tell me what I should use, your >>> help is much appreciated (even in private). >> That should be fine. Are there any custom workflows in effect? >> >> It may very well be a UI bug in Poi. > > > There seem to be just the standard workflows. > > However I came upon this: > > The green borders are shown if user has "Add Portal Content" permission. > The poi tracker workflow grants this to anonymous. So this is why the > green borders are shown. > > However, if I take away the permission, then Anonymous gets an > unautrorized when he tries to save the issue he adds. So the permission > is needed. > > I have no idea how this could be working fine somewhere else and not here. Poi is supposed to have code to hide it for anyone except managers, but either it's not in the released version, it's not working, or I'm mistaken. :) Martin -- Acquisition is a jealous mistress From ree at ree.hu Mon Jun 18 12:08:37 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 18 Jun 2007 12:08:37 +0200 Subject: [Kss-devel] bug tracker up and running References: Message-ID: Mon, 18 Jun 2007 08:36:55 +0100 keltez?ssel Martin Aspeli azt ?rta: > Balazs Ree wrote: >> >> There seem to be just the standard workflows. >> >> However I came upon this: >> >> The green borders are shown if user has "Add Portal Content" >> permission. The poi tracker workflow grants this to anonymous. So this >> is why the green borders are shown. >> >> However, if I take away the permission, then Anonymous gets an >> unautrorized when he tries to save the issue he adds. So the permission >> is needed. >> >> I have no idea how this could be working fine somewhere else and not >> here. > > Poi is supposed to have code to hide it for anyone except managers, but > either it's not in the released version, it's not working, or I'm > mistaken. :) Well it's no problem for the website, we can get rid of it easily. Important to know if this is or is not a bug in Poi. I guess if it is fixed in later version, it is not a problem for Poi either. Thanks for your help! -- Balazs Ree From ree at ree.hu Mon Jun 18 12:19:55 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 18 Jun 2007 12:19:55 +0200 Subject: [Kss-devel] change parameter names on toggleClass etc. actions, and a dependency problem References: <4669215A.1040503@bubblenet.be> <46698EC2.5050508@bubblenet.be> Message-ID: Fri, 08 Jun 2007 20:51:12 +0100 keltez?ssel Martin Aspeli azt ?rta: > Godefroid Chapelle wrote: >> Balazs Ree wrote: >>> Fri, 08 Jun 2007 11:28:58 +0200 keltez?ssel Godefroid Chapelle azt >>> ?rta: >>> >>> Then, value is redundant either. So why not simply: >>> >>> toggleClass, addClass, removeClass ? >> >> +1 > > +1 > > Short and memorable is good. Done now on trunk with proper BBB. However I noticed a big problem. These actions are dependent on the global addClassName and removeClassName functions, which are however not in kss but in Plone. I realized this wnen I added the missing demos and tests for them. I think we have two choices and we must at least decide asap: - add the missing javascript code to kss.core, or: - remove the addClass, removeClass actions from the core, and move them to the Plone plugin and commandset. And a message to all developers: All future checkins that concern new actions without a kss.demo page and selenium testcase, and a corresponding unittest to call the command and check for its resonse, is a big NO-NO. Guilty in this case are Florian who checked in the javascript, and myself, who added the commands to the commandset without trying it and thinking about the consequences. -- Balazs Ree From gotcha at bubblenet.be Mon Jun 18 12:48:09 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Mon, 18 Jun 2007 12:48:09 +0200 Subject: [Kss-devel] change parameter names on toggleClass etc. actions, and a dependency problem In-Reply-To: References: <4669215A.1040503@bubblenet.be> <46698EC2.5050508@bubblenet.be> Message-ID: <467662E9.4030407@bubblenet.be> Balazs Ree wrote: > Fri, 08 Jun 2007 20:51:12 +0100 keltez?ssel Martin Aspeli azt ?rta: > >> Godefroid Chapelle wrote: >>> Balazs Ree wrote: >>>> Fri, 08 Jun 2007 11:28:58 +0200 keltez?ssel Godefroid Chapelle azt >>>> ?rta: >>>> >>>> Then, value is redundant either. So why not simply: >>>> >>>> toggleClass, addClass, removeClass ? >>> +1 >> +1 >> >> Short and memorable is good. > > Done now on trunk with proper BBB. > > However I noticed a big problem. These actions are dependent on the > global addClassName and removeClassName functions, which are however not > in kss but in Plone. I realized this wnen I added the missing demos and > tests for them. > > I think we have two choices and we must at least decide asap: > > - add the missing javascript code to kss.core, or: > +1 > - remove the addClass, removeClass actions from the core, and move them > to the Plone plugin and commandset. > > > And a message to all developers: All future checkins that concern new > actions without a kss.demo page and selenium testcase, and a > corresponding unittest to call the command and check for its resonse, is > a big NO-NO. I second this ! > Guilty in this case are Florian who checked in the javascript, and > myself, who added the commands to the commandset without trying it and > thinking about the consequences. ;-) -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From sam at sustainablesoftware.com.au Thu Jun 21 05:48:48 2007 From: sam at sustainablesoftware.com.au (Sam Stainsby) Date: Thu, 21 Jun 2007 03:48:48 +0000 (UTC) Subject: [Kss-devel] drag and drop in Plone 3.0 Message-ID: Not sure if this should be kss.devel or plone.devel. Let me know if inappropriate. I'm trying to add some KSS drag and drop mechanisms in Plone 3.0 beta 3 for a new multimedia database project that has some decent funding behind it. I have looked at KSS and kss.demo and decided the overall its pretty damn good and I'm excited at the prospect of working with it and adding new plugins and helping to develop anything else that needs to be done. After playing around for a while, I discovered (I think) that I need to add '++resource++dragdrop.js' to portal_javascripts to allow any kind of KSS drag and drop to happen within Plone 3.0. I have emulated the demo.kss drag and drop HTML and KSS. However, when I try to drag a draggable, it stays put and I get at lot of the following errors turing up in Firebug (Firefox 2.0.0.4 on Linux): this.map(Object.inspect) has no properties inspect()++resource++proto... (line 570) updateDrag(mousemove clientX=0, clientY=0)++resource++dragd... (line 175) bindAsEventListener(mousemove clientX=0, clientY=0)++resource++proto... (line 78) [Break on this error] return '[' + this.map(Object.inspect).join(', ') + ']'; I hoping I'm missing something that's obvious to KSS regulars. I suspect a missing javascript library or at least an incompatible one. Any ideas? Cheers, Sam. From ree at ree.hu Thu Jun 21 09:08:00 2007 From: ree at ree.hu (Balazs Ree) Date: Thu, 21 Jun 2007 09:08:00 +0200 Subject: [Kss-devel] drag and drop in Plone 3.0 References: Message-ID: Hi Sam, ON Thu, 21 Jun 2007 03:48:48 +0000 Sam Stainsby wrote: > Not sure if this should be kss.devel or plone.devel. Let me know if > inappropriate. I believe it is perfectly appropriate here. > I'm trying to add some KSS drag and drop mechanisms in Plone 3.0 beta 3 > for a new multimedia database project that has some decent funding > behind it. I have looked at KSS and kss.demo and decided the overall its > pretty damn good and I'm excited at the prospect of working with it and > adding new plugins and helping to develop anything else that needs to be > done. Bad news is that drag-and-drop kss support will not be by default included in Plone 3.0 release. It is too late for that already and we had to opt for other priorities. Good news is that I have a new branch with entirely enhanced support based on the prototype / scriptaculous drag-and-drop code. I will commit that code in a branch soon. This will be usable in Plone 3.0 however with a few caveats. The main problem seems to be that the scriptaculous javascript code that we reuse, does not support more independent "sortable" (or draggable, droppable) pools in one page. The data structures are all a singleton. This will cause a big problem because you won't be able to, for example, allow portlets to be rearranged at the same time, plus have another component do its own drag-and-drop business for say, a shopping cart. However: while this is a major headache for Plone in general, it may be acceptable if you want to use it in your custom application and you are in full control of everything that happens. What's more: to get rid of this limitation in scriptaculous, we would need to copypaste and duplicate its code. In the end we would arrive to forking the codebase which we find unacceptable. We will look for other possibilities though. Another problem is that although I am ready to check in this branch to the svn, I have not made the demos yet that explain its usage, and I am also not likely to have time to write them soon. My time is very limited in this respect but I will see what I can do. I will announce the checkin of the branch on the list. This code is stable in the sense that it is already running in production. It would be great if you could test it too. -- Balazs Ree From sam at sustainablesoftware.com.au Thu Jun 21 12:18:10 2007 From: sam at sustainablesoftware.com.au (Sam Stainsby) Date: Thu, 21 Jun 2007 10:18:10 +0000 (UTC) Subject: [Kss-devel] drag and drop in Plone 3.0 References: Message-ID: On Thu, 21 Jun 2007 09:08:00 +0200, Balazs Ree wrote: > I will announce the checkin of the branch on the list. This code is > stable in the sense that it is already running in production. It would be > great if you could test it too. I almost certainly will. Maybe I can help with putting a demo together as well. From jeroen.vloothuis at xs4all.nl Thu Jun 21 23:01:56 2007 From: jeroen.vloothuis at xs4all.nl (Jeroen Vloothuis) Date: Thu, 21 Jun 2007 23:01:56 +0200 Subject: [Kss-devel] Design for the KSS project Message-ID: <467AE744.5080908@xs4all.nl> These are the logo's a college of mine came up with. Feedback on the design is appreciated. He also has some comments on the colors: From Thijs: At the moment the logo's are all white with alpha transparency, and by changing the background color all the logo's change. When I've picked a color (I like the blue, but it haven't looked at color options yet) I'm also making a reverse version of the logo's so they'll also work in reverse or different background colors. -------------- next part -------------- A non-text attachment was scrubbed... Name: kss-logos.png Type: image/png Size: 63196 bytes Desc: not available Url : http://codespeak.net/pipermail/kss-devel/attachments/20070621/6e84b53a/attachment-0001.png From gotcha at bubblenet.be Fri Jun 22 13:25:30 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Fri, 22 Jun 2007 13:25:30 +0200 Subject: [Kss-devel] Design for the KSS project In-Reply-To: <467AE744.5080908@xs4all.nl> References: <467AE744.5080908@xs4all.nl> Message-ID: <467BB1AA.4090306@bubblenet.be> Jeroen Vloothuis wrote: > These are the logo's a college of mine came up with. Feedback on the > design is appreciated. He also has some comments on the colors: > > From Thijs: > > At the moment the logo's are all white with alpha transparency, and by > changing the background color all the logo's change. When I've picked a > color (I like the blue, but it haven't looked at color options yet) I'm > also making a reverse version of the logo's so they'll also work in > reverse or different background colors. > Thanks a lot to Thijs. If I give numbers to the logos in the following way : 1 2 3 4 5 6 7 My personal preference goes to 1 and 3. I really like that those as they are sober and easy to reproduce in black and white as well. (I'd vote against 5, 6, 7 as they are too complex.) Actually, I prefer 1 : it is the one that shows the letters the less. I'd rather have another color than blue though. I'd go for a dark orange like firefox orange... Thanks again ! -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From gotcha at bubblenet.be Sat Jun 23 10:21:54 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Sat, 23 Jun 2007 10:21:54 +0200 Subject: [Kss-devel] Design for the KSS project In-Reply-To: References: Message-ID: <467CD822.60604@bubblenet.be> Hi Thijs, I have read your mail a few times and did not succeed to understand it all... :-S Thijs Jonkman wrote: > Hy Godefroid, > > Using your numbering, this is how I see it. > > GROUP 1: I suppose group 1 is the first proposal we got... > > No. 1: Icon (also got a 16px X 16px version) > No. 3: Text logo (I like the logo on it's own, but I'm not sure about > the combination yet, with No. 2 I tried to get the icon and logo closer > together, but still does not really work, trying an idea now ) Do you mean that you thought about number 1 (in my numbering) as an icon while number 3 would have been a logo ? I do not think they fit together : 3 being much less angular than 1 Further, I'd like a single graphical element to be the mark of KSS. > No. 5, 6: Usable as style element (5 is not really my favorite, but 6 I > really like, and it shows the relation between KSS and the icon), just > not as a main thing > > GROUP 2; > > Basically the same as group 1 but with stroke, preference is without > stroke. I do not understand what you mean by group 2 > > NEW IMAGE: > I've adapted the No.3 and made a new image. I think all 4 of these are > usable in combination. I think new number 3 is too complex. I have adapted it to something simpler which shows the text (see attached image) but I still think I do not want text in the logo. IOW, we should try to find the right font that would associate cleanly KSS letters with logo. I'd like a color closer to the files I attach (less red - more orange) > > Awaiting reaction :) > > THijs > > -----Original Message----- > From: Godefroid Chapelle [mailto:gotcha at bubblenet.be] > Sent: Friday, June 22, 2007 1:26 PM > To: Jeroen Vloothuis > Cc: kss-devel at codespeak.net; Thijs Jonkman > Subject: Re: [Kss-devel] Design for the KSS project > > Jeroen Vloothuis wrote: >> These are the logo's a college of mine came up with. Feedback on the >> design is appreciated. He also has some comments on the colors: >> >> From Thijs: >> >> At the moment the logo's are all white with alpha transparency, and by >> changing the background color all the logo's change. When I've picked > a >> color (I like the blue, but it haven't looked at color options yet) > I'm >> also making a reverse version of the logo's so they'll also work in >> reverse or different background colors. >> > > Thanks a lot to Thijs. > > If I give numbers to the logos in the following way : > > 1 2 3 4 > 5 6 7 > > > My personal preference goes to 1 and 3. > > I really like that those as they are sober and easy to reproduce in > black and white as well. (I'd vote against 5, 6, 7 as they are too > complex.) > > Actually, I prefer 1 : it is the one that shows the letters the less. > > I'd rather have another color than blue though. > I'd go for a dark orange like firefox orange... > > Thanks again ! > > > ------------------------------------------------------------------------ > -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be -------------- next part -------------- A non-text attachment was scrubbed... Name: kssorange.png Type: image/png Size: 2144 bytes Desc: not available Url : http://codespeak.net/pipermail/kss-devel/attachments/20070623/07883916/attachment.png -------------- next part -------------- A non-text attachment was scrubbed... Name: textkss.png Type: image/png Size: 4807 bytes Desc: not available Url : http://codespeak.net/pipermail/kss-devel/attachments/20070623/07883916/attachment-0001.png From js at aixtraware.de Sat Jun 23 15:19:32 2007 From: js at aixtraware.de (Joachim Schmitz) Date: Sat, 23 Jun 2007 15:19:32 +0200 Subject: [Kss-devel] problem installing kss Message-ID: <467D1DE4.3040803@aixtraware.de> Hi, I just started with KSS. I did: svn co http://codespeak.net/svn/kukit/azax/trunk azax into my Zopes Products when restarting zope 2.9.3 with CPS-3.4.2 I get: 2007-06-23 15:07:18 ERROR Zope Could not import Products.azax Traceback (most recent call last): File "/home/perry/Zope/install/z296/lib/python/OFS/Application.py", line 708, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/home/perry/Zope/instances/homewaeup/Products/azax/__init__.py", line 28, in ? from azaxview import AzaxBaseView File "/home/perry/Zope/instances/homewaeup/Products/azax/azaxview.py", line 47, in ? from zope.component.globalregistry import BaseGlobalComponents ImportError: No module named globalregistry -- Gru? Joachim From gotcha at bubblenet.be Sat Jun 23 18:11:37 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Sat, 23 Jun 2007 18:11:37 +0200 Subject: [Kss-devel] problem installing kss In-Reply-To: <467D1DE4.3040803@aixtraware.de> References: <467D1DE4.3040803@aixtraware.de> Message-ID: <467D4639.8060706@bubblenet.be> Joachim Schmitz wrote: > Hi, > > I just started with KSS. > > I did: > > svn co http://codespeak.net/svn/kukit/azax/trunk azax > > into my Zopes Products > > when restarting zope 2.9.3 with CPS-3.4.2 I get: > > 2007-06-23 15:07:18 ERROR Zope Could not import Products.azax > Traceback (most recent call last): > File "/home/perry/Zope/install/z296/lib/python/OFS/Application.py", > line 708, in import_product > product=__import__(pname, global_dict, global_dict, silly) > File > "/home/perry/Zope/instances/homewaeup/Products/azax/__init__.py", line > 28, in ? > from azaxview import AzaxBaseView > File > "/home/perry/Zope/instances/homewaeup/Products/azax/azaxview.py", line > 47, in ? > from zope.component.globalregistry import BaseGlobalComponents > ImportError: No module named globalregistry > We should document better that the trunk was to be used with Zope 2.10 You should use branch 1.1 for Zope 2.9 -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From js at aixtraware.de Mon Jun 25 09:43:19 2007 From: js at aixtraware.de (Joachim Schmitz) Date: Mon, 25 Jun 2007 09:43:19 +0200 Subject: [Kss-devel] problem installing kss In-Reply-To: <467D4639.8060706@bubblenet.be> References: <467D1DE4.3040803@aixtraware.de> <467D4639.8060706@bubblenet.be> Message-ID: <467F7217.10606@aixtraware.de> Godefroid Chapelle schrieb: > Joachim Schmitz wrote: >> Hi, >> >> ImportError: No module named globalregistry >> > > We should document better that the trunk was to be used with Zope 2.10 > > You should use branch 1.1 for Zope 2.9 I did: svn co http://codespeak.net/svn/kukit/azax/branch/1.1 azax and now get 2007-06-25 09:35:13 ERROR Zope Couldn't install Five Traceback (most recent call last): File "/home/perry/Zope/install/z296/lib/python/OFS/Application.py", line 783, in install_product many lines finally: File "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", line 692, in finish actions = self.handler(context, **args) File "/home/perry/Zope/install/z296/lib/python/zope/configuration/xmlconfig.py", line 494, in include processxmlfile(f, context) File "/home/perry/Zope/install/z296/lib/python/zope/configuration/xmlconfig.py", line 349, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 353, in start_element_ns AttributesNSImpl(newattrs, qnames)) File "/home/perry/Zope/install/z296/lib/python/zope/configuration/xmlconfig.py", line 222, in startElementNS self.context.begin(name, data, info) File "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", line 541, in begin self.stack.append(self.stack[-1].contained(__name, __data, __info)) File "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", line 842, in contained return RootStackItem.contained(self, name, data, info) File "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", line 710, in contained factory = self.context.factory(self.context, name) File "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", line 487, in factory raise ConfigurationError("Unknown directive", ns, n) zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/perry/Zope/instances/homewaeup/Products/Five/skel/site.zcml", line 13.2-13.23 ZopeXMLConfigurationError: File "/home/perry/Zope/instances/homewaeup/Products/azax/configure.zcml", line 6.4-6.40 ZopeXMLConfigurationError: File "/home/perry/Zope/instances/homewaeup/Products/azax/pluginregistry/configure.zcml", line 8.4-8.31 ZopeXMLConfigurationError: File "/home/perry/Zope/instances/homewaeup/Products/azax/pluginregistry/json/configure.zcml", line 82.8 ConfigurationnError: ('Unknown directive', u'http://namespaces.zope.org/zope', u'class') > -- Gru? Joachim From gotcha at bubblenet.be Mon Jun 25 14:49:39 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Mon, 25 Jun 2007 14:49:39 +0200 Subject: [Kss-devel] problem installing kss In-Reply-To: <467F7217.10606@aixtraware.de> References: <467D1DE4.3040803@aixtraware.de> <467D4639.8060706@bubblenet.be> <467F7217.10606@aixtraware.de> Message-ID: <467FB9E3.2060606@bubblenet.be> Joachim Schmitz wrote: > Godefroid Chapelle schrieb: >> Joachim Schmitz wrote: >>> Hi, >>> >>> ImportError: No module named globalregistry >>> >> We should document better that the trunk was to be used with Zope 2.10 >> >> You should use branch 1.1 for Zope 2.9 > I did: > svn co http://codespeak.net/svn/kukit/azax/branch/1.1 azax > > and now get > 2007-06-25 09:35:13 ERROR Zope Couldn't install Five > Traceback (most recent call last): > File "/home/perry/Zope/install/z296/lib/python/OFS/Application.py", > line 783, in install_product > > many lines finally: > > File > "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", > line 692, in finish > actions = self.handler(context, **args) > File > "/home/perry/Zope/install/z296/lib/python/zope/configuration/xmlconfig.py", > line 494, in include > processxmlfile(f, context) > File > "/home/perry/Zope/install/z296/lib/python/zope/configuration/xmlconfig.py", > line 349, in processxmlfile > parser.parse(src) > File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", > line 109, in parse > xmlreader.IncrementalParser.parse(self, source) > File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", > line 123, in parse > self.feed(buffer) > File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", > line 216, in feed > self._parser.Parse(data, isFinal) > File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", > line 353, in start_element_ns > AttributesNSImpl(newattrs, qnames)) > File > "/home/perry/Zope/install/z296/lib/python/zope/configuration/xmlconfig.py", > line 222, in startElementNS > self.context.begin(name, data, info) > File > "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", > line 541, in begin > self.stack.append(self.stack[-1].contained(__name, __data, __info)) > File > "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", > line 842, in contained > return RootStackItem.contained(self, name, data, info) > File > "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", > line 710, in contained > factory = self.context.factory(self.context, name) > File > "/home/perry/Zope/install/z296/lib/python/zope/configuration/config.py", > line 487, in factory > raise ConfigurationError("Unknown directive", ns, n) > zope.configuration.xmlconfig.ZopeXMLConfigurationError: File > "/home/perry/Zope/instances/homewaeup/Products/Five/skel/site.zcml", > line 13.2-13.23 > ZopeXMLConfigurationError: File > "/home/perry/Zope/instances/homewaeup/Products/azax/configure.zcml", > line 6.4-6.40 > ZopeXMLConfigurationError: File > "/home/perry/Zope/instances/homewaeup/Products/azax/pluginregistry/configure.zcml", > line 8.4-8.31 > ZopeXMLConfigurationError: File > "/home/perry/Zope/instances/homewaeup/Products/azax/pluginregistry/json/configure.zcml", > line 82.8 > ConfigurationnError: ('Unknown directive', > u'http://namespaces.zope.org/zope', u'class') > > > I am surprised, I just checked out to a Plone 2.5.2 Zope 2.9.3 instance and it does restart. -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From js at aixtraware.de Mon Jun 25 14:52:21 2007 From: js at aixtraware.de (Joachim Schmitz) Date: Mon, 25 Jun 2007 14:52:21 +0200 Subject: [Kss-devel] problem installing kss In-Reply-To: <467FB9E3.2060606@bubblenet.be> References: <467D1DE4.3040803@aixtraware.de> <467D4639.8060706@bubblenet.be> <467F7217.10606@aixtraware.de> <467FB9E3.2060606@bubblenet.be> Message-ID: <467FBA85.9010902@aixtraware.de> Godefroid Chapelle schrieb: > Joachim Schmitz wrote: >> ConfigurationnError: ('Unknown directive', >> u'http://namespaces.zope.org/zope', u'class') >> >> >> > > I am surprised, I just checked out to a Plone 2.5.2 Zope 2.9.3 instance > and it does restart. > This is with Zope-2.9.6-final, and CPS-3.4.2 From gotcha at bubblenet.be Mon Jun 25 15:03:56 2007 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Mon, 25 Jun 2007 15:03:56 +0200 Subject: [Kss-devel] problem installing kss In-Reply-To: <467FBA85.9010902@aixtraware.de> References: <467D1DE4.3040803@aixtraware.de> <467D4639.8060706@bubblenet.be> <467F7217.10606@aixtraware.de> <467FB9E3.2060606@bubblenet.be> <467FBA85.9010902@aixtraware.de> Message-ID: <467FBD3C.1010501@bubblenet.be> Joachim Schmitz wrote: > Godefroid Chapelle schrieb: >> Joachim Schmitz wrote: > >>> ConfigurationnError: ('Unknown directive', >>> u'http://namespaces.zope.org/zope', u'class') >>> >>> >>> >> >> I am surprised, I just checked out to a Plone 2.5.2 Zope 2.9.3 >> instance and it does restart. >> > This is with Zope-2.9.6-final, and CPS-3.4.2 Sorry, I made a mistake, it is on Zope-2.9.7-final -- Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be From lewicki at provider.pl Mon Jun 25 15:02:29 2007 From: lewicki at provider.pl (Pawel Lewicki) Date: Mon, 25 Jun 2007 15:02:29 +0200 Subject: [Kss-devel] problem installing kss In-Reply-To: <467FBA85.9010902@aixtraware.de> References: <467D1DE4.3040803@aixtraware.de> <467D4639.8060706@bubblenet.be> <467F7217.10606@aixtraware.de> <467FB9E3.2060606@bubblenet.be> <467FBA85.9010902@aixtraware.de> Message-ID: <467FBCE5.5080008@provider.pl> Joachim Schmitz pisze: > Godefroid Chapelle schrieb: >> Joachim Schmitz wrote: > >>> ConfigurationnError: ('Unknown directive', >>> u'http://namespaces.zope.org/zope', u'class') >>> >>> >>> >> I am surprised, I just checked out to a Plone 2.5.2 Zope 2.9.3 instance >> and it does restart. >> > This is with Zope-2.9.6-final, and CPS-3.4.2 Five 1.4 branch? Pawel From js at aixtraware.de Mon Jun 25 15:40:33 2007 From: js at aixtraware.de (Joachim Schmitz) Date: Mon, 25 Jun 2007 15:40:33 +0200 Subject: [Kss-devel] problem installing kss In-Reply-To: <467FBD3C.1010501@bubblenet.be> References: <467D1DE4.3040803@aixtraware.de> <467D4639.8060706@bubblenet.be> <467F7217.10606@aixtraware.de> <467FB9E3.2060606@bubblenet.be> <467FBA85.9010902@aixtraware.de> <467FBD3C.1010501@bubblenet.be> Message-ID: <467FC5D1.6060505@aixtraware.de> Godefroid Chapelle schrieb: > Joachim Schmitz wrote: >> Godefroid Chapelle schrieb: >>> Joachim Schmitz wrote: >> >>>> ConfigurationnError: ('Unknown directive', >>>> u'http://namespaces.zope.org/zope', u'class') >>>> >>>> >>>> >>> >>> I am surprised, I just checked out to a Plone 2.5.2 Zope 2.9.3 >>> instance and it does restart. >>> >> This is with Zope-2.9.6-final, and CPS-3.4.2 > > Sorry, I made a mistake, it is on Zope-2.9.7-final > To be usable in our production system, it should work with 2.9.3. since we won't be able to upgrade that in the near future. -- Gru? Joachim From ree at ree.hu Mon Jun 25 16:20:47 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 25 Jun 2007 16:20:47 +0200 Subject: [Kss-devel] Design for the KSS project References: <467AE744.5080908@xs4all.nl> <467BB1AA.4090306@bubblenet.be> Message-ID: On Fri, 22 Jun 2007 13:25:30 +0200 Godefroid Chapelle wrote: > Jeroen Vloothuis wrote: >> These are the logo's a college of mine came up with. Feedback on the >> design is appreciated. He also has some comments on the colors: > If I give numbers to the logos in the following way : > > 1 2 3 4 > 5 6 7 > > > My personal preference goes to 1 and 3. > > I really like that those as they are sober and easy to reproduce in > black and white as well. (I'd vote against 5, 6, 7 as they are too > complex.) > > Actually, I prefer 1 : it is the one that shows the letters the less. Wow. I am amazed. Ok, sorry I posted this already but it seems to have lost. So my first impresson was that I liked 3, and also 5. At first I was thinking 1 was a bit too simplistic, but rethinking about it it may be actually good to have something almost iconic. However in case of 1 I find it better just to use it in its original form as in the design, and without the added SS's that Godefroid was sending in his followup. > I'd ratherhave another color than blue though. I'd go for a dark orange > like firefox orange... I also prefer something else then orange. > Thanks again ! Thanks from here too! -- Balazs Ree From ree at ree.hu Mon Jun 25 17:20:14 2007 From: ree at ree.hu (Balazs Ree) Date: Mon, 25 Jun 2007 17:20:14 +0200 Subject: [Kss-devel] Design for the KSS project References: <467AE744.5080908@xs4all.nl> <467BB1AA.4090306@bubblenet.be> Message-ID: Mon, 25 Jun 2007 16:20:47 +0200 keltez?ssel Balazs Ree azt ?rta: > On Fri, 22 Jun 2007 13:25:30 +0200 Godefroid Chapelle wrote: >> I'd ratherhave another color than blue though. I'd go for a dark orange >> like firefox orange... > > I also prefer something else then orange. Correction: I also prefer something else then blue. _like_ orange. So orange is fine with me. -- Balazs Ree From js at aixtraware.de Wed Jun 27 13:45:09 2007 From: js at aixtraware.de (Joachim Schmitz) Date: Wed, 27 Jun 2007 13:45:09 +0200 Subject: [Kss-devel] problem installing kss In-Reply-To: <467FBCE5.5080008@provider.pl> References: <467D1DE4.3040803@aixtraware.de> <467D4639.8060706@bubblenet.be> <467F7217.10606@aixtraware.de> <467FB9E3.2060606@bubblenet.be> <467FBA85.9010902@aixtraware.de> <467FBCE5.5080008@provider.pl> Message-ID: <46824DC5.7070105@aixtraware.de> Pawel Lewicki schrieb: > Joachim Schmitz pisze: >> Godefroid Chapelle schrieb: >>> Joachim Schmitz wrote: >>>> ConfigurationnError: ('Unknown directive', >>>> u'http://namespaces.zope.org/zope', u'class') >>>> >>>> >>>> >>> I am surprised, I just checked out to a Plone 2.5.2 Zope 2.9.3 instance >>> and it does restart. >>> >> This is with Zope-2.9.6-final, and CPS-3.4.2 > > Five 1.4 branch? solved, I got it installed, I had an old CPS-Five in the way. Using Five from 2.9.7 makes Zope start again. -- Gru? Joachim From js at aixtraware.de Wed Jun 27 14:55:12 2007 From: js at aixtraware.de (Joachim Schmitz) Date: Wed, 27 Jun 2007 14:55:12 +0200 Subject: [Kss-devel] errors when running azaxdemo Message-ID: <46825E30.10902@aixtraware.de> Hi, after installing the azaxdemo branch 1.1 in the root of a zopeinstance, I selected the first Demo change tag content. Clicking on each button results in: 2007-06-27 14:42:53 ERROR Zope.SiteErrorLog http://localhost:8080/azaxdemo/getDivContent/getDivContent Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module Products.azaxdemo.azaxview, line 62, in getDivContent Module zope.interface.interface, line 682, in __call__ TypeError: ('Could not adapt', , ) Where can I fix this. Both azax and azaxdemo are from the 1.1 branch. -- Gru? Joachim From js at aixtraware.de Wed Jun 27 17:16:13 2007 From: js at aixtraware.de (Joachim Schmitz) Date: Wed, 27 Jun 2007 17:16:13 +0200 Subject: [Kss-devel] got ajaxdemo working Message-ID: <46827F3D.8060703@aixtraware.de> hi, finally with the following modifications I could make the trunk of azax and azaxdemo work under zope-2.9.7. The azaxdemo from branch 1.1 does not work with azax from branch 1.1. diff azaxview.py azax_trunk/azaxview.py 47,48c47,48 < #from zope.component.globalregistry import BaseGlobalComponents < #from zope.component.interfaces import IComponentLookup --- > from zope.component.globalregistry import BaseGlobalComponents > from zope.component.interfaces import IComponentLookup 51,52c51,52 < #from zope.publisher.browser import BrowserView < #from zope.component.persistentregistry import PersistentAdapterRegistry --- > from zope.publisher.browser import BrowserView > from zope.component.persistentregistry import PersistentAdapterRegistry 55,64c55,60 < try: < from Products.Five import BrowserView < except ImportError: < from zope.app.publisher.browser import BrowserView < < # class ViewSiteManager(BaseGlobalComponents): < < # def _init_registries(self): < # self.adapters = PersistentAdapterRegistry() < # self.utilities = PersistentAdapterRegistry() --- > > class ViewSiteManager(BaseGlobalComponents): > > def _init_registries(self): > self.adapters = PersistentAdapterRegistry() > self.utilities = PersistentAdapterRegistry() 99,100c95 < # class AzaxBaseView(SiteView): < class AzaxBaseView(BrowserView): --- > class AzaxBaseView(SiteView): 124,131c119,121 < return self.commands.render(self.request) < < # def render(self): < # '''All methods must use this to return their command set < # ''' < # commands = self.commands.render(self.request) < # super(AzaxBaseView, self).render() < # return commands --- > commands = self.commands.render(self.request) > super(AzaxBaseView, self).render() > return commands -- Gru? Joachim