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
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
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
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
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
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
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
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
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
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
/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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
(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
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
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
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
= 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
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
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
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
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
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
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.
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
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?
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
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
44 matches
Mail list logo