From davidglick at onenw.org Wed Jul 1 06:22:21 2009 From: davidglick at onenw.org (David Glick) Date: Tue, 30 Jun 2009 21:22:21 -0700 Subject: [Kss-devel] commit request Message-ID: How can I get commit access to the KSS repository? I need to add a conditional import to kss.concatresource to make it work with Zope 2.12. thanks, David Glick Web Developer ONE/Northwest New tools and strategies for engaging people in protecting the environment http://www.onenw.org davidglick at onenw.org work: (206) 286-1235 x32 mobile: (206) 679-3833 Subscribe to ONEList, our email newsletter! Practical advice for effective online engagement http://www.onenw.org/full_signup From gotcha at bubblenet.be Wed Jul 1 12:58:59 2009 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Wed, 01 Jul 2009 12:58:59 +0200 Subject: [Kss-devel] commit request In-Reply-To: References: Message-ID: <4A4B4173.9090508@bubblenet.be> David Glick wrote: > How can I get commit access to the KSS repository? I need to add a > conditional import to kss.concatresource to make it work with Zope 2.12. > > thanks, > > David Glick You need to tell me which user id you want on codespeak.net so that I can make an account for you. -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be From gweis at gmx.at Mon Jul 13 03:38:07 2009 From: gweis at gmx.at (Gerhard Weis) Date: Mon, 13 Jul 2009 11:38:07 +1000 Subject: [Kss-devel] problem with enforce_unicde Message-ID: <4A5A8FFF.2010803@gmx.at> Hi, I am using utf-8 as system default character encoding in python. The enforce_unicode method in module kss.core.unicode_quirks assumes by default ascii encoding, which causes every now and then UnicodeDecodeErrors in my plone-site. I attached a small patch which passes sys.getdefaultencoding() as default parameter to enforce_unicde. Works fine here. The patch is against kss.core/branch/1.4. Tests with the patch applied to version 1.4.7 run fine too. Kind Regards, Gerhard -------------- next part -------------- A non-text attachment was scrubbed... Name: system_defaultencoding.patch Type: text/x-patch Size: 612 bytes Desc: not available Url : http://codespeak.net/pipermail/kss-devel/attachments/20090713/1a128450/attachment.bin From gweis at gmx.at Fri Jul 24 04:41:48 2009 From: gweis at gmx.at (Gerhard Weis) Date: Fri, 24 Jul 2009 12:41:48 +1000 Subject: [Kss-devel] fix logging in Safari for kukit-devel.js in plone Message-ID: <4A691F6C.6090306@gmx.at> Hi, The current browser detection for the logging does not work as expected in Safari 4. As Safari 4 provides all necessary methods on the console object, the variable kukit.hasFirebug is set to true and the logging code fails badly with an exception in Safari 4. The attached patch adds an additional test whether the browser is WebKit based to kukit.hasFired. The patch is against kss.core 1.4 branch. (whatever external it pulls in for kukit) cheers, Gerhard -------------- next part -------------- A non-text attachment was scrubbed... Name: fix_safari_logging.patch Type: text/x-patch Size: 544 bytes Desc: not available Url : http://codespeak.net/pipermail/kss-devel/attachments/20090724/f6fc5cff/attachment.bin From tekktura+gmane at gmail.com Wed Jul 29 13:23:49 2009 From: tekktura+gmane at gmail.com (Tomasz Bielecki) Date: Wed, 29 Jul 2009 11:23:49 +0000 (UTC) Subject: [Kss-devel] KSS - awesome! But ... (my personal thoughts about the project) Message-ID: I would like to share some general thoughts of mine about the KSS project. I discovered KSS just few months ago while playing around Plone 3. My previous experiences were mostly Zope 2 development and older Plone releases (i.e. < 3.0). At first I was unaware of this project and inline editing in Plone was for me just a neat future that it has built-in and the competition doesn't have. Later on I came to know that Plone incorporates external package called "kss" - a full-blown framework to work with Javascript and Ajax without actually programming in JS. When I came deeper into the topic at some point I said to myself - Eureka ! This is a brilliant idea ! Awesome ! Finally someone found a way to describe the "dynamicism" of a web page - and in such an elegant way - a Kinetic Stylesheet! Just like CSS describes the static things on a page - great! I don't even have to attach actions through code (like in jQuery after page loads). You guys are genius ! But then came the disappointment ... Sadly speaking - this framework is actually ... useless. To be more specific - it is "unusable in production". It's just a toy. Why do I speak of KSS with grains of salt, why I can't use it in production? Because of two really simple, trivial things: 1) kss is heavy 2) kss is slow The second problem does not exists in Plone since it only has few rules in .kss files, so the parser can handle them. Big problem arises when I want to implement a serious app and put A LOT of rules (imagine something like Gmail with kss). It just takes too long time. Anything more then 1 second of processing after the page is loaded makes the app unusable - which questions the usage of Ajax in the first place (full page reloads could be faster). The first problem is also a serious one (100k is too much). The CSS parsing library of course will be always slow and big since it's Javascript anyway. I'm happy that CSSQuery was replaced by a better, faster and smaller library. But still this is javascript parser! The Plone team even had a proposal to remove kss completely from the project and make it only optional (see PLIP http://dev.plone.org/plone/ticket/8809). So what can be done to deal with these two major problems? I would really be happy to be able to use KSS in production not just as a curiosity or toy! I want KSS to be a serious thing ! My idea is not in the code, not in optimizing things, not in replacing libraries - it is somewhere else. Try to look at the problem from a different perspective! Why not to harness the power of the browsers? They handle CSS since long and they're doing it fast. They could handle KSS as well ! Isn't the KSS project mature enough to become a ..... standard ! Yes, a web standard ! A standard that everybody uses - CSS/KSS - this pair plays nice together. It's not up to me to decide about that but in my humble opinion KSS should become a W3C standard alongside CSS. It should be posted as a proposal to the World Wide Web Consortium. Kss files should have their own registered mime type - Really I do think so ! Am I going too far ??? Hmmm. Maybe. Micro$oft can post some shitty proposals to W3C (which are mostly rejected) and the community cannot post a great idea? Hmmm. Maybe not. If I'm looking too far ahead there is another solution, not as "grand design" as the first one but should suffice. Different browsers have different capabilities which are non standard. Even Ajax itself is only a "de facto" standard (XMLHttpRequest is still a working draft at w3c) and has separate implementations (Firefox/IE/...). The Canvas library (if I remember the name correctly) can draw on the screen using javascript fast and it's also non standard. Wikimapia project uses that if I am not wrong. So there is a need for browsers to give you a library which parses CSS using browser's engine. The easiest way would be to contact the teams of open-source projects (like Firefox) and ask them if they can provide you with this capability. Of course other projects which parse CSS selectors could benefit (like jQuery), so forces can be joined. The problem is that KSS is not well recognized in the web community. Why?! I ask you !! This is such a brilliant project, KSS could be ported to any web framework! Be it Java, PHP, whatever, it doesn't has to be Python based framework. But when I ask Java folks if they did hear about the big, innovative web project named "KSS" they make big eyes! They live in their Java world and KSS lives in the Python world. These worlds are mostly separate. Why? The problem with KSS is with marketing. This project doesn't have any marketing! Or maybe these marketing efforts are not enough. KSS doesn't have a worldwide recognition it deserves! Plone is a nice example of successful marketing that even overtakes the product itself. Plone has many glitches, is slow, huge framework, sometimes hard to work with - but still many clients want it. Actually these times we live in are very interesting when it comes to web applications which are closer and closer to desktop apps. Many client side functions is done using slow javascript code, so there is a need to use some of browsers' native libraries from inside JS code to speed things up. This includes XPath selectors, XSLT transformations, using RPC's - just to mention a few needs. More and more JS code is replacing server side code to push load on the client side. I am hoping one day KSS will use browsers' native CSS parsing capability and will finally be fast and lightweight. And what do you think ? Appreciations for all comments and answers. From gotcha at bubblenet.be Thu Jul 30 11:12:49 2009 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Thu, 30 Jul 2009 11:12:49 +0200 Subject: [Kss-devel] problem with enforce_unicde In-Reply-To: <4A5A8FFF.2010803@gmx.at> References: <4A5A8FFF.2010803@gmx.at> Message-ID: <4A716411.4090207@bubblenet.be> Gerhard Weis wrote: > Hi, > > I am using utf-8 as system default character encoding in python. The > enforce_unicode method in module kss.core.unicode_quirks assumes > by default ascii encoding, which causes every now and then > UnicodeDecodeErrors in my plone-site. > > I attached a small patch which passes sys.getdefaultencoding() as > default parameter to enforce_unicde. Works fine here. Thanks a lot for your patch (sorry for waiting so long to acknowledge it :-s ) > > The patch is against kss.core/branch/1.4. > > Tests with the patch applied to version 1.4.7 run fine too. > > Kind Regards, > > Gerhard > > Would you have an idea how to add a test for this bug ? Thanks -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be From gotcha at bubblenet.be Thu Jul 30 11:14:19 2009 From: gotcha at bubblenet.be (Godefroid Chapelle) Date: Thu, 30 Jul 2009 11:14:19 +0200 Subject: [Kss-devel] fix logging in Safari for kukit-devel.js in plone In-Reply-To: <4A691F6C.6090306@gmx.at> References: <4A691F6C.6090306@gmx.at> Message-ID: <4A71646B.3060309@bubblenet.be> Gerhard Weis wrote: > Hi, > > The current browser detection for the logging does not work as expected > in Safari 4. > As Safari 4 provides all necessary methods on the console object, the > variable kukit.hasFirebug is set to true and the logging code fails > badly with an exception in Safari 4. > > The attached patch adds an additional test whether the browser is WebKit > based to kukit.hasFired. > > The patch is against kss.core 1.4 branch. (whatever external it pulls in > for kukit) > > cheers, > > Gerhard > He, you sent another patch :-) Thanks Would you like an account on codespeak.net to merge them yourself ? -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be From gweis at gmx.at Fri Jul 31 06:37:58 2009 From: gweis at gmx.at (Gerhard Weis) Date: Fri, 31 Jul 2009 14:37:58 +1000 Subject: [Kss-devel] problem with enforce_unicde In-Reply-To: <4A716411.4090207@bubblenet.be> References: <4A5A8FFF.2010803@gmx.at> <4A716411.4090207@bubblenet.be> Message-ID: <4A727526.3060301@gmx.at> On 30/07/09 7:12 PM, Godefroid Chapelle wrote: > Thanks a lot for your patch (sorry for waiting so long to acknowledge it > :-s ) > > No worries, I guess it will also take little while until the next release. (Where a patch for this problem will hopefully be integrated). > Would you have an idea how to add a test for this bug ? > > Thanks > > I'll have a look at it. Additionally I thought, that maybe it is not necessary to read the default encoding from sys, but just leave the encoding None and let python itself decide what the default encoding is. However, I'll try to figure out how to tests this. (I guess it is just a matter of adding a test which fails with the old behaviour and hopefully runs fine with a patched version :) ) Cheers, Gerhard From gweis at gmx.at Fri Jul 31 07:01:52 2009 From: gweis at gmx.at (Gerhard Weis) Date: Fri, 31 Jul 2009 15:01:52 +1000 Subject: [Kss-devel] fix logging in Safari for kukit-devel.js in plone In-Reply-To: <4A71646B.3060309@bubblenet.be> References: <4A691F6C.6090306@gmx.at> <4A71646B.3060309@bubblenet.be> Message-ID: <4A727AC0.3030106@gmx.at> On 30/07/09 7:14 PM, Godefroid Chapelle wrote: > > He, you sent another patch :-) > > Thanks > > Would you like an account on codespeak.net to merge them yourself ? > > Hi, Thanks yes, could be helpful, but I guess I will just do a little bug-fixing when I stumble upon something. However it would be nice knowing what the development procedures are. For instance consider following questions: Where should be new features/patches commited? (separate branch, or just trunk if there is a test case supporting it?) If on a branch what is the process to merge it into trunk? etc..... cheers, Gerhard