XML schema for ZCML?

2010-12-27 Thread JohnWShipman
Has anyone developed a schema for ZCML? I would like to use an automatic XML validator to check my ZCML file for validity. I have written a draft schema in Relax NG for ZCML, based on the reference material in the Pyramid 1.0a8 documentation. It validates all the examples given in the ldquo

Re: xml in textarea

2009-08-20 Thread Jorge Vargas
On Tue, Aug 18, 2009 at 4:29 PM, Etiennepub...@emarache.net wrote: Hi, in my application copied from SimpleSite of Pylonsbook, I wish use MathML code in the contens of pages. To do so, I added response.content_type='application/xhtml+xml' to the __before__ methode of  the class

Re: xml in textarea

2009-08-20 Thread Etienne
On 20 août, 09:10, Jorge Vargas jorge.var...@gmail.com wrote: the basic procedure will be def process(self,xml) if is_valid_xml(xml):     create obj and save else:     flash('an error has occured')     redirect('/same page') of course it gets a little more complicated if you want

xml in textarea

2009-08-18 Thread Etienne
Hi, in my application copied from SimpleSite of Pylonsbook, I wish use MathML code in the contens of pages. To do so, I added response.content_type='application/xhtml+xml' to the __before__ methode of the class PageController in the controller page.py. How can I proceed to prevent the new

Re: XML

2008-04-21 Thread Shelezyaka
Or using Pylons webhelpers function in template like this $ {Markup(c.xml)} On Apr 16, 9:51 am, Alagu Madhu [EMAIL PROTECTED] wrote: Thank you very much everybody. ${c.xml | n} and from webhelpers.html import literal def xml(self): c.xml = literal() working fine. On Apr

Re: XML

2008-04-21 Thread Mike Orr
By the way, there's a stub section in the Pylons book for XML databases. Among those who use XML Python libraries, which would you most recommend, and which would you disrecommend? (PS. The database chapter and two other chapters -- testing and YUI -- are being reviewed now, and should

Re: XML

2008-04-21 Thread Alagu Madhu
thanks On Apr 21, 7:31 pm, Mike Orr [EMAIL PROTECTED] wrote: By the way, there's a stub section in the Pylons book for XML databases.  Among those who use XML Python libraries, which would you most recommend, and which would you disrecommend? (PS. The database chapter and two other

XML

2008-04-15 Thread Alagu Madhu
Hi, I am using pylons 0.9.7beta4) and mako. def xml(self): c.xml = ... response.headers['Content-Type'] = 'application/xml' return render('/xml.mak') xml.mak: ?xml version=1.0 encoding=utf-8 ? customer id=customer ${c.xml} /customer The XML file appear ... customer id

Re: XML

2008-04-15 Thread Garland, Ken R
Are you wanting to display the XML raw like this: ${c.xml | x} On Tue, Apr 15, 2008 at 9:29 AM, Alagu Madhu [EMAIL PROTECTED] wrote: Hi, I am using pylons 0.9.7beta4) and mako. def xml(self): c.xml = ... response.headers['Content-Type'] = 'application/xml' return

Re: XML

2008-04-15 Thread Alagu Madhu
Page Source ?xml version=1.0 encoding=utf-8 ? customer id=customer lt;kk id=quot;1012quot; name=quot;Pylons 12quot;/gt;lt;kk id=quot;1013quot; name=quot;Pylons 13quot;/gt;lt;kk id=quot; 1014quot; name=quot;Pylons 14quot;/gt;lt;kk id=quot;1015quot; name=quot;Pylons 15quot;/gt;lt;kk id=quot

Re: XML

2008-04-15 Thread Garland, Ken R
/kk id=1019 name=Pylons 19/kkid=1020 name=Pylons 20/kk id=1021 name=Pylons 21//customer ${c.xml | x} gives a page with the xml, but source like this: lt;customer id=#34;customer#34;gt;lt;kk id=#34;1012#34; name=#34;Pylons 12#34;/gt;lt;kk id=#34;1013#34; name=#34;Pylons 13#34;/gt;lt;kkid=#34;1014

Re: XML

2008-04-15 Thread Ben Bangert
On Apr 15, 2008, at 6:29 AM, Alagu Madhu wrote: ?xml version=1.0 encoding=utf-8 ? customer id=customer ${c.xml} /customer Pylons 0.9.7 has HTML auto-escaping of variables. If you do not want a variable escaped, you can turn off the filter like so: ${c.xml | n} Or, you can wrap your

Re: XML

2008-04-15 Thread Garland, Ken R
this to be aware of? On Tue, Apr 15, 2008 at 12:13 PM, Ben Bangert [EMAIL PROTECTED] wrote: On Apr 15, 2008, at 6:29 AM, Alagu Madhu wrote: ?xml version=1.0 encoding=utf-8 ? customer id=customer ${c.xml} /customer Pylons 0.9.7 has HTML auto-escaping of variables. If you do

Re: XML

