<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-16265</id>
	<title>Nabble - CherryPy</title>
	<updated>2009-11-25T19:21:55Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/CherryPy-f16265.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CherryPy-f16265.html" />
	<subtitle type="html">&lt;a href=&quot;http://www.cherrypy.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;CherryPy&lt;/a&gt;&amp;nbsp;is a pythonic, object-oriented HTTP framework. CherryPy allows developers to build web applications in much the same way they would build any other object-oriented Python program. This usually results in smaller source code developed in less time.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26523857</id>
	<title>Re: Wizards: solutions</title>
	<published>2009-11-25T19:21:55Z</published>
	<updated>2009-11-25T19:21:55Z</updated>
	<author>
		<name>Yosifov Pavel</name>
	</author>
	<content type="html">On 26 ноя, 00:54, João Pinto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523857&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamego.pi...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; That question is not CP specific :)
&lt;br&gt;&lt;br&gt;Yes and no. For example, some Scheme maps continuations to URLs, so
&lt;br&gt;next step of wizard is only URL, &amp;quot;pointed&amp;quot; to continuation of wizard.
&lt;br&gt;Python has generators and iterators, so it's possible to save
&lt;br&gt;somewhere generator and expose yielded data. CP has several appetizing
&lt;br&gt;things and I supposed something for multi-step exposing...
&lt;br&gt;&lt;br&gt;OK, thanks!
&lt;br&gt;&lt;br&gt;==
&lt;br&gt;cheers,
&lt;br&gt;&amp;nbsp; Yosifov P.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523857&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523857&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wizards%3A-solutions-tp26511104p26523857.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518315</id>
	<title>Re: Wizards: solutions</title>
	<published>2009-11-25T10:54:15Z</published>
	<updated>2009-11-25T10:54:15Z</updated>
	<author>
		<name>João Pinto-5</name>
	</author>
	<content type="html">That question is not CP specific :), the options are:&lt;br&gt;session&lt;br&gt;cookie&lt;br&gt;POST/GET parameters&lt;br&gt;URL scheme&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/25 Yosifov Pavel &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518315&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aquagnu@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;What is the more elegant way to make wizard (page sequence) in CP? I&lt;br&gt;
see only with &amp;quot;step&amp;quot; keeping in a session.&lt;br&gt;
&lt;br&gt;
==&lt;br&gt;
Best regards,&lt;br&gt;
  Yosifov P.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518315&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518315&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;João Pinto&lt;br&gt;IRC: joaopinto @ &lt;a href=&quot;http://irc.freenode.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;irc.freenode.net&lt;/a&gt;&lt;br&gt;Jabber ID: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518315&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamego.pinto@...&lt;/a&gt;&lt;br&gt;
GetDeb Team Leader - &lt;a href=&quot;http://www.getdeb.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.getdeb.net&lt;/a&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;cherrypy-users&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518315&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518315&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wizards%3A-solutions-tp26511104p26518315.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26511104</id>
	<title>Wizards: solutions</title>
	<published>2009-11-25T03:24:41Z</published>
	<updated>2009-11-25T03:24:41Z</updated>
	<author>
		<name>Yosifov Pavel</name>
	</author>
	<content type="html">What is the more elegant way to make wizard (page sequence) in CP? I
&lt;br&gt;see only with &amp;quot;step&amp;quot; keeping in a session.
&lt;br&gt;&lt;br&gt;==
&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; Yosifov P.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511104&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511104&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wizards%3A-solutions-tp26511104p26511104.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26492548</id>
	<title>Re: Custom tool: where is session?</title>
	<published>2009-11-24T01:01:42Z</published>
	<updated>2009-11-24T01:01:42Z</updated>
	<author>
		<name>Yosifov Pavel</name>
	</author>
	<content type="html">Thanks a lot!
&lt;br&gt;&lt;br&gt;==
&lt;br&gt;Cheers,
&lt;br&gt;&amp;nbsp; Yosifov P.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26492548&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26492548&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-tool%3A-where-is-session--tp26480166p26492548.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26491191</id>
	<title>Re: Re: Custom tool: where is session?</title>
	<published>2009-11-23T22:50:06Z</published>
	<updated>2009-11-23T22:50:06Z</updated>
	<author>
		<name>João Pinto-5</name>
	</author>
	<content type="html">&lt;br&gt;Hello Yosifov Pavel,&lt;br&gt;if it works from before_request_body it means the session tool uses the &amp;quot;before_request_body&amp;quot; hook and not the &amp;quot;on_start_resource&amp;quot;. It should be safe.&lt;br&gt;Take a look at &lt;a href=&quot;http://www.cherrypy.org/wiki/RequestObject&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cherrypy.org/wiki/RequestObject&lt;/a&gt; &lt;br&gt;
&lt;br&gt;As far I understood CP uses fixed points, I am not sure I understood your &amp;quot;end-of-work&amp;quot; requirement, if you need to have chain tools you use the priority value.&lt;br&gt;&lt;br&gt;-- &lt;br&gt;João Pinto&lt;br&gt;IRC: joaopinto @ &lt;a href=&quot;http://irc.freenode.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;irc.freenode.net&lt;/a&gt;&lt;br&gt;
Jabber ID: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491191&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamego.pinto@...&lt;/a&gt;&lt;br&gt;GetDeb Team Leader - &lt;a href=&quot;http://www.getdeb.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.getdeb.net&lt;/a&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;cherrypy-users&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491191&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491191&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-tool%3A-where-is-session--tp26480166p26491191.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26490452</id>
	<title>Re: Custom tool: where is session?</title>
	<published>2009-11-23T20:46:27Z</published>
	<updated>2009-11-23T20:46:27Z</updated>
	<author>
		<name>Yosifov Pavel</name>
	</author>
	<content type="html">Hmm. Now I'm trying:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; cherrypy.tools.my_basic_auth = cherrypy.Tool
&lt;br&gt;(&amp;quot;before_request_body&amp;quot;, my_basic_auth, priority=100)
&lt;br&gt;&lt;br&gt;with &amp;quot;before_request_body&amp;quot; and priority 100 to move call AFTER session
&lt;br&gt;and this works. How much is this correct?
&lt;br&gt;&lt;br&gt;But my 2nd question is: does CP have some &amp;quot;listeners/events&amp;quot; subsystem
&lt;br&gt;like Django? Or instead this CP has fixed &amp;quot;code points&amp;quot; like
&lt;br&gt;(&amp;quot;on_start_resource&amp;quot;, &amp;quot;before_request_body&amp;quot;...) and is possible only
&lt;br&gt;to attach own tool to some of these points?
&lt;br&gt;So, no way to wait for end-of-work of &amp;quot;basic_auth&amp;quot; tool?
&lt;br&gt;&lt;br&gt;PS. I'm agree with CP way with &amp;quot;fixed points&amp;quot; - it seems more
&lt;br&gt;efficient
&lt;br&gt;&lt;br&gt;==
&lt;br&gt;Best,
&lt;br&gt;&amp;nbsp; Yosifov P.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26490452&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26490452&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-tool%3A-where-is-session--tp26480166p26490452.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26490096</id>
	<title>Re: Custom tool: where is session?</title>
	<published>2009-11-23T19:47:03Z</published>
	<updated>2009-11-23T19:47:03Z</updated>
	<author>
		<name>Yosifov Pavel</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On 23 ноя, 23:50, João Pinto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26490096&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamego.pi...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Have you checked the tools priority ?
&lt;br&gt;&amp;gt; Your auth tool must have an higher priority to make sure it's called after
&lt;br&gt;&amp;gt; the session tool.
&lt;br&gt;&amp;gt;
&lt;br&gt;I tried to set different priorities in [0..100] -- but get this error
&lt;br&gt;again:
&lt;br&gt;if __name__ == '__main__':
&lt;br&gt;&amp;nbsp; &amp;nbsp; import os.path
&lt;br&gt;&amp;nbsp; &amp;nbsp; thisdir = os.path.dirname(__file__)
&lt;br&gt;&amp;nbsp; &amp;nbsp; cherrypy.tools.my_basic_auth = cherrypy.Tool('on_start_resource',
&lt;br&gt;my_basic_auth, priority=100)
&lt;br&gt;&amp;nbsp; &amp;nbsp; cherrypy.quickstart(root, &amp;quot;/&amp;quot;, config=os.path.join(thisdir,
&lt;br&gt;&amp;quot;site.conf&amp;quot;))
&lt;br&gt;&lt;br&gt;==
&lt;br&gt;Best,
&lt;br&gt;&amp;nbsp; Yosifov P.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26490096&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26490096&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-tool%3A-where-is-session--tp26480166p26490096.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482880</id>
	<title>Re: Re: Custom tool: where is session?</title>
	<published>2009-11-23T09:50:29Z</published>
	<updated>2009-11-23T09:50:29Z</updated>
	<author>
		<name>João Pinto-5</name>
	</author>
	<content type="html">Have you checked the tools priority ?&lt;br&gt;Your auth tool must have an higher priority to make sure it&amp;#39;s called after the session tool.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/23 Yosifov Pavel &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482880&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aquagnu@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;On 23 ноя, 22:40, João Pinto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482880&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamego.pi...@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;

