Re: How to: pyramid composite app with urlmap under python 3?

2012-11-07 Thread Arndt Droullier
uWSGI supports multiple apps. Though in a different way than paste. Have
you tried it?

Arndt.

2012/11/5 Benjamin Behringer benjamin.behrin...@gmail.com

 Hi,

 I want to use a composite app in pyramid with urlmap under python 3. Is
 there a url mapper that will work with python3? The one from paste
 obviously doesn't.



-- 
DV Electric / Arndt Droullier / Nive cms cms.nive.co

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: Context still is DefaultRootFactory although root_factory is custom

2012-11-07 Thread khairi hafsham
thank you for the fast reply. after hours of debugging, it turned out to be 
a silly mistake. there was another duplicate configurator overwriting the 
one that i set with the custom rootfactory. sorry for wasting your time.

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/q5UPtNf2Qx4J.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Mako 0.7.3 Released

2012-11-07 Thread Michael Bayer
hey lists -

Mako 0.7.3 is now available.

This is a bugfix release which includes the following fixes listed below.

Download Mako 0.7.3 at:

http://www.makotemplates.org/download.html


0.7.3
- [bug] legacy_html_escape function, used when
  Markupsafe isn't installed, was using an inline-compiled
  regexp which causes major slowdowns on Python 3.3;
  is now precompiled.

- [bug] AST supporting now supports tuple-packed
  function arguments inside pure-python def
  or lambda expressions.  [ticket:201]

- [bug] Fixed Py3K bug in the Babel extension.

- [bug] Fixed the filter attribute of the
  %text tag so that it pulls locally specified
  identifiers from the context the same
  way as that of %block and %filter.

- [bug] Fixed bug in plugin loader to correctly
  raise exception when non-existent plugin
  is specified.

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



recommend a wysiwyg editor for a pyramid project?

2012-11-07 Thread Chris Withers

Hi All,

What's the editor choice to go for nowadays?

I'm ideally looking for one with good support for uploading images, 
resizing them client or server side, and with good clean html generated 
that I can style with my own css.


thanks for any help,

Chris

--
Simplistix - Content Management, Batch Processing  Python Consulting
   - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



How to handle multiple views in one page

2012-11-07 Thread Marten
Hello,

I searched a lot through documentation and examples, but I couldn't find 
any best practise on how to tie together a bunch of views to one page.

You'll surely know dashbords that contain dozends of containers like load 
graphs, contact details, latest tasks in history, pending transactions of 
whatever ... Each container on its own is a usual view that renders fine on 
its own, but there has to be some master page, that includes all these 
views. And it would be crazy to prepare all data in one view and feed a 
mega-template.

As similar problem arised during my development, when handling non-static 
headers like menu tree and user profile (Hello name! or Login). I 
know how to define a template so it loads a surrounding master template, 
but I don't know how to tell feed that with data. I also know how to bind a 
subscriber 
to a new request, but that would be processed before the view is called. 
And especially regarding a login view it depends on whether the login 
attempt was successful or not which Hello name! or Login has to be 
rendered in the surrounding template. I think the views itself shouldn't 
know anything about menus and user details. Access permissions can be 
defined by roles on views.

What is the best practise to do such things? Can you refer to any public 
source code on git (was well as a working website running this code so I 
see if it does what I mean) or examples in documentation? Thanks.

Kind regards
Marten

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/0quNBRga8dMJ.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: recommend a wysiwyg editor for a pyramid project?

2012-11-07 Thread Marten
I would be astounded so see something like that. Unlike virtually static 
pages, images and stylesheets, that can be extended with some 
syntax-highlighted PHP code in Dreamweaver, pyramid allows to use arbitrary 
renderers (e.g. Mako or Jinja2), each having a different syntax. The folder 
with the templates which are rendererd by views is probably stored in a 
different place than static files like images snd stylesheets, so accessing 
the template files directly in a browser won't work until you startup your 
Pyramid container, because the URLs of included static files don't match. 
Also, to fill the templates with data and see how it renders tables etc. 
you have to program views.

I typically get templates from the webdesigner, then I replace e.g. table 
rows with loops in the according template language, put images and 
stylesheets somewhere in the static file folder and then I check if it 
looks like what the designer gave me when accessing the specific view in a 
browser like the users later would.

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/Sabf2KEbHtsJ.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: recommend a wysiwyg editor for a pyramid project?

2012-11-07 Thread Chris Withers

On 07/11/2012 21:36, Marten wrote:

I would be astounded so see something like that.


I'm afraid you have astoundingly the wrong end of the stick ;-)

Admittedly, I perhaps wasn't as clear as I should have been, but I'm 
looking at things like TinyMCE and FCKEditor. (or even, showing my age, 
Kupu)


I want to pick something that will let content authors put together 
pages including styled headers, paragraphs, etc and image. I'd like them 
to be able to upload the image through the editor and have the image 
resized, if possible on the client side, if not, on the server.


Just wondering which paths people had been down with Pyramid and if 
there are any recommendations...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing  Python Consulting
   - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: recommend a wysiwyg editor for a pyramid project?

2012-11-07 Thread Steve Piercy

Here's one.
http://ckeditor.com/

And the file upload/manager plugin for it:
https://github.com/simogeo/Filemanager

If you use it, you must provide some kind of auth policy, and I 
recommend you change the default path for UserFiles to reduce 
the attacks by the Google dork technique.  Support is here:

http://forum.filemanager.corefive.com/

--steve


On 11/7/12 at 9:18 PM, ch...@simplistix.co.uk (Chris Withers) pronounced:


Hi All,

What's the editor choice to go for nowadays?

I'm ideally looking for one with good support for uploading 
images, resizing them client or server side, and with good 
clean html generated that I can style with my own css.


thanks for any help,

Chris

--
Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk



--steve

--
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: recommend a wysiwyg editor for a pyramid project?

2012-11-07 Thread Chris Withers

On 07/11/2012 23:20, Chris Withers wrote:

On 07/11/2012 21:36, Marten wrote:

I would be astounded so see something like that.


I'm afraid you have astoundingly the wrong end of the stick ;-)

Admittedly, I perhaps wasn't as clear as I should have been, but I'm
looking at things like TinyMCE and FCKEditor. (or even, showing my age,
Kupu)

I want to pick something that will let content authors put together
pages including styled headers, paragraphs, etc and image. I'd like them
to be able to upload the image through the editor and have the image
resized, if possible on the client side, if not, on the server.

Just wondering which paths people had been down with Pyramid and if
there are any recommendations...


...and maybe something that already has proven integration with deform?

Chris

--
Simplistix - Content Management, Batch Processing  Python Consulting
   - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: recommend a wysiwyg editor for a pyramid project?

2012-11-07 Thread andrew Sawyers
Chris,
On Wed, 2012-11-07 at 23:28 +, Chris Withers wrote:
 On 07/11/2012 23:20, Chris Withers wrote:
  On 07/11/2012 21:36, Marten wrote:
 
  Admittedly, I perhaps wasn't as clear as I should have been, but I'm
  looking at things like TinyMCE and FCKEditor. (or even, showing my age,
  Kupu)
 
FWIW I liked my experience with TinyMCE - but can't say if it's been
integrated with deform
 ...and maybe something that already has proven integration with deform?
 
 Chris
 
 -- 
 Simplistix - Content Management, Batch Processing  Python Consulting
 - http://www.simplistix.co.uk
 
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: recommend a wysiwyg editor for a pyramid project?

2012-11-07 Thread Carlos de la Guardia
Deform uses TinyMCE for the RichText widget.

Carlos de la Guardia

On Wed, Nov 7, 2012 at 5:28 PM, Chris Withers ch...@simplistix.co.uk wrote:
 On 07/11/2012 23:20, Chris Withers wrote:

 On 07/11/2012 21:36, Marten wrote:

 I would be astounded so see something like that.


 I'm afraid you have astoundingly the wrong end of the stick ;-)

 Admittedly, I perhaps wasn't as clear as I should have been, but I'm
 looking at things like TinyMCE and FCKEditor. (or even, showing my age,
 Kupu)

 I want to pick something that will let content authors put together
 pages including styled headers, paragraphs, etc and image. I'd like them
 to be able to upload the image through the editor and have the image
 resized, if possible on the client side, if not, on the server.

 Just wondering which paths people had been down with Pyramid and if
 there are any recommendations...


 ...and maybe something that already has proven integration with deform?


 Chris

 --
 Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk

 --
 You received this message because you are subscribed to the Google Groups
 pylons-discuss group.
 To post to this group, send email to pylons-discuss@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-discuss+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/pylons-discuss?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: recommend a wysiwyg editor for a pyramid project?

2012-11-07 Thread Steve Piercy

On 11/7/12 at 11:28 PM, ch...@simplistix.co.uk (Chris Withers) pronounced:


On 07/11/2012 23:20, Chris Withers wrote:

Just wondering which paths people had been down with Pyramid and if
there are any recommendations...


I want to pick something that will let content authors put together
pages including styled headers, paragraphs, etc and image. I'd like them
to be able to upload the image through the editor and have the image
resized, if possible on the client side, if not, on the server.

...and maybe something that already has proven integration with deform?


The Filemanager plugin for CKEditor (formerly the unfortunately 
named FCKEditor) has a Python module, but I have no idea of its 
integration with Pyramid or or deform.  Perhaps its user group 
may have more insight.


As far as image resizing on the client side, that is a 
challenge.  The last I checked, the only options required the 
use of Flash or Java, both of which have many issues (security, 
having clients that support Flash or Java, etc.).  That said, 
I've had reasonable success with JFileUpload and its plugins 
across all platforms.  Demo:

http://jfileupload.com/products/demo/applet_http_jimageupload.html

There's also this one, but client-side image resizing is 
supported only on Mozilla Firefox and Google Chrome.

http://blueimp.github.com/jQuery-File-Upload/

--steve

--steve

--
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: How to handle multiple views in one page

2012-11-07 Thread Andreas Kaiser

On 07.11.2012, at 22:21, Marten lehm...@cnm.de wrote:

 I searched a lot through documentation and examples, but I couldn't find any 
 best practise on how to tie together a bunch of views to one page.
 
 You'll surely know dashbords that contain dozends of containers like load 
 graphs, contact details, latest tasks in history, pending transactions of 
 whatever ... Each container on its own is a usual view that renders fine on 
 its own, but there has to be some master page, that includes all these views. 
 And it would be crazy to prepare all data in one view and feed a 
 mega-template.
 
 As similar problem arised during my development, when handling non-static 
 headers like menu tree and user profile (Hello name! or Login). I know 
 how to define a template so it loads a surrounding master template, but I 
 don't know how to tell feed that with data. I also know how to bind a 
 subscriber to a new request, but that would be processed before the view is 
 called. And especially regarding a login view it depends on whether the login 
 attempt was successful or not which Hello name! or Login has to be 
 rendered in the surrounding template. I think the views itself shouldn't know 
 anything about menus and user details. Access permissions can be defined by 
 roles on views.
 
 What is the best practise to do such things? Can you refer to any public 
 source code on git (was well as a working website running this code so I see 
 if it does what I mean) or examples in documentation? Thanks.

pyramid_layout might be what you are looking for:

 - http://pypi.python.org/pypi/pyramid_layout
 - http://pyramid_layout.readthedocs.org/en/latest/index.html


HTH,

Andreas

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.