2008-04-15 Thread Mike Orr
On Tue, Apr 15, 2008 at 9:22 AM, Garland, Ken R [EMAIL PROTECTED] wrote: So that replaces the HTML escaping done previously in Mako: http://www.makotemplates.org/docs/syntax.html#syntax_expression_expression I must have missed the 'n' switch after looking over this doc:

Re: XML

2008-04-15 Thread Alagu Madhu
Thank you very much everybody. ${c.xml | n} and from webhelpers.html import literal def xml(self): c.xml = literal() working fine. On Apr 15, 9:15 pm, Mike Orr [EMAIL PROTECTED] wrote: On Tue, Apr 15, 2008 at 9:22 AM, Garland, Ken R [EMAIL PROTECTED] wrote:  So

Re: xml-rpc, authentication and sessions

2007-11-05 Thread Philip Jenvey
On Oct 31, 2007, at 7:37 AM, oscar tackstrom wrote: Hi, I'm developing a combined chat-bot/question answering system and plan to use xml-rpc with pylons to serve web clients. Since other parts of the project are already implemented in pylons (administration and database connections), I

xml-rpc, authentication and sessions

2007-10-31 Thread oscar tackstrom
Hi, I'm developing a combined chat-bot/question answering system and plan to use xml-rpc with pylons to serve web clients. Since other parts of the project are already implemented in pylons (administration and database connections), I would rather not switch to Twisted for this. The server

XML-RPC

2007-07-19 Thread Carlo Sogono
Is there a way to configure Pylons controllers to handle XML-RPC requests? Thanks in advance, Carlo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons

Re: XML-RPC

2007-07-19 Thread Philip Jenvey
On Jul 19, 2007, at 9:40 PM, Carlo Sogono wrote: Is there a way to configure Pylons controllers to handle XML-RPC requests? Pylons includes an XMLRPCController that you can subclass Check its docstrings for some docs: http://pylonshq.com/docs/class

Re: XML-RPC

2007-07-19 Thread Carlo Sogono
Philip Jenvey wrote: On Jul 19, 2007, at 9:40 PM, Carlo Sogono wrote: Is there a way to configure Pylons controllers to handle XML-RPC requests? Pylons includes an XMLRPCController that you can subclass Thanks. Just what I was looking for! Check its docstrings for some docs

Returning XML with Myghty

