Re: [Repoze-dev] [Pyramid-checkins] Broken: Pylons/pyramid#1123 (master - ba0593a)

2014-11-05 Thread Malthe Borch
+1 Python 3.2 is not likely to be relevant going forward because conservative users are anyway still on 2.x. Malthe On Wed 5 Nov 2014 at 21:39 Wichert Akkerman wich...@wiggy.net wrote: On 05 Nov 2014, at 17:55, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE-

[Repoze-dev] pagetemplates.org back up

2012-11-09 Thread Malthe Borch
My apologies if its downtime has caused issues. \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org https://lists.repoze.org/listinfo/repoze-dev

Re: [Repoze-dev] translation problem

2011-07-28 Thread Malthe Borch
This is also a problem on regular Zope, fwiw. It's not particular hard to call ``translate`` first on the mapped values, but it's of course a little tedious. The question is whether it's too much of an overhead to go through any mapping, looking for messages (i.e. the automatic alternative).

Re: [Repoze-dev] Chameleon: XInclude support for ZPT templates

2011-04-12 Thread Malthe Borch
On 1 April 2011 15:28, Fabio Tranchitella kob...@kobold.it wrote: as discussed briefly with Malte on #repoze, I'd like to add XInclude support to the ZPT Chameleon templates. As it turned out, it is quite simple and the patch is attached to this message. Sorry for the late response. Patch

Re: [Repoze-dev] Chameleon: a few newby questions

2011-03-29 Thread Malthe Borch
p metal:use-macro=templates['header.pt'].macros['header'] / [snip] Is there any shorter way to do this? Can the template loader be passed implicitly? It would easy to include a load function or even expression, i.e. load: ../header.pt, but as that example illustrates, it would be relative

Re: [Repoze-dev] Chameleon: a few newby questions

2011-03-29 Thread Malthe Borch
On 29 March 2011 11:02, Hanno Schlichting ha...@hannosch.eu wrote: Isn't that exactly what macros give you via define and use? Except macros are funny in that they render implicitly where defined. But you could definitely have a template that includes any number of macros. Just make sure to not

[Repoze-dev] repoze.zope2 release

2011-03-25 Thread Malthe Borch
Are there any impediments to releasing the trunk of repoze.zope2? \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev

Re: [Repoze-dev] Migration to Github

2011-03-24 Thread Malthe Borch
On 24 March 2011 12:02, Brian Sutherland br...@vanguardistas.net wrote: I'd like to make a new release of repoze.bitblt (when my pull request is accepted). Is there any documentation anywhere about how releases should be tagged/created within the Repoze github repository? Looking at e.g.

[Repoze-dev] Chameleon and attribute escape

2011-03-07 Thread Malthe Borch
Just wanted to follow up on some issues with attribute escaping that were asked on the channel. I believe I have now adressed these concerns: https://github.com/malthe/chameleon/commit/800306a7433250120e039773ef013702dbaec3fc In particular, you can now use invalid markup such as: span ...

Re: [Repoze-dev] Chameleon and attribute escape

2011-03-07 Thread Malthe Borch
On 7 March 2011 11:59, Wichert Akkerman wich...@wiggy.net wrote: Is there a mode to make it impossible to accept or generate invalid markup? For some of us that is very important. That's what this changeset does. It allows you to use invalid markup to the extent possible. For instance, you can

Re: [Repoze-dev] Chameleon and attribute escape

2011-03-07 Thread Malthe Borch
On 7 March 2011 12:07, Wichert Akkerman wich...@wiggy.net wrote: That is the opposite of what I want: I would like invalid markup to be rejected, and I want it to be completely impossible to generate invalid markup. I see. Perhaps there could be a validator sitting in front of the compiler

Re: [Repoze-dev] Chameleon and attribute escape

2011-03-07 Thread Malthe Borch
On 7 March 2011 12:11, Wichert Akkerman wich...@wiggy.net wrote: For input possibly. I consider invalid markup as possible output to be a bug in the template engine. Right. Note that any dynamically included content will undergo escaping: If your input is valid, you know that the output is

Re: [Repoze-dev] chameleon zpt: structure or not?

2011-03-02 Thread Malthe Borch
On 2 March 2011 03:36, Shane Hathaway sh...@hathawaymix.org wrote: Also, a quirky behavior of the reference TAL implementation is if you use unknown attribute names in the tal namespace, those attributes get stripped from the output.  It's a useful feature; it allows me to write comments about

Re: [Repoze-dev] chameleon zpt: structure or not?

2011-03-02 Thread Malthe Borch
On 2 March 2011 08:18, Chris Withers ch...@simplistix.co.uk wrote: Interesting, I use this technique a lot, and I didn't experience this problem with my brief test of 2.0-rc2. Mind you, Shane means tal:comment in *attributes*: div tal:comment=This is a throw-away div ... /div I think

Re: [Repoze-dev] chameleon zpt: structure or not?

2011-03-02 Thread Malthe Borch
On 2 March 2011 19:27, Shane Hathaway sh...@hathawaymix.org wrote: I think it's unwise to support this meaning of the pipe character in Python expressions.  I say the new behavior is better. Great. \malthe ___ Repoze-dev mailing list

Re: [Repoze-dev] chameleon zpt: structure or not?

2011-03-01 Thread Malthe Borch
On 1 March 2011 12:00, Chris Withers ch...@simplistix.co.uk wrote: div class=batcher     tal:content=pager/ ...doesn't appear to quote the html in the pager variable. This is different from normal zpt, why the change? It should definitely escape it in exactly the same way. Also, as a

Re: [Repoze-dev] chameleon zpt: structure or not?

2011-03-01 Thread Malthe Borch
On 1 March 2011 14:19, Chris Withers ch...@simplistix.co.uk wrote: So, it's quoting the tags but not the entities. Bug, no? Yes, it certainly seems so. Which version is this? div class=batcher     tal:content=structure pager/ That should include the content in ``pager`` as-is. What do you

Re: [Repoze-dev] chameleon zpt: structure or not?

2011-03-01 Thread Malthe Borch
On 1 March 2011 14:49, Chris Withers ch...@simplistix.co.uk wrote: Which version is this? 1.3.0-rc1 If you have the time, can you try the same thing in 2.0-rc2? Thanks! \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org

[Repoze-dev] Chameleon 2.x

2011-02-25 Thread Malthe Borch
The current development target for Chameleon 2.0 [1] is now stable and seems to be compatible with Pyramid (tests run). For information on what's new, see the readme. Minimum Python version is 2.5 (and compatible up to 3.2). PyPy is also supported (only fast-forward branch tested, but should work

Re: [Repoze-dev] Chameleon 2.x

2011-02-25 Thread Malthe Borch
, On Fri, Feb 25, 2011 at 12:14, Malthe Borch mbo...@gmail.com wrote: The current development target for Chameleon 2.0 [1] is now stable and seems to be compatible with Pyramid (tests run). For information on what's new, see the readme. I'd like to test-drive Chameleon 2 with a Pyramid app I'm

Re: [Repoze-dev] Chameleon and Genshi Text Templates

2011-02-14 Thread Malthe Borch
Hey Brian, That's right. It hasn't been implemented and it's a bit of false advertisement really. That said, implementing it should be relatively straight-forward. \malthe On 14 February 2011 17:20, Brian Sutherland br...@vanguardistas.net wrote: Hi, The genshi text template language

Re: [Repoze-dev] chameleon.repoze.org is offline.

2010-12-17 Thread Malthe Borch
Hey Tim, The server that's hosting the site was compromised yesterday. My slice there has been suspended. As of yet, I haven't gotten permission to access the files on there yet from the hosting provider. Thanks for reporting though. \malthe On 17 December 2010 14:22, Tim Hoffman

Re: [Repoze-dev] bfg chameleon unicode crash with wrapper views

2010-12-16 Thread Malthe Borch
Alternatively, enable implicit decoding using ``default_encoding=utf-8`` (in the template constructor). This is enabled on Plone, for instance. \malthe On 16 December 2010 14:47, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/15/2010 10:18 PM,

Re: [Repoze-dev] Chameleon templates and facebook namespace

2010-11-15 Thread Malthe Borch
Hey Eduardo, --- It shouldn't eat that namespace prefix. I wonder if this is still the case in the current Chameleon release. Have you tried? Sorry for the long delay in response. \malthe On 5 June 2010 18:29, Eduardo Diaz eduardo.d...@ediaz.me wrote: Hi, I'm trying to use facebook's xfbml,

Re: [Repoze-dev] [Chameleon] Wrong URL to bug tracker in docs

2010-08-30 Thread Malthe Borch
This was fixed earlier on in the repository, but I have now also updated the live documentation. Thanks! \malthe On 29 August 2010 08:45, Chris McDonough chr...@plope.com wrote: This message was discarded because the sending address wasn't subscribed to the maillist, FWIW. On Sat,

[Repoze-dev] [issue157] Chameleon throws errors for translation strings that contain html elements with and without i18n:name attributes

2010-07-30 Thread Malthe Borch
Malthe Borch mbo...@gmail.com added the comment: Where is this branch? Can you paste a link to the revision diff when you've committed it (e.g. using http://repoze.org/viewcvs/chameleon). -- status: unread - chatting __ Repoze Bugs b...@bugs.repoze.org

[Repoze-dev] [issue157] Chameleon throws errors for translation strings that contain html elements with and without i18n:name attributes

2010-07-30 Thread Malthe Borch
Malthe Borch mbo...@gmail.com added the comment: It's because it doesn't really make much sense to not name your tags if you provide a translation string. However, there are already some examples of this in the tests. Maybe: 1) First look at the existing examples that demonstrate this. They've

[Repoze-dev] [issue156] Chameleon - Bugs when using with apache

2010-07-21 Thread Malthe Borch
Malthe Borch mbo...@gmail.com added the comment: I'm not sure what this is, but it's not the first report I get about it. It's difficult to debug without some way of reproducing it consistently, although it seems to revolve around thread-safety. One thing about it though is that you seem

Re: [Repoze-dev] repoze.folder API weirdness

2010-06-17 Thread Malthe Borch
On 17 June 2010 16:08, Charlie Clark charlie.cl...@clark-consulting.eu wrote: This is standard behaviour for folders (the not accepting duplicates). I think changing it would be against user expectations. My file system accepts duplicates (meaning replacement). I don't need to remove the file

Re: [Repoze-dev] problems running chameleon tests

2010-06-03 Thread Malthe Borch
Really that's odd; we can definitely add a [test] on next release; or please go ahead and commit it if you can. Thanks, On 3 June 2010 09:50, Chris Withers ch...@simplistix.co.uk wrote: Malthe Borch wrote: This has to do with lxml; it currently worksforme, but I don't know why. Try Stephan's

Re: [Repoze-dev] [chameleon bug] bugtracker url wrong in docs.

2010-06-03 Thread Malthe Borch
/                  It is hard to make things simple. ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev -- Malthe Borch Technical Advisor UNICEF Uganda +256 (0) 703 945 965

Re: [Repoze-dev] problems running chameleon tests

2010-06-03 Thread Malthe Borch
On 3 June 2010 12:37, Chris Withers ch...@simplistix.co.uk wrote: How do you run the tests? python setup.py nosetests Hmm, it occurs to me that even if the [test] extra_requires was there, I don't know how to feed that into: python setup.py develop Any ideas? Not really right now; let me

Re: [Repoze-dev] [chameleon bug] bugtracker url wrong in docs.

2010-06-03 Thread Malthe Borch
It wasn't. On 3 June 2010 13:05, Wichert Akkerman wich...@wiggy.net wrote: On 6/3/10 11:27 , Malthe Borch wrote: We should try and consolidate all these different bug trackers. It's a mess. Too bad we don't have the proper top-level name for this. I don't know that I agree with the name

[Repoze-dev] Emacs bug!

2010-05-22 Thread Malthe Borch
try passing tab at pass: http://pastebin.com/qCMaym9S \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev

Re: [Repoze-dev] Emacs bug!

2010-05-22 Thread Malthe Borch
I guess it's documented here: https://bugs.launchpad.net/python-mode/+bug/328781. ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev

Re: [Repoze-dev] DOCTYPE inside macro

2010-05-13 Thread Malthe Borch
On 13 May 2010 19:23, Douglas Cerna douglasce...@yahoo.com wrote: I'm trying to set up a page macro that includes the !DOCTYPE ... in it, like this: That's not valid XML and since Chameleon currently uses Expat to parse documents (albeit very customized), it refuses to accept a doctype after a

Re: [Repoze-dev] LMS a BFG application

2010-04-29 Thread Malthe Borch
would do. A bit of encouragement, appreciation and recognition can boost our morale and can make us contribute better for Open Source Community.We are an NGO and develop software also. According to your own homepage, Mahiti Infotech is a large Indian IT company that specialise in a host of

Re: [Repoze-dev] Chameleon 1.1 and z3c.pt problems

2010-04-10 Thread Malthe Borch
On 9 April 2010 21:30, Hanno Schlichting ha...@hannosch.eu wrote: Sure. I think the approach we took was good. It gave as a hugely successful, stable and performant engine. I just have the feeling that the current model has become somewhat convoluted and hinders us to do any more

Re: [Repoze-dev] Using zope.contentprovider and zope.viewlet with repoze.bfg and chameleon