&amp;gt; Hello,&lt;br&gt;
&amp;gt; I believe you need to set the storage related parameters, I am using the&lt;br&gt;
&amp;gt; following:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     cherrypy.config.update({&amp;#39;tools.sessions.on&amp;#39;: True \&lt;br&gt;
&amp;gt;         , &amp;#39;tools.sessions.storage_type&amp;#39;: &amp;quot;file&amp;quot; \&lt;br&gt;
&amp;gt;         , &amp;#39;tools.sessions.storage_path&amp;#39;: &amp;quot;/tmp/cherrypy_sessions_&amp;quot;  +&lt;br&gt;
&amp;gt; app_name \&lt;br&gt;
&amp;gt;         , &amp;#39;tools.sessions.timeout&amp;#39;: 60 \&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     })&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;I have add this.&lt;br&gt;
But I get: the same error.&lt;br&gt;
&lt;br&gt;
So, not &amp;quot;module&amp;quot;, but &amp;quot;_Serving&amp;quot;. May be, is there some way to&lt;br&gt;
&amp;quot;listen&amp;quot; CP&amp;#39;s tools&amp;#39; events, for example when &amp;quot;basic_auth&amp;quot; is done&lt;br&gt;
(logged user)?&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
==&lt;br&gt;
Best,&lt;br&gt;
  Yosifov P.&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482880&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482880&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;João Pinto&lt;br&gt;IRC: joaopinto @ &lt;a href=&quot;http://irc.freenode.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;irc.freenode.net&lt;/a&gt;&lt;br&gt;Jabber ID: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482880&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamego.pinto@...&lt;/a&gt;&lt;br&gt;
GetDeb Team Leader - &lt;a href=&quot;http://www.getdeb.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.getdeb.net&lt;/a&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;cherrypy-users&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482880&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482880&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-tool%3A-where-is-session--tp26480166p26482880.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482616</id>
	<title>Re: Custom tool: where is session?</title>
	<published>2009-11-23T09:34:30Z</published>
	<updated>2009-11-23T09:34:30Z</updated>
	<author>
		<name>Yosifov Pavel</name>
	</author>
	<content type="html">On 23 ноя, 22:40, João Pinto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482616&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamego.pi...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I believe you need to set the storage related parameters, I am using the
&lt;br&gt;&amp;gt; following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     cherrypy.config.update({'tools.sessions.on': True \
&lt;br&gt;&amp;gt;         , 'tools.sessions.storage_type': &amp;quot;file&amp;quot; \
&lt;br&gt;&amp;gt;         , 'tools.sessions.storage_path': &amp;quot;/tmp/cherrypy_sessions_&amp;quot;  +
&lt;br&gt;&amp;gt; app_name \
&lt;br&gt;&amp;gt;         , 'tools.sessions.timeout': 60 \
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     })
&lt;/div&gt;&lt;br&gt;I have add this.
&lt;br&gt;But I get: the same error.
&lt;br&gt;&lt;br&gt;So, not &amp;quot;module&amp;quot;, but &amp;quot;_Serving&amp;quot;. May be, is there some way to
&lt;br&gt;&amp;quot;listen&amp;quot; CP's tools' events, for example when &amp;quot;basic_auth&amp;quot; is done
&lt;br&gt;(logged user)?
&lt;br&gt;&lt;br&gt;==
&lt;br&gt;Best,
&lt;br&gt;&amp;nbsp; Yosifov P.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482616&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482616&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-tool%3A-where-is-session--tp26480166p26482616.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26481603</id>
	<title>Re: Custom tool: where is session?</title>
	<published>2009-11-23T08:40:20Z</published>
	<updated>2009-11-23T08:40:20Z</updated>
	<author>
		<name>João Pinto-5</name>
	</author>
	<content type="html">Hello,&lt;br&gt;I believe you need to set the storage related parameters, I am using the following:&lt;br&gt;&lt;br&gt;    cherrypy.config.update({&amp;#39;tools.sessions.on&amp;#39;: True \&lt;br&gt;        , &amp;#39;tools.sessions.storage_type&amp;#39;: &amp;quot;file&amp;quot; \&lt;br&gt;
        , &amp;#39;tools.sessions.storage_path&amp;#39;: &amp;quot;/tmp/cherrypy_sessions_&amp;quot;  + app_name \&lt;br&gt;        , &amp;#39;tools.sessions.timeout&amp;#39;: 60 \&lt;br&gt;&lt;br&gt;    })&lt;br&gt;&lt;br&gt;Best regards&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/23 Yosifov Pavel &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481603&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aquagnu@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;I use basic_auth. But I need some way to save the additional info&lt;br&gt;
about logged user in session. How to do it? Does exists way to&lt;br&gt;
&amp;quot;listen&amp;quot; successfull authentification with &amp;#39;basic_auth&amp;#39; ? I can&amp;#39;t find&lt;br&gt;
something like this.&lt;br&gt;
So, I try to write own, custom &amp;#39;basic_auth&amp;#39;:&lt;br&gt;
&lt;br&gt;
def my_basic_auth(realm, users, encrypt=None):&lt;br&gt;
    cherrypy.session[&amp;quot;ur&amp;quot;] = None&lt;br&gt;
    if cherrypy.lib.auth.check_auth(users, encrypt, realm):&lt;br&gt;
        # Authentication is successfull&lt;br&gt;
        ... GET ADDITIONAL INFO ABOUT LOGGED USER&lt;br&gt;
(cherrypy.request.login)...&lt;br&gt;
        cherrypy.session[&amp;quot;ur&amp;quot;] = r # AND SAVE TO SESSION&lt;br&gt;
    else:&lt;br&gt;
        # Authentication error/cancel&lt;br&gt;
        cherrypy.request.login = False&lt;br&gt;
        cherrypy.response.headers[&amp;#39;www-authenticate&amp;#39;] =&lt;br&gt;
cherrypy.lib.httpauth.basicAuth(realm)&lt;br&gt;
        raise cherrypy.HTTPError(401, &amp;quot;You are not authorized to&lt;br&gt;
access that resource&amp;quot;)&lt;br&gt;
&lt;br&gt;
I use config:&lt;br&gt;
...&lt;br&gt;
[/]&lt;br&gt;
tools.sessions.on = True&lt;br&gt;
&lt;br&gt;
[/some_page]&lt;br&gt;
tools.my_basic_auth.on = True&lt;br&gt;
tools.my_basic_auth.realm = &amp;quot;us&amp;quot;&lt;br&gt;
tools.my_basic_auth.users = usrdb(&amp;quot;us&amp;quot;)&lt;br&gt;
tools.my_basic_auth.encrypt = encpswd&lt;br&gt;
&lt;br&gt;
But I get error:&lt;br&gt;
...&lt;br&gt;
    cherrypy.session[&amp;quot;ur&amp;quot;] = None&lt;br&gt;
AttributeError: &amp;#39;module&amp;#39; object has no attribute &amp;#39;session&amp;#39;&lt;br&gt;
&lt;br&gt;
Seems like no session when my_basic_auth() is called. Or something&lt;br&gt;
else?&lt;br&gt;
&lt;br&gt;
==&lt;br&gt;
Best,&lt;br&gt;
  Yosifov P.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481603&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481603&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;João Pinto&lt;br&gt;IRC: joaopinto @ &lt;a href=&quot;http://irc.freenode.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;irc.freenode.net&lt;/a&gt;&lt;br&gt;Jabber ID: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481603&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamego.pinto@...&lt;/a&gt;&lt;br&gt;
GetDeb Team Leader - &lt;a href=&quot;http://www.getdeb.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.getdeb.net&lt;/a&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;cherrypy-users&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481603&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481603&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-tool%3A-where-is-session--tp26480166p26481603.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480166</id>
	<title>Custom tool: where is session?</title>
	<published>2009-11-23T07:25:33Z</published>
	<updated>2009-11-23T07:25:33Z</updated>
	<author>
		<name>Yosifov Pavel</name>
	</author>
	<content type="html">I use basic_auth. But I need some way to save the additional info
&lt;br&gt;about logged user in session. How to do it? Does exists way to
&lt;br&gt;&amp;quot;listen&amp;quot; successfull authentification with 'basic_auth' ? I can't find
&lt;br&gt;something like this.
&lt;br&gt;So, I try to write own, custom 'basic_auth':
&lt;br&gt;&lt;br&gt;def my_basic_auth(realm, users, encrypt=None):
&lt;br&gt;&amp;nbsp; &amp;nbsp; cherrypy.session[&amp;quot;ur&amp;quot;] = None
&lt;br&gt;&amp;nbsp; &amp;nbsp; if cherrypy.lib.auth.check_auth(users, encrypt, realm):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Authentication is successfull
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... GET ADDITIONAL INFO ABOUT LOGGED USER
&lt;br&gt;(cherrypy.request.login)...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cherrypy.session[&amp;quot;ur&amp;quot;] = r # AND SAVE TO SESSION
&lt;br&gt;&amp;nbsp; &amp;nbsp; else:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Authentication error/cancel
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cherrypy.request.login = False
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cherrypy.response.headers['www-authenticate'] =
&lt;br&gt;cherrypy.lib.httpauth.basicAuth(realm)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise cherrypy.HTTPError(401, &amp;quot;You are not authorized to
&lt;br&gt;access that resource&amp;quot;)
&lt;br&gt;&lt;br&gt;I use config:
&lt;br&gt;...
&lt;br&gt;[/]
&lt;br&gt;tools.sessions.on = True
&lt;br&gt;&lt;br&gt;[/some_page]
&lt;br&gt;tools.my_basic_auth.on = True
&lt;br&gt;tools.my_basic_auth.realm = &amp;quot;us&amp;quot;
&lt;br&gt;tools.my_basic_auth.users = usrdb(&amp;quot;us&amp;quot;)
&lt;br&gt;tools.my_basic_auth.encrypt = encpswd
&lt;br&gt;&lt;br&gt;But I get error:
&lt;br&gt;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; cherrypy.session[&amp;quot;ur&amp;quot;] = None
&lt;br&gt;AttributeError: 'module' object has no attribute 'session'
&lt;br&gt;&lt;br&gt;Seems like no session when my_basic_auth() is called. Or something
&lt;br&gt;else?
&lt;br&gt;&lt;br&gt;==
&lt;br&gt;Best,
&lt;br&gt;&amp;nbsp; Yosifov P.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480166&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480166&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-tool%3A-where-is-session--tp26480166p26480166.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26405799</id>
	<title>شركتی که هداياي مجاني ميده؟--امتحانش ضرر نداره</title>
	<published>2009-11-18T02:53:19Z</published>
	<updated>2009-11-18T02:53:19Z</updated>
	<author>
		<name>Farsheed Ashouri-2</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div&gt;&lt;div style=&quot;font-family:&amp;#39;bookman old style&amp;#39;, &amp;#39;new york&amp;#39;, times, serif;font-size:14pt&quot;&gt;&lt;div style=&quot;font-family:bookman old style, new york, times, serif;font-size:14pt&quot;&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;
&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-size-adjust:inherit;font-stretch:inherit&quot; valign=&quot;top&quot;&gt;
&lt;blockquote style=&quot;border-left:2px solid rgb(16, 16, 255);padding-left:5px;margin-left:5px&quot;&gt;&lt;br&gt;
&lt;div&gt;&lt;span style=&quot;font-size:16px&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;margin:0px;font-family:arial, sans-serif&quot; valign=&quot;top&quot;&gt;
&lt;p style=&quot;margin:0px;text-align:right;direction:rtl&quot; dir=&quot;rtl&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;سلام . &lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;margin:0px;text-align:right;direction:rtl&quot; dir=&quot;rtl&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;چندروز پيش  از طرف&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;يكي از &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;دوستانم ايميلي  گرفتم راجع به نحوه&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;ی&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;دریافت
 موبایل&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; , &lt;span&gt;&lt;span&gt;mp3 player&lt;/span&gt;&lt;/span&gt; ,&lt;span&gt;&lt;span&gt;HDTV&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;FA&quot;&gt;مجانی&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot; lang=&quot;FA&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;و ... ، که من جدی&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;نگرفتم و فکر کردم –مثل همیشه- سر کاریه و حتی روی لینکش کلیک هم نکردم&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt; &lt;br&gt;
&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;اما
 وقتی&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;این ایمیل رو خوندم دیدم این یک  کار کاملا ً تبلیغاتیه و از اونجا که دوستم نوشته بود &lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;یکی از بچه ها &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt; هدیه ش براش اومده  و ضرری&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;هم نداشت , عضو شدم و ثبت نام کردم&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:12pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;شاید عجیب باشه ولي چون به اين دوست عزيز اعتماد دارم عضو شدم &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;عضويتش هم&lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%&quot;&gt; 5دقیقه &lt;/span&gt;بیشتر طول نمیکشه&lt;span style=&quot;font-weight:bold&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;و اما 1 سوال منطقی:&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;چرا اين شركت هداياي مجاني ميده؟؟&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;اين شرکت در واقع يک شرکت تبليغاتي است كه توسط شرکت هاي بزرگي همچون&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;اپل، نوكيا، سوني اريكسون،
 سامسونگ و ... پشتيباني ميشود&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;در واقع ما برای اونها تبليغ ميکنیم &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;و خرج اين گونه تبليغات بسيار کمتر از&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;تبليغات تلويزيوني است و درتمام دنیا با سرعت زیاد پخش می شه. می دونید که ارزش تبلیغات توی قرن 21 چقدر برای این شرکتهای بزرگ زیاده و
 این هدایا در مقایسه با اثر تبلیغاتیشون , تقریبا بی ارزشن!&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;شما فقط با زير مجموعه گيري مي تونيد  کنسولهاي
 بازي،&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;mp3 player &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;موبايل،&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;و ... دريافت کنيد. عضو گيري هم&lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%&quot;&gt; فقط از طريق &lt;u&gt;ثبت نام تو سايت&lt;/u&gt; صورت ميگيره&lt;/span&gt;.&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;نه پوليه, نه
 گلد کويسته, نه کلاهبرداری!&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt; هيچي نيست فقط تبليغاته.&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt; &lt;b&gt;براي عضوگيري هم فقط بايد لينکشو براي دوستان و آشنايان بفرستيد&lt;/b&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;مثلا براي گرفتن گوشي &lt;/span&gt;&lt;span style=&quot;font-size:16px&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;iphone 16G 3gsآی فون    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;نیاز  به 43 امتياز و&lt;/span&gt;&lt;span style=&quot;font-size:16px&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt; گوشي ان95 نوكيا 37 امتياز و &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt; براي گوشي 6500 نوكيا فقط&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
16 &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;امتياز نياز داريد.بالاترين امتياز هم 45 است كه به نظر ميرسه براي ما&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;جمع كردنش سخت نباشه&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; ..   هم &lt;br&gt;
_&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;پس بیاید همين الان شروع كنيد&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;:&lt;br&gt;
&lt;br&gt;&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;1.ابتدا بايد روی لینک زیر کلیک کنید تا وارد سایت ثبت نام بشین:&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt; &lt;/span&gt;
&lt;/p&gt;&lt;div style=&quot;text-align:right&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;Trebuchet MS&amp;#39;, Arial, sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none; font-size: 12px; color: rgb(73, 84, 91); &quot;&gt;&lt;span style=&quot;font-size: 13px; color: rgb(33, 33, 33); text-decoration: underline; &quot;&gt;&lt;a href=&quot;http://www.xpango.com?ref=92110319&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xpango.com?ref=92110319&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt; 
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;2. درقسمت بالای صفحه , روی گزینه &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;Sign up &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot;&gt; به رنگ سبز یا اگر کمی صبر کنید &lt;b&gt;SIGN up now  &lt;/b&gt;قرمز که می چرخه و ظاهر میشه &lt;span lang=&quot;AR-SA&quot;&gt;کلیک کنید&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;br&gt;&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;3. صفحه ای بازمیشه که در آن باید اطلاعات مربوط به خودتونو وارد کنید:&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;br&gt;:&lt;b&gt;First name&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;نام خود
 را بنويسيد&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt; &lt;br&gt;:&lt;b&gt;Last name&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;نام خانوادگي خود را بنويسيد&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;br&gt;
:&lt;b&gt;Email&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;آدرس ايميل خود را وارد كنيد. (ايميل شما بايد &lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%&quot;&gt;واقعي باشه و ترجیحا یاهو نباشه چون کمی پرترافیکه .اما اگر ایمیل دیگری ندارید , اشکال نداره )&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;:&lt;b&gt;Password&lt;/b&gt;&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt; &lt;span lang=&quot;AR-SA&quot;&gt;براي خودتون یک پسورد انتخاب كنين&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;b&gt; &lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;:&lt;b&gt;Address1&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;آدرس خود را &lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%&quot;&gt;دقيق به انگليسي&lt;/span&gt; بنويسيد&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt; &lt;span lang=&quot;AR-SA&quot;&gt;چون هدیه شمابه این آدرس ارسال میشه&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot;&gt;&lt;span lang=&quot;AR-SA&quot;&gt;&lt;b&gt;IP/Postal code: &lt;/b&gt;کد پستی تون که روی قبض تلفن یا کارت ملی تون هست&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;b&gt;Referral ID&lt;/b&gt;&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt; &lt;span lang=&quot;AR-SA&quot;&gt;:&lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%&quot;&gt;دراين قسمت كدي وجود داره و عددی نوشته شده که به منزله معرفی شما به سایت هست&lt;/span&gt;.لذا &lt;span style=&quot;background:rgb(255, 191, 255) none repeat scroll 0% 0%&quot;&gt;*به آن دست نزنيد&lt;/span&gt;* .در غیر اینصورت دعوتنامه نداريد وثبت نامتون باطل میشه&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;b&gt;Term and Condintion&lt;/b&gt;&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;: جلوی آن يك تيك بزنيد &lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;4.بعد از اتمام این مرحله , تا چند دقيقه بعد به ايميل شما نامه اي ميايد كه در آن 2 لينك وجود دارد&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;/span&gt;&lt;span style=&quot;background:rgb(223, 255, 191) none repeat scroll 0% 0%;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;بر روي لينك اول كليك كنيد تا ثبت نامتون تایید بشه&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;5.بعد دوباره يك ايميل براتون مياد كه از اون طريق ميتونيد به اكانت خودتون دسترسي داشته باشيد&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;br&gt;
&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;/span&gt;6.در صفحه اکانت خودتون, لينكي
 قرار دارد كه مخصوص شماست و  ميتونيد اونو كپي كرده و در همين ايميل به جاي لينك موجود در بند 1 قراردهيد و براي دوستان خود بفرستيد&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;اگه كسي با اين لينك ثبتنام كنه وفعال شه , شما امتیاز می گیرید. به محض اینکه امتیاز لازم برای هدیه ای رو که انتخاب کردین به دست بیارین, شرکت هدیتونو میفرسته.&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;توجه&lt;/span&gt;&lt;/b&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;:&lt;br&gt;
&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;از يك كامپيوتر بيش از يك بار ثبت نام نكنيد چون اكانت شما ابطال ميشود&lt;/span&gt;&lt;/b&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; dir=&quot;ltr&quot;&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot;&gt;&lt;br&gt;&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;همين الان به روي لينك زير كليك كنيد و شروع به ثبت نام كنيد&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align:right;direction:rtl;margin-bottom:0pt&quot; dir=&quot;rtl&quot; align=&quot;left&quot;&gt;
&lt;span style=&quot;color:black;font-size:10pt&quot; lang=&quot;AR-SA&quot;&gt;                                    &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &amp;#39;Trebuchet MS&amp;#39;, Arial, sans-serif; font-size: 12px; color: rgb(73, 84, 91); &quot;&gt;&lt;span style=&quot;font-size: 13px; color: rgb(33, 33, 33); text-decoration: underline; &quot;&gt;&lt;a href=&quot;http://www.xpango.com?ref=92110319&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xpango.com?ref=92110319&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;

      &lt;/div&gt;&lt;/div&gt;

&lt;/div&gt;&lt;br&gt;

      &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;



&lt;/div&gt;&lt;br&gt;



      &lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Sincerely,&lt;br&gt;Farsheed Ashouri,&lt;br&gt;&lt;a href=&quot;http://rodmena.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rodmena.com&lt;/a&gt; ,&lt;br&gt;Lead Technical Director / Research &amp;amp; Development,&lt;br&gt;Pars Studios,&lt;br&gt;Tehran, Iran.&lt;br&gt;
Cell No: +98 936208 9858&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;cherrypy-users&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26405799&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br /&gt;



For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%D8%B4%D8%B1%D9%83%D8%AA%DB%8C-%DA%A9%D9%87-%D9%87%D8%AF%D8%A7%D9%8A%D8%A7%D9%8A-%D9%85%D8%AC%D8%A7%D9%86%D9%8A-%D9%85%D9%8A%D8%AF%D9%87%D8%9F--%D8%A7%D9%85%D8%AA%D8%AD%D8%A7%D9%86%D8%B4-%D8%B6%D8%B1%D8%B1-%D9%86%D8%AF%D8%A7%D8%B1%D9%87-tp26405799p26405799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26363244</id>
	<title>Reload application configuration</title>
	<published>2009-11-15T12:33:27Z</published>
	<updated>2009-11-15T12:33:27Z</updated>
	<author>
		<name>Guilhelm Panaget</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I have a web application using Cherrypy 3.1 that I start with the
&lt;br&gt;&amp;quot;startServer&amp;quot; method
&lt;br&gt;&lt;br&gt;def getusers():
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; '''Returns a dictionnary :
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - key : user login
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - value : user password hash
&lt;br&gt;&amp;nbsp; &amp;nbsp; '''
&lt;br&gt;&amp;nbsp; &amp;nbsp; all_users = {}
&lt;br&gt;&amp;nbsp; &amp;nbsp; for utilisateur in wapp.creche.utilisateurs:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; all_users[utilisateur.login] = utilisateur.motDePasseChiffre
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return all_users
&lt;br&gt;&lt;br&gt;&lt;br&gt;def app_conf():
&lt;br&gt;&amp;nbsp; &amp;nbsp; conf={'/': &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{'tools.basic_auth.on': True,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'tools.basic_auth.realm' : 'localhost',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'tools.basic_auth.users' : getusers(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'tools.staticdir.root': current_dir,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'tools.sessions.on': True,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'tools.sessions.timeout': 60
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; return conf
&lt;br&gt;&lt;br&gt;def startServer(port_app):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; cherrypy.config.update({'environment': 'production',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'log.error_file': '/tmp/site.log',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'log.screen': True})
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; conf_global = {'environment': 'production' ,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'log.error_file': '/tmp/site.log' ,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'log.screen': True ,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'server.socket_port': port_app ,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'server.ssl_certificate' : os.path.join
&lt;br&gt;(current_dir,'ssl','monsite.cert.cert') ,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'server.ssl_private_key' : os.path.join
&lt;br&gt;(current_dir,'ssl','monsite.cert.key') ,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'tools.encode.encoding': 'utf-8' ,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'tools.decode.on': True
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; cherrypy.config.update(conf_global)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; app=cherrypy.tree.mount(accueil(),'/', config=app_conf())
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return app
&lt;br&gt;&lt;br&gt;In that web-application users can update their password and the
&lt;br&gt;administrator can create new users. How can I &amp;quot;reload&amp;quot; the application
&lt;br&gt;configuration to take into account new users or modified passwords ?
&lt;br&gt;&lt;br&gt;Thanks for any help !
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26363244&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reload-application-configuration-tp26363244p26363244.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26340296</id>
	<title>Re: Configuring log line format (headers)</title>
	<published>2009-11-13T09:29:38Z</published>
	<updated>2009-11-13T09:29:38Z</updated>
	<author>
		<name>Richard Lewis-10</name>
	</author>
	<content type="html">On Nov 11, 12:02 am, Jason Earl &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340296&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;je...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Richard Lewis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340296&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pyc...@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; Hi there,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; My CherryPy application is running behind Apache and so the host
&lt;br&gt;&amp;gt; &amp;gt; portion of my access and error log lines is always '127.0.0.1'. Of
&lt;br&gt;&amp;gt; &amp;gt; course, Apache gives CherryPy the original requesting host in X-
&lt;br&gt;&amp;gt; &amp;gt; Forwarded-For' (I think). But how do I configure CherryPy's log
&lt;br&gt;&amp;gt; &amp;gt; messages to include this X-Forwarded-For host header instead of the
&lt;br&gt;&amp;gt; &amp;gt; Host header?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Cheers,
&lt;br&gt;&amp;gt; &amp;gt; Richard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have something like this in my config file, and it does the right
&lt;br&gt;&amp;gt; thing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [global]
&lt;br&gt;&amp;gt; tools.proxy.on
&lt;br&gt;&amp;gt; tools.proxy.local = &amp;quot;X-Forwarded-Host&amp;quot;
&lt;br&gt;&amp;gt; tools.proxy.remote = &amp;quot;X-Forwarded-For&amp;quot;
&lt;/div&gt;&lt;br&gt;Ah brilliant. Works perfectly. Thanks.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340296&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Configuring-log-line-format-%28headers%29-tp26287486p26340296.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26322079</id>
	<title>RE: Re: Cherrypy Flex and upload</title>
	<published>2009-11-12T08:45:10Z</published>
	<updated>2009-11-12T08:45:10Z</updated>
	<author>
		<name>Cooper, Andrew</name>
	</author>
	<content type="html">Thanks very much your help is greatly appreciated
&lt;br&gt;&lt;br&gt;Andy
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: limscoder [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322079&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dthomp325@...&lt;/a&gt;] 
&lt;br&gt;Sent: 12 November 2009 16:41
&lt;br&gt;To: cherrypy-users
&lt;br&gt;Subject: [cherrypy-users] Re: Cherrypy Flex and upload
&lt;br&gt;&lt;br&gt;BTW: the stuff I posted is in addition to turning on the tool noted in
&lt;br&gt;Christian's post.
&lt;br&gt;&lt;br&gt;On Nov 12, 9:34 am, limscoder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322079&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dthomp...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I use Flash uploads with cherrypy, and I need to use this signature to
&lt;br&gt;&amp;gt; get the upload to work:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def upload(self, uploaded_file, Upload=None, Filename=None):
&lt;br&gt;&amp;gt;     # 'Upload' and 'Filename' are extra parameters that Flash adds.
&lt;br&gt;&amp;gt;     pass
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When calling the 'upload' method of a FileReference object in Flash,
&lt;br&gt;&amp;gt; you need to specify the upload data field name like this:
&lt;br&gt;&amp;gt; fileReference.upload(request, &amp;quot;uploaded_file&amp;quot;);
&lt;br&gt;&amp;gt; OR
&lt;br&gt;&amp;gt; Use the default value &amp;quot;Filedata&amp;quot; and change the Python controller to
&lt;br&gt;&amp;gt; reflect the change:
&lt;br&gt;&amp;gt; def upload(self, Filedata=None, Upload=None, Filename=None):
&lt;br&gt;&amp;gt;     pass
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also, Flash does NOT send a cookie with uploads, so you can't use
&lt;br&gt;&amp;gt; anything in the user's session from within the 'upload' controller.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Dave
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 12, 8:50 am, Andy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322079&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acoo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; To keep things simple I'm using the tut09_files.py example that comes
&lt;br&gt;&amp;gt; &amp;gt; with cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; All things are dandy if I use the form to upload the form
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; But if I use Flex to try to upload the file using
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; fileReference.upload(new URLRequest(&amp;quot;&lt;a href=&quot;http://10.1.254.32.:8000/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://10.1.254.32.:8000/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; upload&amp;quot;));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I get the following error in cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGHUP.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGTERM.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGUSR1.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Bus STARTING
&lt;br&gt;&amp;gt; &amp;gt; CherryPy Checker:
&lt;br&gt;&amp;gt; &amp;gt; The Application mounted at '' has an empty config.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Started monitor thread
&lt;br&gt;&amp;gt; &amp;gt; '_TimeoutMonitor'.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Started monitor thread 'Autoreloader'.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Serving on 0.0.0.0:8000
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Bus STARTED
&lt;br&gt;&amp;gt; &amp;gt; 10.1.254.42 - - [12/Nov/2009:13:55:40] &amp;quot;POST /gateway HTTP/1.1&amp;quot; 404
&lt;br&gt;&amp;gt; &amp;gt; 1042 &amp;quot;&amp;quot; &amp;quot;Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
&lt;br&gt;&amp;gt; &amp;gt; 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
&lt;br&gt;&amp;gt; &amp;gt; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM
&lt;br&gt;&amp;gt; &amp;gt; 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.
&lt;br&gt;&amp;gt; &amp;gt; 1.4; OfficeLivePatch.1.3)&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:56:02] HTTP Traceback (most recent call last):
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 600, in respond
&lt;br&gt;&amp;gt; &amp;gt;     self.process_body()
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 722, in process_body
&lt;br&gt;&amp;gt; &amp;gt;     keep_blank_values=1)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 8, in __init__
&lt;br&gt;&amp;gt; &amp;gt;     cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 534, in __init__
&lt;br&gt;&amp;gt; &amp;gt;     self.read_multi(environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 659, in read_multi
&lt;br&gt;&amp;gt; &amp;gt;     environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 8, in __init__
&lt;br&gt;&amp;gt; &amp;gt;     cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 536, in __init__
&lt;br&gt;&amp;gt; &amp;gt;     self.read_single()
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 669, in read_single
&lt;br&gt;&amp;gt; &amp;gt;     self.read_lines()
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 691, in read_lines
&lt;br&gt;&amp;gt; &amp;gt;     self.read_lines_to_outerboundary()
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 31, in read_lines_to_outerboundary
&lt;br&gt;&amp;gt; &amp;gt;     line = self.fp.readline(1&amp;lt;&amp;lt;16)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; &amp;gt; __init__.py&amp;quot;, line 206, in readline
&lt;br&gt;&amp;gt; &amp;gt;     data = self.rfile.readline(size)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; &amp;gt; __init__.py&amp;quot;, line 1024, in readline
&lt;br&gt;&amp;gt; &amp;gt;     data = self.recv(self._rbufsize)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; &amp;gt; __init__.py&amp;quot;, line 925, in recv
&lt;br&gt;&amp;gt; &amp;gt;     return self._sock.recv(size)
&lt;br&gt;&amp;gt; &amp;gt; timeout: timed out
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:56:02] HTTP
&lt;br&gt;&amp;gt; &amp;gt; Request Headers:
&lt;br&gt;&amp;gt; &amp;gt;   ACCEPT: text/*
&lt;br&gt;&amp;gt; &amp;gt;   Content-Type: multipart/form-data; boundary=----------
&lt;br&gt;&amp;gt; &amp;gt; Ef1gL6ae0ae0Ij5cH2cH2ei4Ij5cH2
&lt;br&gt;&amp;gt; &amp;gt;   HOST: 10.1.254.32:8000
&lt;br&gt;&amp;gt; &amp;gt;   CACHE-CONTROL: no-cache
&lt;br&gt;&amp;gt; &amp;gt;   Content-Length: 26024
&lt;br&gt;&amp;gt; &amp;gt;   USER-AGENT: Shockwave Flash
&lt;br&gt;&amp;gt; &amp;gt;   CONNECTION: Keep-Alive
&lt;br&gt;&amp;gt; &amp;gt;   Remote-Addr: 10.1.254.42
&lt;br&gt;&amp;gt; &amp;gt; 10.1.254.42 - - [12/Nov/2009:13:56:02] &amp;quot;POST /upload HTTP/1.1&amp;quot; 500
&lt;br&gt;&amp;gt; &amp;gt; 2390 &amp;quot;&amp;quot; &amp;quot;Shockwave Flash&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Anyone got any ideas as to what i'm doing wrong ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Andy
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322079&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322079&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cherrypy-Flex-and-upload-tp26321216p26322079.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321986</id>
	<title>Re: Cherrypy Flex and upload</title>
	<published>2009-11-12T08:40:52Z</published>
	<updated>2009-11-12T08:40:52Z</updated>
	<author>
		<name>limscoder</name>
	</author>
	<content type="html">BTW: the stuff I posted is in addition to turning on the tool noted in
&lt;br&gt;Christian's post.
&lt;br&gt;&lt;br&gt;On Nov 12, 9:34 am, limscoder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321986&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dthomp...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I use Flash uploads with cherrypy, and I need to use this signature to
&lt;br&gt;&amp;gt; get the upload to work:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def upload(self, uploaded_file, Upload=None, Filename=None):
&lt;br&gt;&amp;gt;     # 'Upload' and 'Filename' are extra parameters that Flash adds.
&lt;br&gt;&amp;gt;     pass
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When calling the 'upload' method of a FileReference object in Flash,
&lt;br&gt;&amp;gt; you need to specify the upload data field name like this:
&lt;br&gt;&amp;gt; fileReference.upload(request, &amp;quot;uploaded_file&amp;quot;);
&lt;br&gt;&amp;gt; OR
&lt;br&gt;&amp;gt; Use the default value &amp;quot;Filedata&amp;quot; and change the Python controller to
&lt;br&gt;&amp;gt; reflect the change:
&lt;br&gt;&amp;gt; def upload(self, Filedata=None, Upload=None, Filename=None):
&lt;br&gt;&amp;gt;     pass
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also, Flash does NOT send a cookie with uploads, so you can't use
&lt;br&gt;&amp;gt; anything in the user's session from within the 'upload' controller.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Dave
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 12, 8:50 am, Andy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321986&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acoo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; To keep things simple I'm using the tut09_files.py example that comes
&lt;br&gt;&amp;gt; &amp;gt; with cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; All things are dandy if I use the form to upload the form
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; But if I use Flex to try to upload the file using
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; fileReference.upload(new URLRequest(&amp;quot;&lt;a href=&quot;http://10.1.254.32.:8000/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://10.1.254.32.:8000/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; upload&amp;quot;));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I get the following error in cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGHUP.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGTERM.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGUSR1.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Bus STARTING
&lt;br&gt;&amp;gt; &amp;gt; CherryPy Checker:
&lt;br&gt;&amp;gt; &amp;gt; The Application mounted at '' has an empty config.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Started monitor thread
&lt;br&gt;&amp;gt; &amp;gt; '_TimeoutMonitor'.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Started monitor thread 'Autoreloader'.
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Serving on 0.0.0.0:8000
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:55:24] ENGINE Bus STARTED
&lt;br&gt;&amp;gt; &amp;gt; 10.1.254.42 - - [12/Nov/2009:13:55:40] &amp;quot;POST /gateway HTTP/1.1&amp;quot; 404
&lt;br&gt;&amp;gt; &amp;gt; 1042 &amp;quot;&amp;quot; &amp;quot;Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
&lt;br&gt;&amp;gt; &amp;gt; 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
&lt;br&gt;&amp;gt; &amp;gt; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM
&lt;br&gt;&amp;gt; &amp;gt; 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.
&lt;br&gt;&amp;gt; &amp;gt; 1.4; OfficeLivePatch.1.3)&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:56:02] HTTP Traceback (most recent call last):
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 600, in respond
&lt;br&gt;&amp;gt; &amp;gt;     self.process_body()
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 722, in process_body
&lt;br&gt;&amp;gt; &amp;gt;     keep_blank_values=1)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 8, in __init__
&lt;br&gt;&amp;gt; &amp;gt;     cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 534, in __init__
&lt;br&gt;&amp;gt; &amp;gt;     self.read_multi(environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 659, in read_multi
&lt;br&gt;&amp;gt; &amp;gt;     environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 8, in __init__
&lt;br&gt;&amp;gt; &amp;gt;     cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 536, in __init__
&lt;br&gt;&amp;gt; &amp;gt;     self.read_single()
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 669, in read_single
&lt;br&gt;&amp;gt; &amp;gt;     self.read_lines()
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 691, in read_lines
&lt;br&gt;&amp;gt; &amp;gt;     self.read_lines_to_outerboundary()
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; &amp;gt; 31, in read_lines_to_outerboundary
&lt;br&gt;&amp;gt; &amp;gt;     line = self.fp.readline(1&amp;lt;&amp;lt;16)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; &amp;gt; __init__.py&amp;quot;, line 206, in readline
&lt;br&gt;&amp;gt; &amp;gt;     data = self.rfile.readline(size)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; &amp;gt; __init__.py&amp;quot;, line 1024, in readline
&lt;br&gt;&amp;gt; &amp;gt;     data = self.recv(self._rbufsize)
&lt;br&gt;&amp;gt; &amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; &amp;gt; __init__.py&amp;quot;, line 925, in recv
&lt;br&gt;&amp;gt; &amp;gt;     return self._sock.recv(size)
&lt;br&gt;&amp;gt; &amp;gt; timeout: timed out
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [12/Nov/2009:13:56:02] HTTP
&lt;br&gt;&amp;gt; &amp;gt; Request Headers:
&lt;br&gt;&amp;gt; &amp;gt;   ACCEPT: text/*
&lt;br&gt;&amp;gt; &amp;gt;   Content-Type: multipart/form-data; boundary=----------
&lt;br&gt;&amp;gt; &amp;gt; Ef1gL6ae0ae0Ij5cH2cH2ei4Ij5cH2
&lt;br&gt;&amp;gt; &amp;gt;   HOST: 10.1.254.32:8000
&lt;br&gt;&amp;gt; &amp;gt;   CACHE-CONTROL: no-cache
&lt;br&gt;&amp;gt; &amp;gt;   Content-Length: 26024
&lt;br&gt;&amp;gt; &amp;gt;   USER-AGENT: Shockwave Flash
&lt;br&gt;&amp;gt; &amp;gt;   CONNECTION: Keep-Alive
&lt;br&gt;&amp;gt; &amp;gt;   Remote-Addr: 10.1.254.42
&lt;br&gt;&amp;gt; &amp;gt; 10.1.254.42 - - [12/Nov/2009:13:56:02] &amp;quot;POST /upload HTTP/1.1&amp;quot; 500
&lt;br&gt;&amp;gt; &amp;gt; 2390 &amp;quot;&amp;quot; &amp;quot;Shockwave Flash&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Anyone got any ideas as to what i'm doing wrong ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Andy
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321986&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cherrypy-Flex-and-upload-tp26321216p26321986.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321871</id>
	<title>Re: Cherrypy Flex and upload</title>
	<published>2009-11-12T08:34:54Z</published>
	<updated>2009-11-12T08:34:54Z</updated>
	<author>
		<name>limscoder</name>
	</author>
	<content type="html">I use Flash uploads with cherrypy, and I need to use this signature to
&lt;br&gt;get the upload to work:
&lt;br&gt;&lt;br&gt;def upload(self, uploaded_file, Upload=None, Filename=None):
&lt;br&gt;&amp;nbsp; &amp;nbsp; # 'Upload' and 'Filename' are extra parameters that Flash adds.
&lt;br&gt;&amp;nbsp; &amp;nbsp; pass
&lt;br&gt;&lt;br&gt;When calling the 'upload' method of a FileReference object in Flash,
&lt;br&gt;you need to specify the upload data field name like this:
&lt;br&gt;fileReference.upload(request, &amp;quot;uploaded_file&amp;quot;);
&lt;br&gt;OR
&lt;br&gt;Use the default value &amp;quot;Filedata&amp;quot; and change the Python controller to
&lt;br&gt;reflect the change:
&lt;br&gt;def upload(self, Filedata=None, Upload=None, Filename=None):
&lt;br&gt;&amp;nbsp; &amp;nbsp; pass
&lt;br&gt;&lt;br&gt;Also, Flash does NOT send a cookie with uploads, so you can't use
&lt;br&gt;anything in the user's session from within the 'upload' controller.
&lt;br&gt;&lt;br&gt;-Dave
&lt;br&gt;&lt;br&gt;On Nov 12, 8:50 am, Andy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acoo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; To keep things simple I'm using the tut09_files.py example that comes
&lt;br&gt;&amp;gt; with cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All things are dandy if I use the form to upload the form
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But if I use Flex to try to upload the file using
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; fileReference.upload(new URLRequest(&amp;quot;&lt;a href=&quot;http://10.1.254.32.:8000/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://10.1.254.32.:8000/&lt;/a&gt;&lt;br&gt;&amp;gt; upload&amp;quot;));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get the following error in cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGHUP.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGTERM.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGUSR1.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Bus STARTING
&lt;br&gt;&amp;gt; CherryPy Checker:
&lt;br&gt;&amp;gt; The Application mounted at '' has an empty config.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Started monitor thread
&lt;br&gt;&amp;gt; '_TimeoutMonitor'.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Started monitor thread 'Autoreloader'.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Serving on 0.0.0.0:8000
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Bus STARTED
&lt;br&gt;&amp;gt; 10.1.254.42 - - [12/Nov/2009:13:55:40] &amp;quot;POST /gateway HTTP/1.1&amp;quot; 404
&lt;br&gt;&amp;gt; 1042 &amp;quot;&amp;quot; &amp;quot;Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
&lt;br&gt;&amp;gt; 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
&lt;br&gt;&amp;gt; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM
&lt;br&gt;&amp;gt; 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.
&lt;br&gt;&amp;gt; 1.4; OfficeLivePatch.1.3)&amp;quot;
&lt;br&gt;&amp;gt; [12/Nov/2009:13:56:02] HTTP Traceback (most recent call last):
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; 600, in respond
&lt;br&gt;&amp;gt;     self.process_body()
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; 722, in process_body
&lt;br&gt;&amp;gt;     keep_blank_values=1)
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; 8, in __init__
&lt;br&gt;&amp;gt;     cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 534, in __init__
&lt;br&gt;&amp;gt;     self.read_multi(environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 659, in read_multi
&lt;br&gt;&amp;gt;     environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; 8, in __init__
&lt;br&gt;&amp;gt;     cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 536, in __init__
&lt;br&gt;&amp;gt;     self.read_single()
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 669, in read_single
&lt;br&gt;&amp;gt;     self.read_lines()
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 691, in read_lines
&lt;br&gt;&amp;gt;     self.read_lines_to_outerboundary()
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; 31, in read_lines_to_outerboundary
&lt;br&gt;&amp;gt;     line = self.fp.readline(1&amp;lt;&amp;lt;16)
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; __init__.py&amp;quot;, line 206, in readline
&lt;br&gt;&amp;gt;     data = self.rfile.readline(size)
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; __init__.py&amp;quot;, line 1024, in readline
&lt;br&gt;&amp;gt;     data = self.recv(self._rbufsize)
&lt;br&gt;&amp;gt;   File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; __init__.py&amp;quot;, line 925, in recv
&lt;br&gt;&amp;gt;     return self._sock.recv(size)
&lt;br&gt;&amp;gt; timeout: timed out
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [12/Nov/2009:13:56:02] HTTP
&lt;br&gt;&amp;gt; Request Headers:
&lt;br&gt;&amp;gt;   ACCEPT: text/*
&lt;br&gt;&amp;gt;   Content-Type: multipart/form-data; boundary=----------
&lt;br&gt;&amp;gt; Ef1gL6ae0ae0Ij5cH2cH2ei4Ij5cH2
&lt;br&gt;&amp;gt;   HOST: 10.1.254.32:8000
&lt;br&gt;&amp;gt;   CACHE-CONTROL: no-cache
&lt;br&gt;&amp;gt;   Content-Length: 26024
&lt;br&gt;&amp;gt;   USER-AGENT: Shockwave Flash
&lt;br&gt;&amp;gt;   CONNECTION: Keep-Alive
&lt;br&gt;&amp;gt;   Remote-Addr: 10.1.254.42
&lt;br&gt;&amp;gt; 10.1.254.42 - - [12/Nov/2009:13:56:02] &amp;quot;POST /upload HTTP/1.1&amp;quot; 500
&lt;br&gt;&amp;gt; 2390 &amp;quot;&amp;quot; &amp;quot;Shockwave Flash&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyone got any ideas as to what i'm doing wrong ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Andy
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321871&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cherrypy-Flex-and-upload-tp26321216p26321871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321722</id>
	<title>RE: Re: html, rss, atom, Oh My!</title>
	<published>2009-11-12T08:25:59Z</published>
	<updated>2009-11-12T08:25:59Z</updated>
	<author>
		<name>Robert Brewer-4</name>
	</author>
	<content type="html">dundeemt wrote:
&lt;br&gt;&amp;gt; While Gerold's suggestion was spot on for my question, I realize after
&lt;br&gt;&amp;gt; working with it that my question was flawed.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What I really want is to write a data controller, such that it will
&lt;br&gt;&amp;gt; handle returning the responses based on the url
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; /controller/noun/id and then format with either something like .json
&lt;br&gt;&amp;gt; or /json &amp;nbsp;giving an url like
&lt;br&gt;&amp;gt; &amp;nbsp;/controller/noun/id.json | /controller/noun/id.xml |
&lt;br&gt;/controller/noun/
&lt;br&gt;&amp;gt; id.html | /controller/noun/id
&lt;br&gt;&amp;gt; or
&lt;br&gt;&amp;gt; &amp;nbsp;/controller/noun/id/json
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've been looking at selector4cherrypy as a solution.
&lt;br&gt;&lt;br&gt;Why?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; def noun(self, id, format='json'):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; thing = Thing.get(id)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if format == 'json':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cherrypy.response.headers['Content-Type'] =
&lt;br&gt;'application/json'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return simplejson.dumps(thing.dict)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elif format == 'xml':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise cherrypy.NotFound()
&lt;br&gt;&amp;nbsp; &amp;nbsp; noun.exposed = True
&lt;br&gt;&lt;br&gt;&lt;br&gt;Robert Brewer
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321722&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/html%2C-rss%2C-atom%2C-Oh-My%21-tp26254614p26321722.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321652</id>
	<title>Re: Cherrypy Flex and upload</title>
	<published>2009-11-12T08:23:04Z</published>
	<updated>2009-11-12T08:23:04Z</updated>
	<author>
		<name>Christian Wyglendowski-2</name>
	</author>
	<content type="html">Looks like this is a known issue and is solved by enabling a tool.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.cherrypy.org/ticket/808&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cherrypy.org/ticket/808&lt;/a&gt;&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;&lt;br&gt;Christian
&lt;br&gt;&lt;br&gt;On Thu, Nov 12, 2009 at 10:50 AM, Andy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321652&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acooper@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; To keep things simple I'm using the tut09_files.py example that comes
&lt;br&gt;&amp;gt; with cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All things are dandy if I use the form to upload the form
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But if I use Flex to try to upload the file using
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; fileReference.upload(new URLRequest(&amp;quot;&lt;a href=&quot;http://10.1.254.32.:8000/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://10.1.254.32.:8000/&lt;/a&gt;&lt;br&gt;&amp;gt; upload&amp;quot;));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get the following error in cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGHUP.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGTERM.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Listening for SIGUSR1.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Bus STARTING
&lt;br&gt;&amp;gt; CherryPy Checker:
&lt;br&gt;&amp;gt; The Application mounted at '' has an empty config.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Started monitor thread
&lt;br&gt;&amp;gt; '_TimeoutMonitor'.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Started monitor thread 'Autoreloader'.
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Serving on 0.0.0.0:8000
&lt;br&gt;&amp;gt; [12/Nov/2009:13:55:24] ENGINE Bus STARTED
&lt;br&gt;&amp;gt; 10.1.254.42 - - [12/Nov/2009:13:55:40] &amp;quot;POST /gateway HTTP/1.1&amp;quot; 404
&lt;br&gt;&amp;gt; 1042 &amp;quot;&amp;quot; &amp;quot;Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
&lt;br&gt;&amp;gt; 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
&lt;br&gt;&amp;gt; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM
&lt;br&gt;&amp;gt; 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.
&lt;br&gt;&amp;gt; 1.4; OfficeLivePatch.1.3)&amp;quot;
&lt;br&gt;&amp;gt; [12/Nov/2009:13:56:02] HTTP Traceback (most recent call last):
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; 600, in respond
&lt;br&gt;&amp;gt;    self.process_body()
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; 722, in process_body
&lt;br&gt;&amp;gt;    keep_blank_values=1)
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; 8, in __init__
&lt;br&gt;&amp;gt;    cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 534, in __init__
&lt;br&gt;&amp;gt;    self.read_multi(environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 659, in read_multi
&lt;br&gt;&amp;gt;    environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; 8, in __init__
&lt;br&gt;&amp;gt;    cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 536, in __init__
&lt;br&gt;&amp;gt;    self.read_single()
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 669, in read_single
&lt;br&gt;&amp;gt;    self.read_lines()
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 691, in read_lines
&lt;br&gt;&amp;gt;    self.read_lines_to_outerboundary()
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;&amp;gt; 31, in read_lines_to_outerboundary
&lt;br&gt;&amp;gt;    line = self.fp.readline(1&amp;lt;&amp;lt;16)
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; __init__.py&amp;quot;, line 206, in readline
&lt;br&gt;&amp;gt;    data = self.rfile.readline(size)
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; __init__.py&amp;quot;, line 1024, in readline
&lt;br&gt;&amp;gt;    data = self.recv(self._rbufsize)
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;&amp;gt; __init__.py&amp;quot;, line 925, in recv
&lt;br&gt;&amp;gt;    return self._sock.recv(size)
&lt;br&gt;&amp;gt; timeout: timed out
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [12/Nov/2009:13:56:02] HTTP
&lt;br&gt;&amp;gt; Request Headers:
&lt;br&gt;&amp;gt;  ACCEPT: text/*
&lt;br&gt;&amp;gt;  Content-Type: multipart/form-data; boundary=----------
&lt;br&gt;&amp;gt; Ef1gL6ae0ae0Ij5cH2cH2ei4Ij5cH2
&lt;br&gt;&amp;gt;  HOST: 10.1.254.32:8000
&lt;br&gt;&amp;gt;  CACHE-CONTROL: no-cache
&lt;br&gt;&amp;gt;  Content-Length: 26024
&lt;br&gt;&amp;gt;  USER-AGENT: Shockwave Flash
&lt;br&gt;&amp;gt;  CONNECTION: Keep-Alive
&lt;br&gt;&amp;gt;  Remote-Addr: 10.1.254.42
&lt;br&gt;&amp;gt; 10.1.254.42 - - [12/Nov/2009:13:56:02] &amp;quot;POST /upload HTTP/1.1&amp;quot; 500
&lt;br&gt;&amp;gt; 2390 &amp;quot;&amp;quot; &amp;quot;Shockwave Flash&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyone got any ideas as to what i'm doing wrong ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Andy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321652&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321652&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cherrypy-Flex-and-upload-tp26321216p26321652.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321216</id>
	<title>Cherrypy Flex and upload</title>
	<published>2009-11-12T07:50:02Z</published>
	<updated>2009-11-12T07:50:02Z</updated>
	<author>
		<name>Cooper, Andrew</name>
	</author>
	<content type="html">To keep things simple I'm using the tut09_files.py example that comes
&lt;br&gt;with cherrypy
&lt;br&gt;&lt;br&gt;All things are dandy if I use the form to upload the form
&lt;br&gt;&lt;br&gt;But if I use Flex to try to upload the file using
&lt;br&gt;&lt;br&gt;fileReference.upload(new URLRequest(&amp;quot;&lt;a href=&quot;http://10.1.254.32.:8000/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://10.1.254.32.:8000/&lt;/a&gt;&lt;br&gt;upload&amp;quot;));
&lt;br&gt;&lt;br&gt;I get the following error in cherrypy
&lt;br&gt;&lt;br&gt;[12/Nov/2009:13:55:24] ENGINE Listening for SIGHUP.
&lt;br&gt;[12/Nov/2009:13:55:24] ENGINE Listening for SIGTERM.
&lt;br&gt;[12/Nov/2009:13:55:24] ENGINE Listening for SIGUSR1.
&lt;br&gt;[12/Nov/2009:13:55:24] ENGINE Bus STARTING
&lt;br&gt;CherryPy Checker:
&lt;br&gt;The Application mounted at '' has an empty config.
&lt;br&gt;&lt;br&gt;[12/Nov/2009:13:55:24] ENGINE Started monitor thread
&lt;br&gt;'_TimeoutMonitor'.
&lt;br&gt;[12/Nov/2009:13:55:24] ENGINE Started monitor thread 'Autoreloader'.
&lt;br&gt;[12/Nov/2009:13:55:24] ENGINE Serving on 0.0.0.0:8000
&lt;br&gt;[12/Nov/2009:13:55:24] ENGINE Bus STARTED
&lt;br&gt;10.1.254.42 - - [12/Nov/2009:13:55:40] &amp;quot;POST /gateway HTTP/1.1&amp;quot; 404
&lt;br&gt;1042 &amp;quot;&amp;quot; &amp;quot;Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
&lt;br&gt;4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
&lt;br&gt;InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM
&lt;br&gt;8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.
&lt;br&gt;1.4; OfficeLivePatch.1.3)&amp;quot;
&lt;br&gt;[12/Nov/2009:13:56:02] HTTP Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;600, in respond
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.process_body()
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py&amp;quot;, line
&lt;br&gt;722, in process_body
&lt;br&gt;&amp;nbsp; &amp;nbsp; keep_blank_values=1)
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;8, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 534, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.read_multi(environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 659, in read_multi
&lt;br&gt;&amp;nbsp; &amp;nbsp; environ, keep_blank_values, strict_parsing)
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;8, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; cgi.FieldStorage.__init__(self, *args, **kwds)
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 536, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.read_single()
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 669, in read_single
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.read_lines()
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/cgi.py&amp;quot;, line 691, in read_lines
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.read_lines_to_outerboundary()
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/_cpcgifs.py&amp;quot;, line
&lt;br&gt;31, in read_lines_to_outerboundary
&lt;br&gt;&amp;nbsp; &amp;nbsp; line = self.fp.readline(1&amp;lt;&amp;lt;16)
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;__init__.py&amp;quot;, line 206, in readline
&lt;br&gt;&amp;nbsp; &amp;nbsp; data = self.rfile.readline(size)
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;__init__.py&amp;quot;, line 1024, in readline
&lt;br&gt;&amp;nbsp; &amp;nbsp; data = self.recv(self._rbufsize)
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/cherrypy/wsgiserver/
&lt;br&gt;__init__.py&amp;quot;, line 925, in recv
&lt;br&gt;&amp;nbsp; &amp;nbsp; return self._sock.recv(size)
&lt;br&gt;timeout: timed out
&lt;br&gt;&lt;br&gt;[12/Nov/2009:13:56:02] HTTP
&lt;br&gt;Request Headers:
&lt;br&gt;&amp;nbsp; ACCEPT: text/*
&lt;br&gt;&amp;nbsp; Content-Type: multipart/form-data; boundary=----------
&lt;br&gt;Ef1gL6ae0ae0Ij5cH2cH2ei4Ij5cH2
&lt;br&gt;&amp;nbsp; HOST: 10.1.254.32:8000
&lt;br&gt;&amp;nbsp; CACHE-CONTROL: no-cache
&lt;br&gt;&amp;nbsp; Content-Length: 26024
&lt;br&gt;&amp;nbsp; USER-AGENT: Shockwave Flash
&lt;br&gt;&amp;nbsp; CONNECTION: Keep-Alive
&lt;br&gt;&amp;nbsp; Remote-Addr: 10.1.254.42
&lt;br&gt;10.1.254.42 - - [12/Nov/2009:13:56:02] &amp;quot;POST /upload HTTP/1.1&amp;quot; 500
&lt;br&gt;2390 &amp;quot;&amp;quot; &amp;quot;Shockwave Flash&amp;quot;
&lt;br&gt;&lt;br&gt;Anyone got any ideas as to what i'm doing wrong ?
&lt;br&gt;&lt;br&gt;Andy
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321216&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cherrypy-Flex-and-upload-tp26321216p26321216.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26313855</id>
	<title>Re: html, rss, atom, Oh My!</title>
	<published>2009-11-11T21:49:48Z</published>
	<updated>2009-11-11T21:49:48Z</updated>
	<author>
		<name>Jeff H-3</name>
	</author>
	<content type="html">While Gerold's suggestion was spot on for my question, I realize after
&lt;br&gt;working with it that my question was flawed.
&lt;br&gt;&lt;br&gt;What I really want is to write a data controller, such that it will
&lt;br&gt;handle returning the responses based on the url
&lt;br&gt;&lt;br&gt;/controller/noun/id and then format with either something like .json
&lt;br&gt;or /json &amp;nbsp;giving an url like
&lt;br&gt;&amp;nbsp;/controller/noun/id.json | /controller/noun/id.xml | /controller/noun/
&lt;br&gt;id.html | /controller/noun/id
&lt;br&gt;or
&lt;br&gt;&amp;nbsp;/controller/noun/id/json
&lt;br&gt;&lt;br&gt;I've been looking at selector4cherrypy as a solution.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;&lt;br&gt;On Nov 9, 5:43 pm, dundeemt &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26313855&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dunde...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; While I did know it, I had completely forgotten it.  Thank You!
&lt;br&gt;&amp;gt; I'll give it a go and post back.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best,
&lt;br&gt;&amp;gt; Jeff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 8, 2:46 pm, Gerold Penz &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26313855&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gerold.p...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Gerold Penz schrieb:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;          def verb_html(*args, **kwargs):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If you don´t know it -- the underline (_) is a replacement for the dot.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;      &lt;a href=&quot;http://localhost/.../verb.html--&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/.../verb.html--&lt;/a&gt;&amp;gt; verb_html()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Try it out.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; ________________________________________________________________________
&lt;br&gt;&amp;gt; &amp;gt; Gerold Penz -&lt;a href=&quot;http://halvar.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://halvar.at&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; Wissen hat eine wunderbare Eigenschaft:
&lt;br&gt;&amp;gt; &amp;gt; Es verdoppelt sich, wenn man es teilt.
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26313855&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/html%2C-rss%2C-atom%2C-Oh-My%21-tp26254614p26313855.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26293703</id>
	<title>Re: Configuring log line format (headers)</title>
	<published>2009-11-10T16:02:22Z</published>
	<updated>2009-11-10T16:02:22Z</updated>
	<author>
		<name>Jason Earl-2</name>
	</author>
	<content type="html">Richard Lewis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26293703&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pycoon@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My CherryPy application is running behind Apache and so the host
&lt;br&gt;&amp;gt; portion of my access and error log lines is always '127.0.0.1'. Of
&lt;br&gt;&amp;gt; course, Apache gives CherryPy the original requesting host in X-
&lt;br&gt;&amp;gt; Forwarded-For' (I think). But how do I configure CherryPy's log
&lt;br&gt;&amp;gt; messages to include this X-Forwarded-For host header instead of the
&lt;br&gt;&amp;gt; Host header?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Richard
&lt;/div&gt;&lt;br&gt;I have something like this in my config file, and it does the right
&lt;br&gt;thing.
&lt;br&gt;&lt;br&gt;[global]
&lt;br&gt;tools.proxy.on
&lt;br&gt;tools.proxy.local = &amp;quot;X-Forwarded-Host&amp;quot;
&lt;br&gt;tools.proxy.remote = &amp;quot;X-Forwarded-For&amp;quot;
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26293703&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Configuring-log-line-format-%28headers%29-tp26287486p26293703.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26293664</id>
	<title>xmlrpc server problems in CherryPy</title>
	<published>2009-11-10T15:58:47Z</published>
	<updated>2009-11-10T15:58:47Z</updated>
	<author>
		<name>Ken Kinder-2</name>
	</author>
	<content type="html">I filed a couple of bug reports:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://cherrypy.org/ticket/968&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cherrypy.org/ticket/968&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://cherrypy.org/ticket/967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cherrypy.org/ticket/967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Basically I&amp;#39;m following the documentation pretty closely, and attached files of where xmlrpc serving seems broken in CherryPy. Thoughts, anyone?&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;cherrypy-users&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26293664&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.&lt;br /&gt;



For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xmlrpc-server-problems-in-CherryPy-tp26293664p26293664.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26287486</id>
	<title>Configuring log line format (headers)</title>
	<published>2009-11-10T09:00:29Z</published>
	<updated>2009-11-10T09:00:29Z</updated>
	<author>
		<name>Richard Lewis-10</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;My CherryPy application is running behind Apache and so the host
&lt;br&gt;portion of my access and error log lines is always '127.0.0.1'. Of
&lt;br&gt;course, Apache gives CherryPy the original requesting host in X-
&lt;br&gt;Forwarded-For' (I think). But how do I configure CherryPy's log
&lt;br&gt;messages to include this X-Forwarded-For host header instead of the
&lt;br&gt;Host header?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Richard
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26287486&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Configuring-log-line-format-%28headers%29-tp26287486p26287486.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26278306</id>
	<title>Re: need help using cherrypy</title>
	<published>2009-11-09T20:55:28Z</published>
	<updated>2009-11-09T20:55:28Z</updated>
	<author>
		<name>Madhusudhan sunkara</name>
	</author>
	<content type="html">Thanks Jeff,&lt;br&gt;&lt;br&gt;i am able to run the example or similar files in other machines. in the end it turned out to be browser charset,  once i set it to Western ISO-8859-1 everything started working fine.&lt;br&gt;&lt;br&gt;so, is it good idea to have &lt;em&gt;accept&lt;/em&gt;-&lt;em&gt;charset&lt;/em&gt; attribute in form? does it make a difference&lt;br&gt;
&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 10, 2009 at 7:44 AM, dundeemt &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26278306&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dundeemt@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
So, if you start the app with&lt;br&gt;
&lt;br&gt;
python /usr/lib/python2.5/site-packages/cherrypy/tutorial/&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;tut03_get_and_post.py&lt;br&gt;
&lt;/div&gt;and then go to &lt;a href=&quot;http://localhost:8080/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/&lt;/a&gt;, what do you see in the debug&lt;br&gt;
window?&lt;br&gt;
&lt;br&gt;
When you enter Madhusudhan in the text box and click &amp;quot;Sumit Query&amp;quot;,&lt;br&gt;
what url do you land at?&lt;br&gt;
  Is it?  &lt;a href=&quot;http://localhost:8080/greetUser?name=Madhusudhan&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/greetUser?name=Madhusudhan&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
In the debug window you should see something like:&lt;br&gt;
127.0.0.1 - - [09/Nov/2009:20:08:29] &amp;quot;GET / HTTP/1.1&amp;quot; 200 184 &amp;quot;&amp;quot;&lt;br&gt;
&amp;quot;Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102815&lt;br&gt;
Ubuntu/9.04 (jaunty) Firefox/3.0.15&amp;quot;&lt;br&gt;
127.0.0.1 - - [09/Nov/2009:20:08:34] &amp;quot;GET /greetUser?name=jeff HTTP/&lt;br&gt;
1.1&amp;quot; 200 20 &amp;quot;&lt;a href=&quot;http://localhost:8080/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/&lt;/a&gt;&amp;quot; &amp;quot;Mozilla/5.0 (X11; U; Linux i686;&lt;br&gt;
en-US; rv:1.9.0.15) Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/&lt;br&gt;
3.0.15&amp;quot;&lt;br&gt;
&lt;br&gt;
I am successfully running the example here.&lt;br&gt;
&lt;br&gt;
-Jeff&lt;br&gt;
&lt;br&gt;
On Nov 8, 1:15 pm, Madhusudhan sunkara &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26278306&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;madhusudhan.sunk...@...&lt;/a&gt;&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&amp;gt; i am using 3.1.2 , even example is not working for me&lt;br&gt;
&amp;gt; :/usr/lib/python2.5/site-packages/cherrypy/tutorial/tut03_get_and_post.py&lt;br&gt;
&amp;gt; ---------------------------------------------------------------------------&lt;br&gt;
&amp;gt;  def index(self):&lt;br&gt;
&amp;gt;         # Ask for the user&amp;#39;s name.&lt;br&gt;
&amp;gt;         return &amp;#39;&amp;#39;&amp;#39;&lt;br&gt;
&amp;gt;             &amp;lt;form action=&amp;quot;greetUser&amp;quot; method=&amp;quot;GET&amp;quot;&amp;gt;&lt;br&gt;
&amp;gt;             What is your name?&lt;br&gt;
&amp;gt;             &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; /&amp;gt;&lt;br&gt;
&amp;gt;             &amp;lt;input type=&amp;quot;submit&amp;quot; /&amp;gt;&lt;br&gt;
&amp;gt;             &amp;lt;/form&amp;gt;&amp;#39;&amp;#39;&amp;#39;&lt;br&gt;
&amp;gt;     index.exposed = True&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     def greetUser(self, name = None):&lt;br&gt;
&amp;gt;         # CherryPy passes all GET and POST variables as method parameters.&lt;br&gt;
&amp;gt;         # It doesn&amp;#39;t make a difference where the variables come from, how&lt;br&gt;
&amp;gt;         # large their contents are, and so on.&lt;br&gt;
&amp;gt;         #&lt;br&gt;
&amp;gt;         # You can define default parameter values as usual. In this&lt;br&gt;
&amp;gt;         # example, the &amp;quot;name&amp;quot; parameter defaults to None so we can check&lt;br&gt;
&amp;gt;         # if a name was actually specified.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         if name:&lt;br&gt;
&amp;gt;             # Greet the user!&lt;br&gt;
&amp;gt;             return &amp;quot;Hey %s, what&amp;#39;s up?&amp;quot; % name&lt;br&gt;
&amp;gt;         else:&lt;br&gt;
&amp;gt;             if name is None:&lt;br&gt;
&amp;gt;                 # No name was specified&lt;br&gt;
&amp;gt;                 return &amp;#39;Please enter your name &amp;lt;a href=&amp;quot;./&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;#39;&lt;br&gt;
&amp;gt;             else:&lt;br&gt;
&amp;gt;                 return &amp;#39;No, really, enter your name &amp;lt;a href=&amp;quot;./&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;#39;&lt;br&gt;
&amp;gt;     greetUser.exposed = True&lt;br&gt;
&amp;gt; -----------------------------------------------------&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; is there something wrong with this version?&lt;br&gt;
&amp;gt; please help&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Mon, Nov 9, 2009 at 12:32 AM, Madhusudhan sunkara &amp;lt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26278306&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;madhusudhan.sunk...@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hi All,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; i know this is very basic usage, i am a new user of cherrypy.&lt;br&gt;
&amp;gt; &amp;gt; i have a problem like below&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; def index(self):&lt;br&gt;
&amp;gt; &amp;gt;         return &amp;quot;&amp;quot;&amp;quot;&amp;lt;form method=&amp;#39;POST&amp;#39; action=&amp;#39;/form&amp;#39;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;         type something &amp;lt;input type=&amp;#39;text&amp;#39; name=&amp;#39;inp&amp;#39;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;         &amp;lt;input type=&amp;#39;submit&amp;#39;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;         &amp;lt;/form&amp;gt;&amp;quot;&amp;quot;&amp;quot;&lt;br&gt;
&amp;gt; &amp;gt;     index.exposed=True&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;     def form(self,inp=None,**kw):&lt;br&gt;
&amp;gt; &amp;gt;         return &amp;#39;you typed : &amp;quot;%s&amp;quot;&amp;#39;%(inp,)&lt;br&gt;
&amp;gt; &amp;gt;     form.exposed = True&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; both methods are defined in simple class , when data is submitted it is not&lt;br&gt;
&amp;gt; &amp;gt; received in form method.&lt;br&gt;
&amp;gt; &amp;gt; i am getting None (the default value)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; is there anything i am missing ?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt; Madhu&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Madhu Sudhan Sunkara&lt;br&gt;
&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Madhu Sudhan Sunkara&lt;br&gt;
&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26278306&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt; &lt;br&gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26278306&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/need-help-using-cherrypy-tp26256836p26278306.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26277251</id>
	<title>Re: need help using cherrypy</title>
	<published>2009-11-09T18:14:47Z</published>
	<updated>2009-11-09T18:14:47Z</updated>
	<author>
		<name>Jeff H-3</name>
	</author>
	<content type="html">&lt;br&gt;So, if you start the app with
&lt;br&gt;&lt;br&gt;python /usr/lib/python2.5/site-packages/cherrypy/tutorial/
&lt;br&gt;tut03_get_and_post.py
&lt;br&gt;and then go to &lt;a href=&quot;http://localhost:8080/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/&lt;/a&gt;, what do you see in the debug
&lt;br&gt;window?
&lt;br&gt;&lt;br&gt;When you enter Madhusudhan in the text box and click &amp;quot;Sumit Query&amp;quot;,
&lt;br&gt;what url do you land at?
&lt;br&gt;&amp;nbsp; Is it? &amp;nbsp;&lt;a href=&quot;http://localhost:8080/greetUser?name=Madhusudhan&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/greetUser?name=Madhusudhan&lt;/a&gt;&lt;br&gt;&lt;br&gt;In the debug window you should see something like:
&lt;br&gt;127.0.0.1 - - [09/Nov/2009:20:08:29] &amp;quot;GET / HTTP/1.1&amp;quot; 200 184 &amp;quot;&amp;quot;
&lt;br&gt;&amp;quot;Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102815
&lt;br&gt;Ubuntu/9.04 (jaunty) Firefox/3.0.15&amp;quot;
&lt;br&gt;127.0.0.1 - - [09/Nov/2009:20:08:34] &amp;quot;GET /greetUser?name=jeff HTTP/
&lt;br&gt;1.1&amp;quot; 200 20 &amp;quot;&lt;a href=&quot;http://localhost:8080/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/&lt;/a&gt;&amp;quot; &amp;quot;Mozilla/5.0 (X11; U; Linux i686;
&lt;br&gt;en-US; rv:1.9.0.15) Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/
&lt;br&gt;3.0.15&amp;quot;
&lt;br&gt;&lt;br&gt;I am successfully running the example here.
&lt;br&gt;&lt;br&gt;-Jeff
&lt;br&gt;&lt;br&gt;On Nov 8, 1:15 pm, Madhusudhan sunkara &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277251&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;madhusudhan.sunk...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; i am using 3.1.2 , even example is not working for me
&lt;br&gt;&amp;gt; :/usr/lib/python2.5/site-packages/cherrypy/tutorial/tut03_get_and_post.py
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------------
&lt;br&gt;&amp;gt;  def index(self):
&lt;br&gt;&amp;gt;         # Ask for the user's name.
&lt;br&gt;&amp;gt;         return '''
&lt;br&gt;&amp;gt;             &amp;lt;form action=&amp;quot;greetUser&amp;quot; method=&amp;quot;GET&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;             What is your name?
&lt;br&gt;&amp;gt;             &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;             &amp;lt;input type=&amp;quot;submit&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;             &amp;lt;/form&amp;gt;'''
&lt;br&gt;&amp;gt;     index.exposed = True
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     def greetUser(self, name = None):
&lt;br&gt;&amp;gt;         # CherryPy passes all GET and POST variables as method parameters.
&lt;br&gt;&amp;gt;         # It doesn't make a difference where the variables come from, how
&lt;br&gt;&amp;gt;         # large their contents are, and so on.
&lt;br&gt;&amp;gt;         #
&lt;br&gt;&amp;gt;         # You can define default parameter values as usual. In this
&lt;br&gt;&amp;gt;         # example, the &amp;quot;name&amp;quot; parameter defaults to None so we can check
&lt;br&gt;&amp;gt;         # if a name was actually specified.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         if name:
&lt;br&gt;&amp;gt;             # Greet the user!
&lt;br&gt;&amp;gt;             return &amp;quot;Hey %s, what's up?&amp;quot; % name
&lt;br&gt;&amp;gt;         else:
&lt;br&gt;&amp;gt;             if name is None:
&lt;br&gt;&amp;gt;                 # No name was specified
&lt;br&gt;&amp;gt;                 return 'Please enter your name &amp;lt;a href=&amp;quot;./&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.'
&lt;br&gt;&amp;gt;             else:
&lt;br&gt;&amp;gt;                 return 'No, really, enter your name &amp;lt;a href=&amp;quot;./&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.'
&lt;br&gt;&amp;gt;     greetUser.exposed = True
&lt;br&gt;&amp;gt; -----------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; is there something wrong with this version?
&lt;br&gt;&amp;gt; please help
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Nov 9, 2009 at 12:32 AM, Madhusudhan sunkara &amp;lt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277251&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;madhusudhan.sunk...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; i know this is very basic usage, i am a new user of cherrypy.
&lt;br&gt;&amp;gt; &amp;gt; i have a problem like below
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; def index(self):
&lt;br&gt;&amp;gt; &amp;gt;         return &amp;quot;&amp;quot;&amp;quot;&amp;lt;form method='POST' action='/form'&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;         type something &amp;lt;input type='text' name='inp'&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;         &amp;lt;input type='submit'&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;         &amp;lt;/form&amp;gt;&amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt;     index.exposed=True
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;     def form(self,inp=None,**kw):
&lt;br&gt;&amp;gt; &amp;gt;         return 'you typed : &amp;quot;%s&amp;quot;'%(inp,)
&lt;br&gt;&amp;gt; &amp;gt;     form.exposed = True
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; both methods are defined in simple class , when data is submitted it is not
&lt;br&gt;&amp;gt; &amp;gt; received in form method.
&lt;br&gt;&amp;gt; &amp;gt; i am getting None (the default value)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; is there anything i am missing ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Madhu
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Madhu Sudhan Sunkara
&lt;/div&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277251&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277251&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/need-help-using-cherrypy-tp26256836p26277251.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26275872</id>
	<title>Re: html, rss, atom, Oh My!</title>
	<published>2009-11-09T15:43:00Z</published>
	<updated>2009-11-09T15:43:00Z</updated>
	<author>
		<name>Jeff H-3</name>
	</author>
	<content type="html">&lt;br&gt;While I did know it, I had completely forgotten it. &amp;nbsp;Thank You!
&lt;br&gt;I'll give it a go and post back.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;Jeff
&lt;br&gt;&lt;br&gt;On Nov 8, 2:46 pm, Gerold Penz &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275872&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gerold.p...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Gerold Penz schrieb:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;          def verb_html(*args, **kwargs):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you don´t know it -- the underline (_) is a replacement for the dot.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;      &lt;a href=&quot;http://localhost/.../verb.html--&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/.../verb.html--&lt;/a&gt;&amp;gt; verb_html()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Try it out.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; ________________________________________________________________________
&lt;br&gt;&amp;gt; Gerold Penz -&lt;a href=&quot;http://halvar.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://halvar.at&lt;/a&gt;&lt;br&gt;&amp;gt; Wissen hat eine wunderbare Eigenschaft:
&lt;br&gt;&amp;gt; Es verdoppelt sich, wenn man es teilt.
&lt;/div&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275872&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275872&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/html%2C-rss%2C-atom%2C-Oh-My%21-tp26254614p26275872.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257783</id>
	<title>Re: html, rss, atom, Oh My!</title>
	<published>2009-11-08T12:46:40Z</published>
	<updated>2009-11-08T12:46:40Z</updated>
	<author>
		<name>Gerold Penz-2</name>
	</author>
	<content type="html">&lt;br&gt;Gerold Penz schrieb:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def verb_html(*args, **kwargs):
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;br&gt;If you don´t know it -- the underline (_) is a replacement for the dot.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://localhost/.../verb.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/.../verb.html&lt;/a&gt;&amp;nbsp;--&amp;gt; verb_html()
&lt;br&gt;&lt;br&gt;Try it out.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;________________________________________________________________________
&lt;br&gt;Gerold Penz - &lt;a href=&quot;http://halvar.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://halvar.at&lt;/a&gt;&lt;br&gt;Wissen hat eine wunderbare Eigenschaft:
&lt;br&gt;Es verdoppelt sich, wenn man es teilt.
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257783&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257783&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/html%2C-rss%2C-atom%2C-Oh-My%21-tp26254614p26257783.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256919</id>
	<title>Re: need help using cherrypy</title>
	<published>2009-11-08T11:15:14Z</published>
	<updated>2009-11-08T11:15:14Z</updated>
	<author>
		<name>Madhusudhan sunkara</name>
	</author>
	<content type="html">&lt;br&gt;i am using 3.1.2 , even example is not working for me &lt;br&gt;:/usr/lib/python2.5/site-packages/cherrypy/tutorial/tut03_get_and_post.py&lt;br&gt;---------------------------------------------------------------------------&lt;br&gt; def index(self):&lt;br&gt;
        # Ask for the user&amp;#39;s name.&lt;br&gt;        return &amp;#39;&amp;#39;&amp;#39;&lt;br&gt;            &amp;lt;form action=&amp;quot;greetUser&amp;quot; method=&amp;quot;GET&amp;quot;&amp;gt;&lt;br&gt;            What is your name?&lt;br&gt;            &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; /&amp;gt;&lt;br&gt;
            &amp;lt;input type=&amp;quot;submit&amp;quot; /&amp;gt;&lt;br&gt;            &amp;lt;/form&amp;gt;&amp;#39;&amp;#39;&amp;#39;&lt;br&gt;    index.exposed = True&lt;br&gt;    &lt;br&gt;    def greetUser(self, name = None):&lt;br&gt;        # CherryPy passes all GET and POST variables as method parameters.&lt;br&gt;
        # It doesn&amp;#39;t make a difference where the variables come from, how&lt;br&gt;        # large their contents are, and so on.&lt;br&gt;        #&lt;br&gt;        # You can define default parameter values as usual. In this&lt;br&gt;        # example, the &amp;quot;name&amp;quot; parameter defaults to None so we can check&lt;br&gt;
        # if a name was actually specified.&lt;br&gt;        &lt;br&gt;        if name:&lt;br&gt;            # Greet the user!&lt;br&gt;            return &amp;quot;Hey %s, what&amp;#39;s up?&amp;quot; % name&lt;br&gt;        else:&lt;br&gt;            if name is None:&lt;br&gt;
                # No name was specified&lt;br&gt;                return &amp;#39;Please enter your name &amp;lt;a href=&amp;quot;./&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;#39;&lt;br&gt;            else:&lt;br&gt;                return &amp;#39;No, really, enter your name &amp;lt;a href=&amp;quot;./&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;#39;&lt;br&gt;
    greetUser.exposed = True&lt;br&gt;-----------------------------------------------------&lt;br&gt;&lt;br&gt;is there something wrong with this version?&lt;br&gt;please help&lt;br&gt;&lt;br&gt;&lt;span class=&quot;gI&quot;&gt;&lt;/span&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 12:32 AM, Madhusudhan sunkara &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256919&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;madhusudhan.sunkara@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi All,&lt;br&gt;&lt;br&gt;i know this is very basic usage, i am a new user of cherrypy.&lt;br&gt;i have a problem like below&lt;br&gt;
&lt;br&gt;def index(self):&lt;br&gt;        return &amp;quot;&amp;quot;&amp;quot;&amp;lt;form method=&amp;#39;POST&amp;#39; action=&amp;#39;/form&amp;#39;&amp;gt;&lt;br&gt;
        type something &amp;lt;input type=&amp;#39;text&amp;#39; name=&amp;#39;inp&amp;#39;&amp;gt;&lt;br&gt;        &amp;lt;input type=&amp;#39;submit&amp;#39;&amp;gt;&lt;br&gt;        &amp;lt;/form&amp;gt;&amp;quot;&amp;quot;&amp;quot;&lt;br&gt;    index.exposed=True&lt;br&gt;&lt;br&gt;    def form(self,inp=None,**kw):&lt;br&gt;

        return &amp;#39;you typed : &amp;quot;%s&amp;quot;&amp;#39;%(inp,)&lt;br&gt;    form.exposed = True&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;both methods are defined in simple class , when data is submitted it is not received in form method.&lt;br&gt;i am getting None (the default value)&lt;br&gt;

&lt;br&gt;is there anything i am missing ?&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;-- &lt;br&gt;Madhu&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Madhu Sudhan Sunkara&lt;br&gt;&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256919&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt; &lt;br&gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256919&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/need-help-using-cherrypy-tp26256836p26256919.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256836</id>
	<title>need help using cherrypy</title>
	<published>2009-11-08T11:02:19Z</published>
	<updated>2009-11-08T11:02:19Z</updated>
	<author>
		<name>Madhusudhan sunkara</name>
	</author>
	<content type="html">Hi All,&lt;br&gt;&lt;br&gt;i know this is very basic usage, i am a new user of cherrypy.&lt;br&gt;i have a problem like below&lt;br&gt;&lt;br&gt;def index(self):&lt;br&gt;        return &amp;quot;&amp;quot;&amp;quot;&amp;lt;form method=&amp;#39;POST&amp;#39; action=&amp;#39;/form&amp;#39;&amp;gt;&lt;br&gt;
        type something &amp;lt;input type=&amp;#39;text&amp;#39; name=&amp;#39;inp&amp;#39;&amp;gt;&lt;br&gt;        &amp;lt;input type=&amp;#39;submit&amp;#39;&amp;gt;&lt;br&gt;        &amp;lt;/form&amp;gt;&amp;quot;&amp;quot;&amp;quot;&lt;br&gt;    index.exposed=True&lt;br&gt;&lt;br&gt;    def form(self,inp=None,**kw):&lt;br&gt;
        return &amp;#39;you typed : &amp;quot;%s&amp;quot;&amp;#39;%(inp,)&lt;br&gt;    form.exposed = True&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;both methods are defined in simple class , when data is submitted it is not received in form method.&lt;br&gt;i am getting None (the default value)&lt;br&gt;
&lt;br&gt;is there anything i am missing ?&lt;br&gt;&lt;br&gt;-- &lt;br&gt;Madhu&lt;br&gt;&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256836&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt; &lt;br&gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256836&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/need-help-using-cherrypy-tp26256836p26256836.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26255354</id>
	<title>Re: html, rss, atom, Oh My!</title>
	<published>2009-11-08T08:38:15Z</published>
	<updated>2009-11-08T08:38:15Z</updated>
	<author>
		<name>Gerold Penz-2</name>
	</author>
	<content type="html">&lt;br&gt;dundeemt schrieb:
&lt;br&gt;&amp;gt; /controller/noun/verb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;returns html (the default)
&lt;br&gt;&amp;gt; /controller/noun/verb.html &amp;nbsp; &amp;nbsp; returns html
&lt;br&gt;&amp;gt; /controller/noun/verb.rss &amp;nbsp; &amp;nbsp; &amp;nbsp; returns an rss feed
&lt;br&gt;&amp;gt; /controller/noun/verb.json &amp;nbsp; &amp;nbsp; returns json
&lt;br&gt;&lt;br&gt;Hello Jeff!
&lt;br&gt;&lt;br&gt;What`s about this?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;class Noun(object):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def verb(*args, **kwargs):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return html
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def verb_html(*args, **kwargs):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return verb(*args, **kwargs)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def verb_rss(*args, **kwargs):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return rss
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def verb_json(*args, **kwargs):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return json
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Gerold
&lt;br&gt;:-)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;________________________________________________________________________
&lt;br&gt;Gerold Penz - &lt;a href=&quot;http://halvar.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://halvar.at&lt;/a&gt;&lt;br&gt;Wissen hat eine wunderbare Eigenschaft:
&lt;br&gt;Es verdoppelt sich, wenn man es teilt.
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255354&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255354&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/html%2C-rss%2C-atom%2C-Oh-My%21-tp26254614p26255354.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26254614</id>
	<title>html, rss, atom, Oh My!</title>
	<published>2009-11-08T07:14:35Z</published>
	<updated>2009-11-08T07:14:35Z</updated>
	<author>
		<name>Jeff H-3</name>
	</author>
	<content type="html">&lt;br&gt;I am working on a back end controller to serve out data to various
&lt;br&gt;clients. &amp;nbsp;What I'm looking for is a way to return data in a variety of
&lt;br&gt;formats based on the client request. &amp;nbsp;for instance:
&lt;br&gt;&lt;br&gt;/controller/noun/verb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;returns html (the default)
&lt;br&gt;/controller/noun/verb.html &amp;nbsp; &amp;nbsp; returns html
&lt;br&gt;/controller/noun/verb.rss &amp;nbsp; &amp;nbsp; &amp;nbsp; returns an rss feed
&lt;br&gt;/controller/noun/verb.json &amp;nbsp; &amp;nbsp; returns json
&lt;br&gt;etc, etc.
&lt;br&gt;&lt;br&gt;My patterns may not always be so simple they might include some
&lt;br&gt;/controller/noun/verb/qualifier.rss
&lt;br&gt;&lt;br&gt;so I've been playing with
&lt;br&gt;class MyRouter:
&lt;br&gt;&amp;nbsp; &amp;nbsp; @cherrypy.expose
&lt;br&gt;&amp;nbsp; &amp;nbsp; def default(self, x=None, *args,**kwargs):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if x:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return '%s:[%s][%s]' % (x,args,kwargs)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return &amp;quot;No args found.&amp;quot;
&lt;br&gt;&lt;br&gt;where x is the controller and everything after that can vary wildly.
&lt;br&gt;&lt;br&gt;So I would be writing a router of sorts and then handling all of the
&lt;br&gt;mime type in the response myself. &amp;nbsp;Lots of heavy lifting. &amp;nbsp;My question
&lt;br&gt;is, &amp;quot;How much of this is redundant to what CP can already do and I'm
&lt;br&gt;just not looking the right places.&amp;quot; &amp;nbsp; My gut tells me that I am most
&lt;br&gt;likely reinventing the wheel and I would rather not if I could build
&lt;br&gt;on top of something that already exists.
&lt;br&gt;&lt;br&gt;The .rss/.xml is not a requirement, I could go with /rss, /xml etc &amp;nbsp;I
&lt;br&gt;just figured that the suffix might be easier to detect given the
&lt;br&gt;variability of the urls.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254614&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254614&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/html%2C-rss%2C-atom%2C-Oh-My%21-tp26254614p26254614.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26254518</id>
	<title>Re: Page handler url matching problem</title>
	<published>2009-11-08T07:01:56Z</published>
	<updated>2009-11-08T07:01:56Z</updated>
	<author>
		<name>Jeff H-3</name>
	</author>
	<content type="html">&lt;br&gt;--code--
&lt;br&gt;class MyRouter2:
&lt;br&gt;&amp;nbsp; &amp;nbsp; @cherrypy.expose
&lt;br&gt;&amp;nbsp; &amp;nbsp; def default(self, *args, **kwargs):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return '[%s]:[%s]' % (args,kwargs)
&lt;br&gt;&lt;br&gt;cherrypy.tree.mount(MyRouter2(), &amp;quot;/&amp;quot;, None)
&lt;br&gt;cherrypy.engine.start()
&lt;br&gt;cherrypy.engine.block()
&lt;br&gt;&lt;br&gt;--request--
&lt;br&gt;&lt;a href=&quot;http://localhost:8080/test/foo?action=new&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/test/foo?action=new&lt;/a&gt;&lt;br&gt;&lt;br&gt;--response--
&lt;br&gt;[('test', 'foo')]:[{'action': 'new'}]
&lt;br&gt;&lt;br&gt;--version info--
&lt;br&gt;cherrypy 3.1.2
&lt;br&gt;python 2.6.2
&lt;br&gt;&lt;br&gt;working here
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;Jeff
&lt;br&gt;&lt;br&gt;On Oct 26, 2:33 pm, Voltron &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254518&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nhy...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have an application mounted as test. This has a page handler called
&lt;br&gt;&amp;gt; foo. I cant seem to get the default handler to match this URL.:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://localhost:8080/test/foo?action=new&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/test/foo?action=new&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This was the handler I used:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  @cherrypy.expose
&lt;br&gt;&amp;gt;  def default(self, *args, **kwargs ):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This always error out with this traceback:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Traceback (most recent call last):
&lt;br&gt;&amp;gt;   File &amp;quot;C:\Python26\lib\site-packages\cherrypy\_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; 606, in respond
&lt;br&gt;&amp;gt;     cherrypy.response.body = self.handler()
&lt;br&gt;&amp;gt;   File &amp;quot;C:\Python26\lib\site-packages\cherrypy\_cpdispatch.py&amp;quot;, line
&lt;br&gt;&amp;gt; 27, in __call__
&lt;br&gt;&amp;gt;     test_callable_spec(self.callable, self.args, self.kwargs)
&lt;br&gt;&amp;gt;   File &amp;quot;C:\Python26\lib\site-packages\cherrypy\_cpdispatch.py&amp;quot;, line
&lt;br&gt;&amp;gt; 130, in test_callable_spec
&lt;br&gt;&amp;gt;     &amp;quot;parameters: %s&amp;quot; % &amp;quot;, &amp;quot;.join(extra_qs_params))
&lt;br&gt;&amp;gt; HTTPError: (404, 'Unexpected query string parameters: action')
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there something I am missing?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;/div&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254518&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254518&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Page-handler-url-matching-problem-tp26067071p26254518.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26158499</id>
	<title>Invitation to connect on LinkedIn</title>
	<published>2009-11-01T21:13:59Z</published>
	<updated>2009-11-01T21:13:59Z</updated>
	<author>
		<name>admin-311</name>
	</author>
	<content type="html">
&lt;html&gt;
  &lt;body&gt;

  

&lt;table border=&quot;0&quot; width=&quot;550&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;max-width:550px; border-top:4px solid #39C; font: 12px arial, sans-serif; margin: 0 auto;&quot;&gt;&lt;tr&gt;&lt;td&gt;  
  &lt;h1 style=&quot;color: #000; font: bold 23px arial; margin:5px 0;&quot;&gt;LinkedIn&lt;/h1&gt;


&lt;div style=&quot;font:13px arial, sans-serif; width:540px&quot;&gt;  
  &lt;p&gt;
    I'd like to add you to my professional network on LinkedIn.&lt;br /&gt;
&lt;br /&gt;
- Arjun
  &lt;/p&gt;
  &lt;p&gt;
        &lt;a href=&quot;https://www.linkedin.com/e/isd/834216935/Li9P3YSY/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Confirm that you know Arjun Kochhar&lt;/a&gt;
  &lt;/p&gt;
  
  &lt;p&gt;Every day, millions of professionals like &lt;strong&gt;Arjun Kochhar&lt;/strong&gt; use LinkedIn to connect with colleagues, find experts, and explore opportunities.&lt;/p&gt;
&lt;/div&gt;






  &lt;p style=&quot;width: 550px; margin: 3px auto; font: 10px arial, sans-serif; color: #999;&quot;&gt;&amp;#169; 2009, LinkedIn Corporation

&lt;/p&gt;

&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26158499&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt; &lt;br&gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26158499&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invitation-to-connect-on-LinkedIn-tp26158499p26158499.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26140794</id>
	<title>Re: Method dispatcher wiki example problem</title>
	<published>2009-10-31T02:07:03Z</published>
	<updated>2009-10-31T02:07:03Z</updated>
	<author>
		<name>Sylvain Hellegouarch</name>
	</author>
	<content type="html">&lt;br&gt;Voltron a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Taking the example from the wiki:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; import cherrypy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class Root():
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; exposed = True
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; def __init__(self, *things):
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.things = list(things)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; def GET(self):
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return repr(self.things)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; def POST(self, thing):
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.things.append(thing)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; root = Root(1, 2, 3)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; d = cherrypy.dispatch.MethodDispatcher()
&lt;br&gt;&amp;gt; conf = {'/': {'request.dispatch': d}}
&lt;br&gt;&amp;gt; cherrypy.tree.mount(root, &amp;quot;/&amp;quot;, conf)
&lt;br&gt;&amp;gt; cherrypy.server.socket_port=8081
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; cherrypy.quickstart(root)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This fails with a traceback:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Traceback (most recent call last):
&lt;br&gt;&amp;gt; &amp;nbsp; File &amp;quot;C:\Python26\lib\site-packages\cherrypy\_cprequest.py&amp;quot;, line
&lt;br&gt;&amp;gt; 606, in respond
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cherrypy.response.body = self.handler()
&lt;br&gt;&amp;gt; &amp;nbsp; File &amp;quot;C:\Python26\lib\site-packages\cherrypy\_cpdispatch.py&amp;quot;, line
&lt;br&gt;&amp;gt; 25, in __call__
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; return self.callable(*self.args, **self.kwargs)
&lt;br&gt;&amp;gt; AttributeError: Root instance has no __call__ method
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can someone tell me what I have done wrong? Thanks
&lt;/div&gt;&lt;br&gt;You are mounting the application with cherrypy.tree.mount and you do 
&lt;br&gt;provide the conf but then you override it with cherrypy.quickstart 
&lt;br&gt;without providing the conf.
&lt;br&gt;&lt;br&gt;Either:
&lt;br&gt;&lt;br&gt;cherrypy.tree.mount(root, &amp;quot;/&amp;quot;, conf)
&lt;br&gt;cherrypy.engine.start()
&lt;br&gt;cherrypy.engine.block()
&lt;br&gt;&lt;br&gt;Or:
&lt;br&gt;&lt;br&gt;cherrypy.quickstart(root, &amp;quot;/&amp;quot;, conf)
&lt;br&gt;&lt;br&gt;- Sylvain
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;cherrypy-users&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26140794&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26140794&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cherrypy-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/cherrypy-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/cherrypy-users?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cherrypy-users-f16266.html&quot; embed=&quot;fixTarget[16266]&quot; target=&quot;_top&quot; &gt;cherrypy-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Method-dispatcher-wiki-example-problem-tp26140584p26140794.html" />
</entry>

</feed>