2007-03-29 Thread Elias
Does anyone know if it's possible to return an xml template with myghty? I have this template ?xml version=1.0 encoding=ISO-8859-1? message envelope type%c.type%/type msg%c.mesg%/msg /envelope /message I'm calling this in my controller return Response(render('/messages

Re: Returning XML with Myghty

2007-03-29 Thread Deron Meranda
On 3/29/07, Elias [EMAIL PROTECTED] wrote: Does anyone know if it's possible to return an xml template with myghty? Yes, I do it all the time. In fact you can return just about any type of text-based file even if it's nothing like XML. [You can even output binary data, but that can get

Re: Returning XML with Myghty

2007-03-29 Thread Elias
Thanks a lot that totally makes sense. On Mar 29, 2:41 pm, Deron Meranda [EMAIL PROTECTED] wrote: On 3/29/07, Elias [EMAIL PROTECTED] wrote: Does anyone know if it's possible to return an xml template with myghty? Yes, I do it all the time. In fact you can return just about any type

Re: Returning XML with Myghty

2007-03-29 Thread Pradeep Kishore Gowda
You might also have to set the header content-Type to xml. no? On 3/30/07, Elias [EMAIL PROTECTED] wrote: Thanks a lot that totally makes sense. On Mar 29, 2:41 pm, Deron Meranda [EMAIL PROTECTED] wrote: On 3/29/07, Elias [EMAIL PROTECTED] wrote: Does anyone know if it's possible

how do you process an xml template in pylons?

2007-03-18 Thread sqad
I have a myghty template with an embedded an XML format structure. I want that structure to be returned via the controller in the Response obj. I am trying this: e.g. view Controller(self): return Response(/myxmlfile.myt, mimetype='application/xml') myxmlfile.myt: ?xml version=1.0? doc

Re: how do you process an xml template in pylons?

2007-03-18 Thread Jose Galvez
Do you want the xml to show in the webpage as the actual text? ie do you want to see the xml tree? have you tried to use a pre tag rather then the div tag? Jose sqad wrote: I have a myghty template with an embedded an XML format structure. I want that structure to be returned via

Re: pylons, genshi and xml

2007-02-17 Thread Ben Bangert
On Feb 16, 2007, at 9:05 PM, Cliff Wells wrote: Actually, the TG spec is completely superfluous. You can use / rather than . and it will work just fine. I just removed support for dotted path notation from Breve as it causes problems (e.g. paths with dots in them) and provides nothing

Re: pylons, genshi and xml

2007-02-17 Thread Bob Ippolito
On 2/17/07, Ben Bangert [EMAIL PROTECTED] wrote: On Feb 16, 2007, at 9:05 PM, Cliff Wells wrote: Actually, the TG spec is completely superfluous. You can use / rather than . and it will work just fine. I just removed support for dotted path notation from Breve as it causes problems

Re: pylons, genshi and xml

2007-02-16 Thread Cliff Wells
On Tue, 2007-02-13 at 17:00 -0800, Ben Bangert wrote: On Feb 13, 2007, at 2:11 PM, Matt Good wrote: Yes, this was based on the Kid engine provided by TurboGears which uses module-style names to load templates. Last I checked Pylons also expected all template engines besides Myghty and

Re: pylons, genshi and xml

2007-02-14 Thread Shannon -jj Behrens
(template_name, **namespace): content = pylons.buffet.render( template_name=template_name, fragment=False, namespace=namespace, format='xml', ) return Response(content, mimetype='application/atom+xml') This has been fixed in r1859. You can

Re: pylons, genshi and xml

2007-02-14 Thread Ben Bangert
that it should be switched to a dict. Ie: render_response('/some/template',dict(arg='val'), format='xml') Or if you want to do it all with keyword args: render_response('/some/template', namespace=dict(arg='val'), format='xml') As none of the Response init args conflict with the Buffet

Re: pylons, genshi and xml

2007-02-14 Thread Shannon -jj Behrens
should a full set of keyword args be passed indicating that it should be switched to a dict. Ie: render_response('/some/template',dict(arg='val'), format='xml') Or if you want to do it all with keyword args: render_response('/some/template', namespace=dict(arg='val'), format='xml') As none

Re: pylons, genshi and xml

2007-02-14 Thread Bob Ippolito
it'd then use as the namespace, and throw a deprecation warning for 0.9.5 should a full set of keyword args be passed indicating that it should be switched to a dict. Ie: render_response('/some/template',dict(arg='val'), format='xml') Or if you want to do it all with keyword args

Re: pylons, genshi and xml

2007-02-13 Thread Ben Bangert
= pylons.buffet.render( template_name=template_name, fragment=False, namespace=namespace, format='xml', ) return Response(content, mimetype='application/atom+xml') This has been fixed in r1859. You can now do: return render_response('/some/template.xml', format='xml

pylons, genshi and xml

2007-02-11 Thread Matthew Dennis
represent different formats of the same data, etc, etc, etc... This leads to one of my current problems. I want to use a genshi template to send back XML, not HTML. Clearly genshi supports this, but I can't just put a someTemplate.xml file in the templates directory because render_response

Re: XML HTTP Request - redirection - Help needed

2006-10-27 Thread Sergey Lipnevich
with. Create a specialized action in your controller instead and give your request the data it needs without redirecting. HTH, Sergey. On 10/27/06, mmohen [EMAIL PROTECTED] wrote: i am facing a problem with xml http request. for example, in a login page, upon submission, page re-direction is ok

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Matt Good
Sergey Lipnevich wrote: One thing that bothers me in helpers object and in formbuild too is that it appears impossible to use begin_form/end_form and similar helpers with templating engines that enforce XML-iness, such as Kid and Genshi (I'm using the latter). So, I had to take a look at what

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Philip Jenvey
On Sep 25, 2006, at 7:38 AM, Daniel Lyons wrote: I was going to use Kid templates originally, because they're cleaner in the sense that they generate valid XML, always. Then I discovered that I couldn't use any of the begin_/end_ functions. I decided that maintaining validity

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Ian Bicking
Matt Good wrote: Sergey Lipnevich wrote: One thing that bothers me in helpers object and in formbuild too is that it appears impossible to use begin_form/end_form and similar helpers with templating engines that enforce XML-iness, such as Kid and Genshi (I'm using the latter). So, I had

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Ian Bicking
Philip Jenvey wrote: What's been talked about before a few times is having a WSGI middleware keep an eye on the outgoing X/HTML's validity (only during debug mode). I haven't seen anyone write anything like this yet -- it wouldn't be a lot of work, but useful to many.

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Sergey Lipnevich
On 9/25/06, Ian Bicking [EMAIL PROTECTED] wrote: Incidentally, the webhelpers could also probably be made to return Element instances with a custom __str__, and so they'd be Kid compatible as well. Does Genshi know anything in particular about ElementTree instances? Especially since ET is

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Ian Bicking
Sergey Lipnevich wrote: On 9/25/06, Ian Bicking [EMAIL PROTECTED] wrote: Incidentally, the webhelpers could also probably be made to return Element instances with a custom __str__, and so they'd be Kid compatible as well. Does Genshi know anything in particular about ElementTree instances?

Using start_form/end_form with XML templating engines

2006-09-24 Thread Sergey Lipnevich
Hi, One thing that bothers me in helpers object and in formbuild too is that it appears impossible to use begin_form/end_form and similar helpers with templating engines that enforce XML-iness, such as Kid and Genshi (I'm using the latter). So, I had to take a look at what begin_form/end_form

Pylons + xml-rpc client and server

2006-07-18 Thread Alagu Madhu
Hi, Any Pylons xml-rpc example ? Thanks, Alagu Madhu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe