Templess 0.2 released

2006-10-07 Thread Johnny deBris
Hi!

I wanted to let you guys know that I've just released version 0.2 of my
'Templess' library.

Templess is an extremely simple XML (attribute) based XML templating
system. Since it doesn't allow any logic inside the template, it's
relatively friendly to programmers: XML templating with Templess quite
resembles string interpolation, except that the dictionaries can contain
list values (for repeating items) and XML nodes and such.

Of course this isn't always the easiest way to deal with certain things,
since even simple view-related logic has to be done in code (think 'odd'
and 'even' table rows), but if you're a purist, don't trust your
template designers to even touch code, or just hate having to fiddle
about with restricted Python or domain-specific languages in your
templates, Templess may suit your needs...

The library is released under a BSD-style license.

Most important changes since 0.1:

  * major cleanups and bugfixes
  * added 'not' directive
  * removed 'lxml' dependency in favour of a simple SAX-like solution(1)
  * speed improvements and more predictable behaviour (both related to
the previous point)

Downloads can be found here:

http://johnnydebris.net/templess.txt

or direct link to 0.2:

http://johnnydebris.net/.files/templess-0.2.tar.gz

For more information, see http://templess.johnnydebris.net/, or send me
an email or whatnot...

Cheers,

Guido Wesdorp

(1) Sorry, lxml guys... It's a great lib, but has rather heavy
dependencies (libxml2, libxslt, pyrex)...
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations.html


Re: How can I call a python method from the XML-RPC client in Java?

2006-04-21 Thread Johnny deBris
[EMAIL PROTECTED] wrote:
 Hi all,
 I have created a XML-RPC model (with server and client) written in
 Java.
 I want to call the methods in another XML-RPC model written in
 Python.
 I know that in Java, I can use like
 xmlrpc_client.excute(handler_name.method, param) to call the
 methods in my xml-rpc server written in java.
But how can I call the methods in Python? I cannot creat a handler
 in my Python XML-RPC server.
 
Not sure what you mean by 'creating a handler in your Python RPC
server', but if you just want to use the Python XMLRPC library to make a
call to an XMLRPC server, there's an example in the documentation:

http://docs.python.org/lib/xmlrpc-client-example.html

Hope that helps.

Cheers,

Guido
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: py.test munging strings in asserts?

2006-04-21 Thread Johnny deBris
Timothy Grant wrote:
 
 granted the left side of that equality could be messed up due to
 create_output() NOT doing the right thing. But the right side is
 simply the contents of the variable text so WHY is the first part of
 the path being substituted with ...?
 
Some grepping on '...' revealed that there's some string munging going
on in py/code/safe_repr.py, In py/test/terminal/terminal.py, in
TerminalSession, there's a method 'repr_locals' that uses it, I guess
you have to override that or something if you want to change this
behaviour...

Cheers,

Guido Wesdorp
-- 
http://mail.python.org/mailman/listinfo/python-list