Re: Pyramid 1.4 (final) released

2012-12-18 Thread Domen Kožar
Great work :)

On Tuesday, December 18, 2012 9:12:37 AM UTC+1, Chris McDonough wrote:

 Pyramid 1.4 has been released.  Its primary features are: 

 - Easy custom JSON serialization of objects returned from views. 

 - Partial Mako and Chameleon template rendering. 

 - Third-party addable view, route, and subscriber predicates. 

 - Subrequest support. 

 - Improved documentation. 

 A detailed What's New in Pyramid 1.4 document is available at 

 http://docs.pylonsproject.org/projects/pyramid/en/master/whatsnew-1.4.html 

 Pyramid 1.4 requires Python 2.6, 2.7, 3.2 or 3.3. 

 The documentation for the release is available at 
 http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/ 

 You can install it via PyPI: 

   easy_install Pyramid==1.4 

 Enjoy, and please report any issues you find to the issue tracker at 
 https://github.com/Pylons/pyramid/issues 

 Thanks! 

 - C 




-- 
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/-/T7zE_6ny9ocJ.
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.



pyramid_marrowmailer 0.1 released!

2012-09-17 Thread Domen Kožar
Hi all,

since I have successfully used TurboMail in the past, I made 
pyramid_marrowmailer
integration package for it's successor, marrow.mailer. Do report any 
questions/issues :)

Source: https://github.com/iElectric/pyramid_marrowmailer
marrow.mailer source: https://github.com/marrow/marrow.mailer

Cheers, Domen

-- 
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/-/QKdOaj6pPQQJ.
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: Minimatic for Pyramid?

2012-06-13 Thread Domen Kožar
FTR, there is also https://github.com/FormAlchemy/pyramid_fanstatic

On Wed, Jun 13, 2012 at 3:17 PM, Kai Groner k...@gronr.com wrote:
 I created patch for pyramid_webassets that adds support for asset specs.
  I'm hoping maybe it will be in a future release.

 https://github.com/sontek/pyramid_webassets/pull/4


 Kai


 On Wed, Jun 13, 2012 at 3:00 AM, Robert Forkel xrotw...@googlemail.com
 wrote:

 I just started using webassets with mako templates for an existing
 project. All assets are included in a site template (site.mako).
 Assets come from various sources, e.g. the deform package. So what I
 do (which may be crazy): Have my build script parse site.mako to
 assemble the bundles (resolving resource specs of the form
 'deform:static/...' to absolute paths). This way, using a new asset
 does only require adding it to site.mako.
 So far I have not run into a show-stopper with this.

 regards
 robert

 On Wed, Jun 13, 2012 at 8:25 AM, Randall Leeds randall.le...@gmail.com
 wrote:
  On Tue, Jun 12, 2012 at 2:59 AM, Zhenghao Huang zhengha...@gmail.com
  wrote:
  Hi,
 
  Thank you for your speedy response, I was quite shocked!
 
  I read through the documentation.  I am using Mako templates and they
  don't
  seem to have something for that.  Do you have any real examples of it's
  use
  in the templates.  My mind is thinking along the lines of Minimatic's
  way:
 
  Inside base.mako:
  ${h.javascript_link('/static/js/base.js',
  dict(file='/static/js/cache.js',
  minify='minify'))}
 
  The way I treat this is to make these decisions in a separate file and
  name my assets in an asset environment.
  I use pyramid_webassets and add the webassets environment to my
  template globals.
 
  @subscriber(BeforeRender)
  def add_global(event):
     environment =
  event['request'].registry.queryUtility(IWebAssetsEnvironment)
     event['environment'] = environment
 
  Where IWebAssetsEnvironment comes from pyramid_webassets.
 
  Then in my template I have things like:
 
   link rel=stylesheet
         tal:attributes=href href
         tal:repeat=href environment['css'].urls() /
 
  which is a chameleon template. Here I get a single link tag if
  environment['css'] is concatenated (+minified) and multiple if not.
  Running with webassets in debug mode is all it takes to flip the
  switch, and I do that in my paste-style .ini.
 
  --
  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.


 --
 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: What about a pyramid collective ?

2012-04-12 Thread Domen Kožar
My two cents:

Giving a big group of people commit access to addon packages results in
conflicts if intended commit was useful to everyone. Most simple example is
breaking tests for sake of being lazy and adding functionality. It can be
of course mostly avoided, but not prevented.

Having something like djangopackages.com + pypi classifier would achieve
the same goal. Pull requests are also easy to make, I would propose rather
to have a good read about preferred way of contributing to package
maintainers.

Also managing permissions (or basically and configuration) for
organisations on github in PITA.

Cheers, Domen

On Thu, Apr 12, 2012 at 2:23 PM, Chris Rossi ch...@archimedeanco.comwrote:

 I don't want to discourage anyone from doing this, but my initial thought,
 at least, is that the Plone collective came from a place and a time where
 hosting your own code in public wasn't ridiculously easy the way it is now.
  Now anyone can host whatever they want on Github.  Or Bitbucket,
 Sourceforge, Launchpad, etc  From reading the thread I do so that
 beyond just a place to host there does seem to be a desire to have a sort
 of clearing house that is one place people can go to to see what's in the
 collective, which makes sense.  But in this day and age, given the options
 to host and distribute, that could be as simple as a web page that acts as
 a registry for people's projects.  Managing that might be a little bit
 easier and be just as good.  Just a thought.

 Chris

  --
 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: GSOC Mentors

2012-04-02 Thread Domen Kožar
Today is the last day to apply under Python organisation (actually
it's already too late, but let's do our best).

We need:

- at least 3 mentors (TODO: send me your: full name, email and phone
number)
- ideas page (TODO: do we have anything from last year or sprints
ideas?)
- logo (DONE)
- dedicated mailing list (TODO: can we reuse last years and how?)

When we have that, I'll send the word forward!

Cheers, Domen

-- 
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: GSOC Mentors

2012-04-02 Thread Domen Kožar
Great, two more to go!

On Mon, Apr 2, 2012 at 4:55 PM, John Anderson son...@gmail.com wrote:

 On Mon, Apr 2, 2012 at 9:26 AM, Domen Kožar do...@dev.si wrote:

 Today is the last day to apply under Python organisation (actually
 it's already too late, but let's do our best).

 We need:

 - at least 3 mentors (TODO: send me your: full name, email and phone
 number)
 - ideas page (TODO: do we have anything from last year or sprints
 ideas?)
 - logo (DONE)
 - dedicated mailing list (TODO: can we reuse last years and how?)

 When we have that, I'll send the word forward!

 Cheers, Domen



 I'm willing to be a mentor if one is still needed:
 John Anderson
 son...@gmail.com
 (850) 463-0010

 --
 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: GSOC Mentors

2012-04-02 Thread Domen Kožar
I think Chris is right :)

We need one more mentor and the mailing list, let's make this happen!

On Mon, Apr 2, 2012 at 9:38 PM, Chris McDonough chr...@plope.com wrote:

 On Mon, 2012-04-02 at 13:13 -0500, John Anderson wrote:
 
 
  On Mon, Apr 2, 2012 at 1:06 PM, Joe Dallago jd.dall...@gmail.com
  wrote:
  Chris mentioned that he would be interested in being a mentor,
  as long as he didn't have to lead the effort.  Michael
  Merickel was also interested, if I remember correctly.  I just
  contacted him, so if he is still interested I'm sure he will
  post here.
 
 
 
 
 
  What does it take to the lead the effort?   I'm not against taking on
  that role but also don't know if I would be the best one for it since
  I haven't done it before.
 
 
  It would probably work best if someone like raydeo or mcdonc lead and
  I worked with them to offset the time required to do it.

 I think Domen is implicitly volunteering. ;-)  At least I hope he is...

 - C



 --
 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: GSOC Mentors

2012-04-02 Thread Domen Kožar
Michael Merickel: can you send me your phone number? Thanks!

On Mon, Apr 2, 2012 at 9:50 PM, Joe Dallago jd.dall...@gmail.com wrote:

 By my count that's three mentors, isn't that all we need?
 On Apr 2, 2012 2:47 PM, Domen Kožar do...@dev.si wrote:

 I think Chris is right :)

 We need one more mentor and the mailing list, let's make this happen!

 On Mon, Apr 2, 2012 at 9:38 PM, Chris McDonough chr...@plope.com wrote:

 On Mon, 2012-04-02 at 13:13 -0500, John Anderson wrote:
 
 
  On Mon, Apr 2, 2012 at 1:06 PM, Joe Dallago jd.dall...@gmail.com
  wrote:
  Chris mentioned that he would be interested in being a mentor,
  as long as he didn't have to lead the effort.  Michael
  Merickel was also interested, if I remember correctly.  I just
  contacted him, so if he is still interested I'm sure he will
  post here.
 
 
 
 
 
  What does it take to the lead the effort?   I'm not against taking on
  that role but also don't know if I would be the best one for it since
  I haven't done it before.
 
 
  It would probably work best if someone like raydeo or mcdonc lead and
  I worked with them to offset the time required to do it.

 I think Domen is implicitly volunteering. ;-)  At least I hope he is...

 - C



 --
 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.

  --
 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: Documentation overhaul specifics

2012-02-14 Thread Domen Kožar
Hi all,

chipin is pretty easy to use, they don't take any fees: http://chipin.com/

I'd love to donate 50€.

Cheers, Domen

On Feb 13, 9:52 pm, Eric Rasmussen ericrasmus...@gmail.com wrote:
 I originally wrote the Akhet auth demo at a time when there weren't any
 examples showing how to integrate Pyramid's auth features with SQLAlchemy.
 It might still be useful in that sense, for people who need a quick start
 guide to get from the standalone examples (usually global lists or
 dictionaries of users/groups) to a working example with SQLAlchemy.

 Aside from that, I think Michael's demo (which I read and found quite
 helpful!) takes precedence as a learning tool.

 I could have sworn I had also found a demo of Michael's that used bcrypt
 for password hashing, and if the Akhet demo is going to include
 users/groups it should probably be updated to use bcrypt. I've started
 using it in my newest projects, but I can't seem to find the example at the
 moment.

 Thanks,
 Eric

 On Mon, Feb 13, 2012 at 12:30 PM, Michael Merickel mmeri...@gmail.comwrote:







  On Mon, Feb 13, 2012 at 2:06 PM, Mike Orr sluggos...@gmail.com wrote:

  On Mon, Feb 13, 2012 at 11:49 AM, Michael Merickel mmeri...@gmail.com
  wrote:
   Out of curiosity have you read
  http://michael.merickel.org/projects/pyramid_auth_demo/and did it
  help at
   all? It was originally written as an auth tutorial/demo separately, but
  I
   did have goals of incorporating its ideas into the docs somehow, but
   unfortunately I haven't gotten much feedback on whether it's actually
  useful
   for people or not.

  Where is this article publicized? I didn't know it or your website
  existed.

  It's not publicized other than some linking in IRC, the cookbook, and as
  part of my PloneConf talk.

  --
  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: Third party Service webhelpers?

2009-05-24 Thread Domen Kožar

Few weeks ago I was thinking about a similar feature for WebHelpers.
Maybe a way to go is to create a ext namespace that would work like
third party services and everyone could release this utilities. I'm
sure everyone has some snippets in helpers that could solves somebody
else's problem. Just a thought.

About the 1.0beta and dropping legacy code, that makes sense. If you
need rails package, stay behind, if you dont, move to 1.0.

On May 24, 4:45 am, Mike Orr sluggos...@gmail.com wrote:
 On Sat, May 23, 2009 at 6:54 PM, Ben Bangert b...@groovie.org wrote:

  On May 23, 2009, at 4:26 PM, Jorge Vargas wrote:

  The net today is full with services we pull and mix and match between
  our sites.
  - Google ads
  - google analitics
  - youtube, vimeo, embed tags
  - other site specific tags
  - post to reddit,digg,etc buttons
  - RSS buttons
  - etc.

  So why not pack all those little snippets into a library?

  This ideas occurred to me and I want to know if people are already
  doing it, and if it's worth adding it to webhelpers or even releasing
  it as an addon package.

  what do you guys think?

  It makes sense to me. I don't think they'd be very large, so I'm
  inclined to think this would be part of WebHelpers? Or I suppose it
  could be a new little package called 'social helpers' or something, to
  indicate its for all the various common social tidbits people throw on
  websites.

 They might fit into WebHelpers if we define more precisely what they
 would be.   Functions that produce HTML and Javascript?  Would they be
 framework neutral or specific to Pylons?

 We could make a module or package for cloud services.  My first
 thought would be to put each provider in a separate module, although
 that might lead to lots of tiny modules.  But at this point each
 provider is pretty much unique.    I would veer toward those that make
 an attempt at interoperability (via OpenSocial, GData, etc), but those
 may not be what users need (e.g., some users need to tie specifically
 to YouTube because it's the biggest).

 Another question is whether WebHelpers could keep up with the changing
 providers.  Would we end up in the situation we were in earlier with
 Javascript libraries, where we pick one and then another one eclipses
 it?

 On another note, I'm putting together a WebHelpers 1.0 beta, and
 thinking this is a good time to delete webhelpers.rails and the other
 deprecated packages.  Would that seriously ruin anybody's day?  You
 can stick with the 0.6 series if you need them, and I don't think the
 Pylons dependency needs to change since easy_install should
 automatically pick the latest version, but you would still be able to
 downgrade without running afoul of the dependencies.

 --
 Mike Orr sluggos...@gmail.com
--~--~-~--~~~---~--~~
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: Mailer for Pylons

2009-05-05 Thread Domen Kožar

yesterday I heard for framework-independed http://www.python-turbomail.org/

On Apr 30, 8:00 am, Tomasz Narloch toma...@wp.pl wrote:
 karikris...@gmail.com pisze: Hi All,

  I have email messages send around 10 places. We use mako templates.
  Currently we use smtplib and rendered output to send email.

 I had similar problem.
 I create email table in database and add every email to database (with
 subject, text, sender, recipients, time  to send, time expired, etc.).
 Every 2 minutes crontab send a new emails. Do we have any mailer component 
 integrate email and mako together?

 I don't know.
--~--~-~--~~~---~--~~
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: can multiple config files be read / or included ?

2009-03-21 Thread Domen Kožar

take a look at test.ini

On Mar 20, 10:50 pm, Jonathan Vanasco jonat...@findmeon.com wrote:
 i've got quite a bit of stuff in my config files by now

 i'm wondering if there's a way to split it into multiple files.

 specifically:

 80% of the stuff in production.ini and development.ini is the same

 i'd like to either

 1- have both include a 'base' config, then override it
 2- have both include a 'base' config, then migrate only the diffs into
 each server file
--~--~-~--~~~---~--~~
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: Source encoding issues

2009-01-30 Thread Domen Kožar

Hey.

I know about the pep and how python source files are encoded, but the
interactive shell is something completely different. I wonder on what
local env variable does shell depend. Since I have all of them
either sl_SI.UTF8 or en_GB.UTF-8.

On Jan 31, 1:39 am, Damjan gdam...@gmail.com wrote:
 On Jan 30, 11:36 am, Domen Kožar ielect...@gmail.com wrote:

  I somewhat figured out that my u'strings' get encoded to latin, even
  though utf-8 is set as OS locale, vim encoding and python source
  encoding.

  After fiddling around, I got that far:http://paste.pocoo.org/show/101978/

  Any idea what could trigger such behaviour?

 You need to put # -*- coding: utf-8 -*-
 as one of the few first lines in your pytohn files. That way Python
 knows what encoding your strings are written in. (there's a pep about
 this too).

 The interactive python interpreter behaves a little different since it
 uses the locale when started and assumes strings are written in that
 locales charset.

 I guess the Pylons shell doesn't implement this same thing (ipython
 has the same bug).
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---