2010-04-03 Thread Malthe Borch
On 31 March 2010 22:41, Andrey Popp 8may...@gmail.com wrote: * Inject current view in template, because TALES expression for content providers make things work by adapting context, request, view (the last two already available inside template) to IContentProvider. That's an easy one: see

Re: [Repoze-dev] Typo in Skins

2010-03-15 Thread Malthe Borch
On 15 March 2010 13:12, Douglas Cerna douglasce...@yahoo.com wrote: First of all, sorry for posting all these small typos on the dev mailing list. I'm starting with repoze.bfg and would like to contribute somehow. Is there a way of branching the docs, fixing the typos myself and send a diff

Re: [Repoze-dev] [issue139] Chameleon - can't create xml and doctype declarations from macro

2010-03-14 Thread Malthe Borch
On 4 March 2010 22:22, Shane Hathaway sh...@hathawaymix.org wrote: From a template developer's POV, it's useful to apply the same XML declarations throughout a site using metal.  The current syntax is non-obvious and perhaps problematic, but workable.  Some other syntax might be better, but

Re: [Repoze-dev] [issue139] Chameleon - can't create xml and doctype declarations from macro

2010-03-04 Thread Malthe Borch
On 4 March 2010 22:02, Kevin Kalupson b...@bugs.repoze.org wrote: I wouldn't expect the the xml headers in a macro template to be applied to the page template being rendered.  It makes no sense to me that an element not contained within a macro definition would be applied to the page calling

Re: [Repoze-dev] [issue139] Chameleon - can't create xml and doctype declarations from macro

2010-03-04 Thread Malthe Borch
On 4 March 2010 22:45, Kevin J. Kalupson z...@kevinkal.com wrote: In that case, there should be macro explicitly containing the doctype and other wanted headers. Yes, but that's unfortunately impossible. I don't think it's a syntax issue, I think it's a behavioral issue.  I think the 1.1

Re: [Repoze-dev] Chameleon 1.1 and z3c.pt problems

2010-03-01 Thread Malthe Borch
On 27 February 2010 12:10, Uli Fouquet u...@gnufix.de wrote: While trying to make megrok.chameleon compatible with zopetoolkit and groktoolkit package versions, I noticed that latest z3c.pt (1.1.0) and trunk are not completely compatible with Chameleon = 1.1.0. The tests fail. Do you think

Re: [Repoze-dev] Chameleon Genshi and match templates?

2010-02-12 Thread Malthe Borch
On 12 February 2010 21:03, Iain Duncan iainduncanli...@gmail.com wrote: Been out of the loop for a bit, did Chameleon Genshi get match template support yet? I know Malte mentioned it was a possibility about six months ago or so. Not yet, sadly. \malthe

Re: [Repoze-dev] Chameleon on GAE

2010-02-04 Thread Malthe Borch
On 4 February 2010 13:48, Tim Hoffman zutes...@gmail.com wrote: Do you mean it parses all templates on instance startup.  If so that would be prohibitively expensive if you have a lot of templates. Yes. And startup time (just processing all the zcml, and all the other imports) is

Re: [Repoze-dev] Problem with formencode, or chameleon.zpt ?

2010-02-01 Thread Malthe Borch
On 1 February 2010 18:47, georgehu geo...@gmail.com wrote: It worked without problem with other language such as de. Is it a problem of chameleon.zpt? Try and upgrade to 1.1.1, the post back. The normal process with bugs in Chameleon has been that a failing test is committed, then I'll usually

Re: [Repoze-dev] I18n in BFG

2010-01-29 Thread Malthe Borch
On 29 January 2010 11:51, Hanno Schlichting ha...@hannosch.eu wrote: Ah right. Chameleon has a hard dependency on zope.i18n right now, I forgot. Not working with BFG nor Chameleon in any projects doesn't help to remember these things :) There's no hard dependencies in Chameleon at this time.

Re: [Repoze-dev] [issue103] repoze.bitblt removes doctype

2010-01-27 Thread Malthe Borch
2010/1/27 Brian Sutherland b...@bugs.repoze.org: So in the next week or so, I will try re-implement regular expressions to find and replace the img tags. Given that malthe seems to think it's a reasonable idea I'll do it inside repoze.bitblt on a branch first. Please do it on trunk, and do

[Repoze-dev] Chameleon on GAE

2010-01-26 Thread Malthe Borch
Deep in the mountains of Austria, during a snow storm, Chameleon became compatible with Google App Engine. ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev

Re: [Repoze-dev] Chameleon on GAE

2010-01-26 Thread Malthe Borch
2010/1/26 Tim Hoffman zutes...@gmail.com: So whats the secret , pre-compile everything ? Same procedure as last year, except we now use the compilation hoops from Genshi which makes it work, plus some rewrites of our code transformation logic. \malthe

Re: [Repoze-dev] Licensing of sourcecodegen and Chameleon

2010-01-12 Thread Malthe Borch
2010/1/12 Chris McDonough chr...@plope.com: But ethically this is Malthe's code, and the code itself has no license text in it.  On chameleon.repoze.org he states Chameleon is covered by the BSD License.  So I'll ask him to clarify which BSD license he means. BSD, as-is, dont-care. As for

Re: [Repoze-dev] python 2.5 support?

2009-12-15 Thread Malthe Borch
2009/12/15 Diez B. Roggisch diez.roggi...@ableton.com: I guess the question has been asked before, and I'm aware that the state of python 2.5 support is ultimately a zope-issue. Python 2.5 is supported since two years. We commonly use Python 2.6 though. \malthe

Re: [Repoze-dev] Error with ZPT

2009-12-11 Thread Malthe Borch
2009/12/10 george hu geo...@gmail.com: I have a submit button with value in Chinese string, some thing like:  input type=submit name=form.submitted value=提交 / This has been fixed (now) in r7593. Please confirm on your end. Thanks, \malthe ___

Re: [Repoze-dev] new site based on repoze.bfg

2009-12-01 Thread Malthe Borch
2009/12/1 Martin Aspeli optilude+li...@gmail.com: Lest I offended anybody, I would like to insert an additional smiley at the end of that last sentence, like so:  ;-) I think there was no offense, but it is only fair to mention that the British are very much at war right now, displaying a

Re: [Repoze-dev] Question about chameleon.zpt

2009-12-01 Thread Malthe Borch
2009/11/27 george hu geo...@gmail.com: I'm trying to use zpt to render a nested list and I found an example in the mail list of zope, Try this: http://pastie.org/722303 The problem you had was that the macro will be defined only after the tal:repeat operator; you need to split these up. In

Re: [Repoze-dev] Question about chameleon.zpt

2009-11-27 Thread Malthe Borch
2009/11/27 george hu geo...@gmail.com: does any body know what is the problem here? I would suggest that you first use the ``CHAMELEON_CACHE=1`` and ``CHAMELEON_DEBUG=1`` environment flags to be able to inspect and step-debug through the template code. Ideally you would be able to step-debug

Re: [Repoze-dev] Possible accept view-predicate enhancement?

2009-11-25 Thread Malthe Borch
2009/11/25 Alberto Valverde albe...@toscat.net: Everything works fine when I request the application/json and application/json+xconfig mimetypes with a xhr since I can control the Accept header, however, when a browser makes a normal request the result is unpredictable (in practice) since '*/*

Re: [Repoze-dev] mailing list split?

2009-11-22 Thread Malthe Borch
2009/11/23 Iain Duncan iaindun...@telus.net: Hey folks, just floating the idea of splitting the issue tracker mailouts on to their own mailing list? In my experience on this and other lists, it's a lot more pleasant to read the mailing list without having to scroll through the issue tracking

Re: [Repoze-dev] object graph traversal question

2009-11-12 Thread Malthe Borch
2009/11/12 F. Oliver Gathmann gathm...@cenix-bioscience.com: I guess I'm asking if there is a standard, bfg-approved way of avoiding artificial container model classes - or did I just not get it yet?! You can use ``*subpath`` (or any other name of your choice) to retrieve this match as-is,

Re: [Repoze-dev] repoze.bitblt trims leading slash when transforming HTML

2009-11-03 Thread Malthe Borch
2009/11/4 Damien Baty damien.b...@gmail.com: For the record, this issue has been fixed today in r6960. Great! I wrote a few months ago (08/06/09): Sorry, I have that e-mail starred since June. I guess I can unstar it now :) \malthe ___ Repoze-dev

[Repoze-dev] Package naming

2009-11-02 Thread Malthe Borch
Perhaps packages which provide middleware functionality should be named ``wsgi.*``, e.g. ``wsgi.bitblt`` or ``wsgi.who`` and we'd opt similar namespaces for packages that belong to other realms. I'm not sure this ``repoze.*`` notion is very healthy in terms of getting traction outside the

Re: [Repoze-dev] Package naming

2009-11-02 Thread Malthe Borch
2009/11/2 Martin Aspeli optilude+li...@gmail.com: I think it's better to use top-level namespaces to indicate ownership, if nothing else to avoid the chance of things clashing. For the repoze project to claim the wsgi.* namespace seems both a bit presumteuous and clash-prone. It does not a

[Repoze-dev] Chameleon repackaging

2009-11-01 Thread Malthe Borch
I've repackaged ``chameleon.core`` and ``chameleon.zpt`` into one package, ``Chameleon``. Repository: http://svn.repoze.org/chameleon/trunk/ Note that this egg does not have a hard dependency on the ZCA libraries, or ``zope.i18n``. The first release has been given the version 1.0. During

Re: [Repoze-dev] Using ZPT Macros in repoze.bfg

2009-10-31 Thread Malthe Borch
2009/10/31 Michael Mulich mr...@psu.edu: I was using the get_template approach in my application to gain access to a macros templates prior to looking at repoze.bfg.skins.  Using a view that returns a dictionary and a renderer that points to a page template (.pt file) that uses the skin

Re: [Repoze-dev] Predicates on routes vs views

2009-10-23 Thread Malthe Borch
2009/10/22 Chris McDonough chr...@plope.com: Do we just need to change the path matching syntax instead to get your *.html case to work?  Is there another case for predicates? I think that in general, predicates make sense without the view on routes. Is there anything in the way of letting them

[Repoze-dev] Predicates on routes vs views

2009-10-22 Thread Malthe Borch
Currently the predicates pertain only to views, regardless of whether they're declared using a route or a view directive (or using the ``bfg_view`` decorator). I would expect that if you declare a predicate on the route, that the route would only be used if that predicate matches. Instead, the

Re: [Repoze-dev] Predicates on routes vs views

2009-10-22 Thread Malthe Borch
2009/10/22 Tres Seaver tsea...@palladion.com: The view predicates are there to allow selecting a particular view among several registered for the route or context:  e.g., to dispatch to different views for GET versus POST for the same route / context and view name. It makes perfect sense with

[Repoze-dev] Vaporware: repoze.esi

2009-10-21 Thread Malthe Borch
For essentially static content or other cacheable content, edge-side includes are an attractive way to provide personalized o-wrap (e.g. Hello, %{your_name}) on high-volume sites. This is a proposal for a middleware which makes it easy. The setup is a WSGI-application which returns cacheable HTML

Re: [Repoze-dev] match templates in chameleon.genshi?

2009-10-04 Thread Malthe Borch
2009/10/3 Iain Duncan iaindun...@telus.net: Hey folks ( or rather Malte! ), wondering whether there are plans to include full match template support in chameleon.genshi? Is such a thing possible while still retaining speed? It is possible; I've previously outlined an idea for an

Re: [Repoze-dev] chameleon.genshi with expressions inside non-XHTML attributes

2009-07-17 Thread Malthe Borch
Alberto Valverde wrote: Attached is a patch with a doctest showing the error. Applied and fixed in r5971. Thanks! \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev

Re: [Repoze-dev] chameleon.genshi with expressions inside non-XHTML attributes

2009-07-11 Thread Malthe Borch
2009/7/11 Wichert Akkerman wich...@wiggy.net: This looks like a bug. Genshi syntax is pretty explicit about this having to work; it is an integral part of dynamic XIncludes for example. Definitely. \malthe ___ Repoze-dev mailing list

Re: [Repoze-dev] how to extend basic User, Group, Permission model?

2009-06-25 Thread Malthe Borch
2009/6/25 Cezary Biele cezary.bi...@gmail.com: i'd be grateful for any suggestions how this should be achieved the right way using repoze. The default supplied security policy consults the ``__acl__`` attribute; you could make this attribute dynamic (descriptor) and grant permissions based on

Re: [Repoze-dev] bfg- Routes...

2009-06-25 Thread Malthe Borch
2009/6/25 Iain Duncan iaindun...@telus.net: For me personally (admittedly a totally new user to zope/repoze) it's a negative to have bfg moving to share fewer components with Pylons, as one of the main attractions to me of bfg is it's complementary nature to pylons. And conversely, one of the

Re: [Repoze-dev] how to extend basic User, Group, Permission model?

2009-06-25 Thread Malthe Borch
2009/6/25 Cezary Biele cezary.bi...@gmail.com: Thanks for your reply! could you please point me to some documentation? Try looking here: http://docs.repoze.org/bfg/narr/security.html#assigning-acls-to-your-model-objects \malthe ___ Repoze-dev mailing

Re: [Repoze-dev] [Repoze-checkins] r5511 - chameleon.core/trunk/src/chameleon/core

2009-06-23 Thread Malthe Borch
2009/6/23 Hanno Schlichting ha...@hannosch.eu: What about tuples, lists, ... ? It's not in the specification I think; only strings and numbers (not even long or complex number). This looks like we want to check for builtin-type of some sort. The correct ways of checking here are all probably

Re: [Repoze-dev] Is it possible to integrate repoze.plone and Pylons in one WSGI application?

2009-06-18 Thread Malthe Borch
2009/6/18 Edwin Chu edwinche...@gmail.com: Is it possible to add repoze.plone to Pylons's WSGI pipeline so that they can be ran in the same process? I googled a while but nothing useful was found. This is fairly uncharted territory, but it should be possible in the case of Pylons (which

Re: [Repoze-dev] BFG 0.9.1 / chameleon: render() takes exactly 1 non-keyword argument

2009-06-10 Thread Malthe Borch
2009/6/9 Chris Shenton ch...@shenton.org: I found it broke for me with .core at 1.0b33 and b34. Cache invalidation as fixed in 1.0b35. \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev

Re: [Repoze-dev] repoze.curry

2009-06-03 Thread Malthe Borch
2009/6/3 Chris Rossi ch...@archimedeanco.com: Just read over the repoze.curry docs--looks really cool! Thanks :-) I was glad to see at the end that you had a static decorator on the to-do list.  I had thought of that while reading your docs and was going to suggest it anyway.  I was

[Repoze-dev] Job vacancy

2009-05-26 Thread Malthe Borch
For those in the need of a getaway, there's an interesting opening in the unlikely place of Nairobi, Kenya: http://tinyurl.com/oaa8zu. It's zope 3 (are we allowed to say that?), wsgi, rdb and all that jazz. \malthe ___ Repoze-dev mailing list

Re: [Repoze-dev] security changes...

2009-05-25 Thread Malthe Borch
2009/5/25 Chris McDonough chr...@plope.com: So to the end of breaking them apart, I just wrote up a bit of science fiction in code form.  Could you take a look at the below and let me know what you think? It's very clear. In terms of style, for interfaces that represent would-be adapters,

[Repoze-dev] [chameleon] magic?

2009-05-15 Thread Malthe Borch
Atm there's a little known piece of AST magic in Chameleon (affecting all implementations): it makes attribute-access (__getattr__) fall back to dictionary acces (__getitem__). So that's magic; it was invented in the very early stages of the compiler and never really evaluated upon––I've later

Re: [Repoze-dev] JavaScript Hash for Login

2009-05-12 Thread Malthe Borch
2009/5/12 Paul Johnston p...@pajhome.org.uk: I am going to have a go at adding a new authentication method to repoze.who. It's like the standard forms authentication, but uses JavaScript hashing to protect the password as it is transmitted. Excellent; there's been talking on this list

Re: [Repoze-dev] [Repoze-checkins] r4659 - repoze.zope2/trunk/repoze/zope2

2009-05-12 Thread Malthe Borch
2009/5/12 Tres Seaver tsea...@palladion.com: The server side wouldn't know that:  the presence of such a field in the request is completely independent of any form (e.g., cookies passed long after logging in). I understand the issue, but shouldn't the remedy be to avoid ever displaying request

Re: [Repoze-dev] repoze.zope2 - what's up on trunk

2009-05-12 Thread Malthe Borch
2009/5/12 Chris McDonough chr...@plope.com: If we ever do release an 80%-compatible publisher replacement, we should call it something other than repoze.zope2. I doubt if we're really talking 80% though; if as Hanno suggests, it'll run CMF, Plone and what other popular Zope 2 apps/libraries,

Re: [Repoze-dev] repoze.zope2 - what's up on trunk

2009-05-12 Thread Malthe Borch
2009/5/12 Andrew Sawyers and...@sawdog.com: Just and FYI from a (large) consumer of the repoze.zope2 package This kind of change causes expensive test iterations.  We're currently going through one now...as a result of choosing to move over to repoze.zope2 and friends.  We would like to

[Repoze-dev] Changes to Chameleon compilation system

2009-05-09 Thread Malthe Borch
As a general improvement (in terms of clarity) and as part of the efforts of getting Chameleon working on GAE, I've begun reworking the compilation stage. If not explicitly disabled (using ``CHAMELEON_CACHE=0``), template files (ending in .pt) will be compiled with the result written to a

Re: [Repoze-dev] Changes to Chameleon compilation system

2009-05-09 Thread Malthe Borch
2009/5/9 Martin Aspeli optilude+li...@gmail.com: We can't go straight to .pyc? Won't GAE execute .pyc files? Who knows. By the way, can someone confirm if the GAE supports the ``execfile`` built-in? It doesn't seem to provide the ``imp`` module which we currently use to load and compile template

Re: [Repoze-dev] Changes to Chameleon compilation system

2009-05-09 Thread Malthe Borch
2009/5/9 Hanno Schlichting hanno...@hannosch.eu: Do we really need to be able to switch this mode via CHAMELEON_STATIC? I'd be tempted to make the static mode the default and not have it configurable. The whole compilation process is already quite complicated and I wouldn't want to increase

Re: [Repoze-dev] repoze grok comparison

2009-05-07 Thread Malthe Borch
Previously Martin Aspeli wrote: You're sure about that? I find it easier to write a new grokker (whether for a decorator or a more generic class grokker that looks for a base class) than a new ZCML directive (and I've done plenty of both). Ideally a grokker and a ZCML directive handler would

Re: [Repoze-dev] repoze grok comparison

2009-05-05 Thread Malthe Borch
2009/5/4 Hanno Schlichting hanno...@hannosch.eu: Our gut feeling told us to either stick with a very-much known beast like Zope 2.12 or go for repoze.bfg. Grok or the Zope Toolkit didn't strike us as particular interesting with any of its offerings. I do have a feeling that we might miss out

Re: [Repoze-dev] Separate 'compile' and 'execute' steps in Chameleon [was: Re: repoze.bfg trunk C-free]

2009-05-04 Thread Malthe Borch
2009/5/4 Carlos de la Guardia carlos.delaguar...@gmail.com: If Malthe or anyone else has a good idea about how to do this and will give me some pointers, I'm willing to use my limited abilities to make this work. Otherwise, I might try to bring in old zpt. It can be done, but it requires the

Re: [Repoze-dev] repoze.bfg trunk C-free

2009-05-03 Thread Malthe Borch
2009/5/2 Chris McDonough chr...@plope.com: Tim Hoffman has been trying to get it going on GAE, and I think the trunk mostly works except for the chameleon.zpt bits (there are apparently no ast or compiler modules on GAE). Which is part of the reason why GAE is immature as a platform; it

Re: [Repoze-dev] Genshi match templates without ``lxml``

2009-04-29 Thread Malthe Borch
2009/4/28 Paul Everitt p...@agendaless.com: I wonder, in light of our #repoze discussions about theming, what you think this would mean if the stuff below landed? I am not sure; maybe we need an account from someone actively using Genshi match-templates to enlighten us as to how useful the idea

Re: [Repoze-dev] repoze.plugin documentation

2009-04-29 Thread Malthe Borch
2009/4/29 Chris McDonough chr...@plope.com: When you do need it, the multiplexing is awful handy (e.g. when trying to look up a view based on a context type and a request type). Except there's always this situation: View 1) for=IDocument IRequest View 2) for=Interface IPostRequest

Re: [Repoze-dev] repoze.plugin documentation

2009-04-29 Thread Malthe Borch
2009/4/29 Chris McDonough chr...@plope.com: That seems completely broken to me.  It also doesn't match my (limited) experience but I've never fought with it hard enough to know. That should have read: adaptation is like an alphabet: ABZ ABC ZBC The real problem with doing the more clever

Re: [Repoze-dev] repoze.plugin documentation

2009-04-28 Thread Malthe Borch
2009/4/28 Chris Rossi ch...@archimedeanco.com: ``zope.component.getAllUtilitiesFor`` does that. Might be called ``getAllUtilitiesRegisteredFor``, although there's another variant, too, ``getUtilitiesFor``. \malthe ___ Repoze-dev mailing list

[Repoze-dev] Genshi match templates without ``lxml``

2009-04-28 Thread Malthe Borch
Adressing the Repoze-list here, since Chameleon is currently kept in this repository. For those not in the know (certainly before I read the documentation[1], I was one of them), Genshi has a feature called match templates which lets you first render a template, then apply a second template to

Re: [Repoze-dev] removing the lxml dependency from bfg

2009-04-27 Thread Malthe Borch
2009/4/27 Chris McDonough chr...@plope.com: chameleon.genshi still depends on lxml.  Currently BFG has c.genshi support, but when we move to the new chameleon version, we'll need to package chameleon.genshi support outside bfg itself in an add-on package (which will still depend on lxml).  

Re: [Repoze-dev] bfg.repoze.org site needs testing/help

2009-04-21 Thread Malthe Borch
2009/4/20 Chris McDonough chr...@plope.com: Thanks to Carlos de la Guardia, repoze.bfg now has its own web presence at http://bfg.repoze.org .  The site is basically just a way to browse and search BFG documentation and user-supplied content and to get an account so you can add Trac issues

  1   2   >