Re: Good hosting recommendations?

2011-03-29 Thread Garland, Ken R
Was with webfaction for 3 years, always having problems with over selling
their shared servers. I actually ended up writing a script to monitor and
send a notice to the support when the load went too high. They swore up and
down that they monitored such things, but I had to include the offending
processes frequently. If you search the support forums you'll find my
script.

I switched over to a dedicated VPS at vps.net for another few years, but the
price got to me after a while. It was great having my own host so to speak
(root and all) but in the end I couldn't justify the cost.

Now I'm using amazon's AWS and have been for almost a year. The cost is
right for me, and since I don't need a 24/7 web presence I shutdown my
instances from time to time to save some money. What I like most about AWS
is the amount of customization in their services, need load balancing or
storage, just add it and manage it yourself. They also have a free service
to check out, one micro instance which is plenty enough to run a web server
from.

On Tue, Mar 29, 2011 at 12:37 PM, Brian O'Connor gatzby...@gmail.comwrote:

 I can't recommend webfaction enough. They've been great. Awesome support,
 good pricing and they work for a wide variety of technology.

 I have no affiliation with them, just a happy customer of 2 years.
 On Mar 29, 2011 12:27 PM, Joe Dallago jd.dall...@gmail.com wrote:
  What does everyone use for hosting and why? I currently use bluehost, but
 I
  just want to see what is out there.
 
  --
  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: Good hosting recommendations?

2011-03-29 Thread Garland, Ken R
ping reply from one of my amazon instances:

Reply from x.x.x.x: bytes=32 time=9ms TTL=47
Reply from x.x.x.x: bytes=32 time=10ms TTL=47
Reply from x.x.x.x: bytes=32 time=10ms TTL=47
Reply from x.x.x.x: bytes=32 time=11ms TTL=47
Reply from x.x.x.x: bytes=32 time=9ms TTL=47

Figured you guys might want to see a usage report with total costs:

US East (Northern Virginia) Region Amazon EC2 running Linux/UNIX  $0.085 per
Small Instance (m1.small) instance-hour (or partial hour)98 Hrs8.33  $0.02
per Micro Instance (t1.micro) instance-hour (or partial hour)325 Hrs6.50 Amazon
EC2 EBS  $0.10 per GB-month of provisioned storage19.888 GB-Mo1.99  $0.10
per 1 million I/O requests204,003 IOs0.02  $0.15 per GB-Month of snapshot
data stored0.041 GB-Mo0.01  $0.01 per 10,000 gets (when loading a snapshot)666
Requests0.01  $0.01 per 1,000 puts (when saving a snapshot)6 Requests0.01
 16.87EU (Ireland) Region Amazon EC2 running Linux/UNIX  $0.025 per Micro
Instance (t1.micro) instance-hour (or partial hour)325 Hrs8.13 Amazon EC2
EBS  $0.11 per GB-month of provisioned storage11.512 GB-Mo1.27  $0.11 per 1
million I/O requests51,035 IOs0.019.41   Total Monthly Charge26.28


On Tue, Mar 29, 2011 at 12:59 PM, Daniel Holth dho...@gmail.com wrote:

 I like the VPS provider linode mainly because they have a 20ms ping time
 from where I am. It's cool to be able to ssh into the server and have it
 feel as close as the local machine.

  --
 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: New Pylons powered website: thesector.ca

2011-02-22 Thread Garland, Ken R
Looks great Yannick, glad you are still part of the community. Was wondering
what you have been up to lately.

 - Ken

On Tue, Feb 22, 2011 at 5:03 PM, Yannick Gingras yging...@ygingras.netwrote:


 Fellow Pyloneers,
  we're pleased to announce the release of a new Pylons powered tool to
 explore trends in the Canadian charitable sector:

 http://thesector.ca

 The site runs on TurboGears 2.1 (Pylons 1.0) with Mako templates and
 SQLAlchemy on top of a Postgres database.  I jolted some reflections
 on the joy of using an OLAP cube on my blog:


 http://ygingras.net/b/2011/2/exploring-the-charitable-sector-through-a-star-schema

 Thanks a lot to the Pylons developers, you delivered a massive amount
 of happiness to our small dev team while we were putting this
 together.

 --
 Yannick Gingras
 http://ygingras.net


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



Pylons and Pyramid discussion on Freenode

2010-11-08 Thread Garland, Ken R
To anyone interested there is a discussion going on right now on Freenode
#pylons regarding some pylons/pyramid conversion topics and general sense of
direction for how to handle various scenarios.

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-disc...@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: DOS attacks

2010-04-06 Thread Garland, Ken R
You would handle this at the firewall level, are you in charge of the
firewall?

The ideal here is to block the offending ip address or blocks of ip
addresses.

On Tue, Apr 6, 2010 at 6:46 PM, gazza burslem2...@yahoo.com wrote:

 Hey Guys,

 Somebody I'm told is sending DOS attacks to my site? I need some
 guidance on what to install. Driving me a little crazy.

 Ideas welcome...

 Thanks,
 Garyc

 --
 You received this message because you are subscribed to the Google Groups
 pylons-discuss group.
 To post to this group, send email to pylons-disc...@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@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-disc...@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: server hosting and pylons

2010-03-10 Thread Garland, Ken R
I've recently moved away from webfaction as their hosts were constantly
being over utilized.

Currently I use VPS.net and manage my own virtual servers. If this is just a
fun project then webfaction is a great place to host, quick and easy to
setup. If it is something you consider mission critical with maximum uptime
and control then you'll want a VPS solution.

On Wed, Mar 10, 2010 at 1:16 PM, Brian O'Connor gatzby...@gmail.com wrote:

 I've really enjoyed webfaction for all sorts of projects, including pylons.



 On 3/10/10, gazza burslem2...@yahoo.com wrote:
  Hiya,
 
  I want to port the web server Ive written in pylons to a linux server.
  Can anyboody recommend a company that are good to work with when
  dealing with Pylons?
 
  Much appreciated,
  Gazza
 
  --
  You received this message because you are subscribed to the Google Groups
  pylons-discuss group.
  To post to this group, send email to pylons-disc...@googlegroups.com.
  To unsubscribe from this group, send email to
  pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/pylons-discuss?hl=en.
 
 

 --
 Sent from my mobile device

 Brian O'Connor

 --
 You received this message because you are subscribed to the Google Groups
 pylons-discuss group.
 To post to this group, send email to pylons-disc...@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@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-disc...@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: server hosting and pylons

2010-03-10 Thread Garland, Ken R
So in a round about way you agree with everything I said.

I can understand if you don't want to manage a site, but I don't mind.
WebFaction is not up front with their issues as 100% of the time they were
unaware of the overload issues that were being experienced. I wrote my own
monitoring utility just to alert them of system problems and I was always
the first to open a ticket before their support staff was aware of the
issue. My contributions to monitoring have been posted in their support
forums. I was doing all the work already without any control, so I decided
to move to a VPS so I could do both and get results.

However, this is not the place for such arguments so I apologize.

On Wed, Mar 10, 2010 at 2:02 PM, Wyatt Baldwin
wyatt.lee.bald...@gmail.comwrote:

 On Mar 10, 10:22 am, Garland, Ken R garlan...@gmail.com wrote:
  I've recently moved away from webfaction as their hosts were constantly
  being over utilized.

 I've never had a problem with WebFaction. I really like that they're
 up front with regard to server issues. I think for a personal site or
 a demo, their basic plans are fine, but this is true of *any* hosting
 provider--when you need to go critical, low end plans generally aren't
 going to cut it.


  Currently I use VPS.net and manage my own virtual servers. If this is
 just a
  fun project then webfaction is a great place to host, quick and easy to
  setup. If it is something you consider mission critical with maximum
 uptime
  and control then you'll want a VPS solution.

 I'm not sure about this. I'd say it depends on the provider and the
 plan (and your needs, of course). I've had bad luck with VPS in the
 past, and the hassle of managing everything yourself is often not
 worth the effort.


  On Wed, Mar 10, 2010 at 1:16 PM, Brian O'Connor gatzby...@gmail.com
 wrote:
   I've really enjoyed webfaction for all sorts of projects, including
 pylons.
 
   On 3/10/10, gazza burslem2...@yahoo.com wrote:
Hiya,
 
I want to port the web server Ive written in pylons to a linux
 server.
Can anyboody recommend a company that are good to work with when
dealing with Pylons?
 
Much appreciated,
Gazza
 
--
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.compylons-discuss%2bunsubscr...@googlegroups.com
 pylons-discuss%2bunsubscr...@googlegroups.compylons-discuss%252bunsubscr...@googlegroups.com
 
   .
For more options, visit this group at
   http://groups.google.com/group/pylons-discuss?hl=en.
 
   --
   Sent from my mobile device
 
   Brian O'Connor
 
   --
   You received this message because you are subscribed to the Google
 Groups
   pylons-discuss group.
   To post to this group, send email to pylons-disc...@googlegroups.com.
   To unsubscribe from this group, send email to
   pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@googlegroups.com
 pylons-discuss%2bunsubscr...@googlegroups.compylons-discuss%252bunsubscr...@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-disc...@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@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-disc...@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: Pylons RC1 (disappeared?)

2010-03-08 Thread Garland, Ken R
Check the IRC chat log, I don't recall the details but Ben pulled the RC1
from CheeseShop.

On Mon, Mar 8, 2010 at 10:52 PM, Wyatt Baldwin
wyatt.lee.bald...@gmail.comwrote:

 On Mar 8, 3:50 pm, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote:
  Within the last week or two, I installed Pylons RC1 on my development
  machine (via `bin/buildout -n` [I think]). Now I'm trying to install the
 project
  that uses it on another machine, but I can't find RC1 anywhere. Was
  that version recalled?

 Well, I found the download location for rc1:
 http://pylonshq.com/download/1.0rc1
 , which I guess is right where one might expect it to be.

 Now, I'm just confused as to how I installed it in the first place,
 because I don't remember doing it manually. I thought I got it from
 running buildout, but now I'm not sure.

 Anyway, is there anyone out there that can tell me if it's safe to use
 this version, or should I use 1.0b1 for now?

 --
 You received this message because you are subscribed to the Google Groups
 pylons-discuss group.
 To post to this group, send email to pylons-disc...@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@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-disc...@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: MySQL has gone away (again)

2010-01-20 Thread Garland, Ken R
There are a few things which might cause this issue. Have a look at the
following:

*wait_timeout*
*connect_timeout*
*max_allowed_packet*

I have no idea what your apps are trying to do in order to cause this so I'm
not able to speak about that. Have a look at them to determine if any of the
above settings may be effected during transactions.

On Wed, Jan 20, 2010 at 1:06 PM, grassoalvaro grassoalv...@yahoo.comwrote:

 Hi,

 i have problem with MySQL (like many others on groups and google). I
 have tried everything that i found, but nothing helped.

 This is my SQLAlchemy config:

 sqlalchemy.convert_unicode = true
 sqlalchemy.pool_size = 100
 sqlalchemy.pool_recycle = 3600
 sqlalchemy.url = mysql://user:passw...@127.0.0.1/database

 I'm using MySQL Distrib 5.0.87 percona, SQLAlchemy 0.5.4, MySQL-python
 1.2.3rc1.

 Is there any *good* and *checked* solution to solve this problem?

 --
 You received this message because you are subscribed to the Google Groups
 pylons-discuss group.
 To post to this group, send email to pylons-disc...@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@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-disc...@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: checkboxes and pylons

2009-10-12 Thread Garland, Ken R
form id=form name=form method=post action=results
fieldset id=checkboxbuttons
legendSelect Multiple Checkboxes/legend
fieldset id=checkboxbuttonsfrommarkup
div
% for wd in c.checkList:
input id=${wd} type=checkbox name=${wd} value=${wd}
% endfor
/div
/fieldset
div
input type=reset name=resetbutton value=Reset Form
input type=submit name=checkbutton value=Submit Form
/div
/form

On Mon, Oct 12, 2009 at 10:21 AM, gazza burslem2...@yahoo.com wrote:


 Hello,

 I am having some difficulty understanding how to implement checkboxes
 in pylons.

 table cellspacing=5
 % for item in c.list:
 tr
   td
   ${item.description}
   /td
   td
   $item.price}
   /td
 /tr

 %endfor

 I want to add a check box to each row and when the form gets posted
 pass the list of checkboxes to the python acton.

 Are there any simple examples on how to accomplish this?

 Much appreciated and I do apologise as I'm relatively new to pylons.

 Thanks,
 Garyc
 


--~--~-~--~~~---~--~~
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: checkboxes and pylons

2009-10-12 Thread Garland, Ken R
Here are some example controllers that are used from my earlier post:

def check(self):
for root, folders, files in os.walk('/home/py/xmlPostData/'):
c.checkList = files
return render('/check.mako')

def results(self):
session = request.environ['beaker.session']
if 'postxml' and 'posturl' in request.params:
c.postxml = request.params['postxml']
c.posturl = request.params['posturl']
elif 'checkbutton' in request.params:
c.check = []
for dist in request.params:
if re.search('checkbutton', dist):
pass
else:
c.check.append(request.params[dist])
session['checkList'] = c.check
session.save()
redirect_to(controller='lookup', action='postcheck')
else:
c.xmlResults = {}
for wd in session['checkList']:
c.xmlResults[wd] = session['xmlResponse']
return render('/results.mako')

I wouldn't say this is the best way to go about things and is rather sloppy.
This is all part of quite a major system so please overlook the example and
take what you need. It is poorly documented so I apologize for that.

On Mon, Oct 12, 2009 at 11:48 AM, gazza burslem2...@yahoo.com wrote:


 Hi,

 I actually went ahead and did what what Ken did, I will have a look it
 how Johnathan implemented it.

 table cellspacing=5
 % for item in c.list:
 tr
   td
   ${item.description}
   /td
   td
   $item.price}
   /td
td
   input type=checkbox name=$item.description value=
 $item.description/
   /td
 /tr

 When  posting to an action in the controller. How does it get the
 values of the checkboxes?

 Much appreciated,
 garyc




 On Oct 12, 10:17 am, Jonathan Vanasco jonat...@findmeon.com wrote:
  the simplest:
 
  td
 ${h.check_box('fieldname')}
  /td
 
  it looks like it was changed a bit though to:
  checkbox(name, value=’1’, checked=False, label=None, **attrs)
 
  when looping things like Ken suggested, i like to do stuff like this:
 
  % for id in list:
  %
  checked= ''
  if test:
  checked= ' checked=checked'
  %
 input name=checks value=${id}${checked}/
  %endfor
 


--~--~-~--~~~---~--~~
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: checkboxes and pylons

2009-10-12 Thread Garland, Ken R
you can raise RuntimeError() inside the controller and inspect any
properties you want.



On Mon, Oct 12, 2009 at 12:44 PM, gazza burslem2...@yahoo.com wrote:


 I tried the below:


 def checkKList(self,id):

 for item in request.params:
 print request.params[item]
 return 'Under Construction'


 I am not seeing any output except Under Construction. How can I
 determine request.params has any data?

 Much appreciated,
 Garyc

 On Oct 12, 10:52 am, Garland, Ken R garlan...@gmail.com wrote:
  Here are some example controllers that are used from my earlier post:
 
  def check(self):
  for root, folders, files in os.walk('/home/py/xmlPostData/'):
  c.checkList = files
  return render('/check.mako')
 
  def results(self):
  session = request.environ['beaker.session']
  if 'postxml' and 'posturl' in request.params:
  c.postxml = request.params['postxml']
  c.posturl = request.params['posturl']
  elif 'checkbutton' in request.params:
  c.check = []
  for dist in request.params:
  if re.search('checkbutton', dist):
  pass
  else:
  c.check.append(request.params[dist])
  session['checkList'] = c.check
  session.save()
  redirect_to(controller='lookup', action='postcheck')
  else:
  c.xmlResults = {}
  for wd in session['checkList']:
  c.xmlResults[wd] = session['xmlResponse']
  return render('/results.mako')
 
  I wouldn't say this is the best way to go about things and is rather
 sloppy.
  This is all part of quite a major system so please overlook the example
 and
  take what you need. It is poorly documented so I apologize for that.
 
 
 
  On Mon, Oct 12, 2009 at 11:48 AM, gazza burslem2...@yahoo.com wrote:
 
   Hi,
 
   I actually went ahead and did what what Ken did, I will have a look it
   how Johnathan implemented it.
 
   table cellspacing=5
   % for item in c.list:
   tr
 td
 ${item.description}
 /td
 td
 $item.price}
 /td
  td
 input type=checkbox name=$item.description value=
   $item.description/
 /td
   /tr
 
   When  posting to an action in the controller. How does it get the
   values of the checkboxes?
 
   Much appreciated,
   garyc
 
   On Oct 12, 10:17 am, Jonathan Vanasco jonat...@findmeon.com wrote:
the simplest:
 
td
   ${h.check_box('fieldname')}
/td
 
it looks like it was changed a bit though to:
checkbox(name, value=’1’, checked=False, label=None, **attrs)
 
when looping things like Ken suggested, i like to do stuff like this:
 
% for id in list:
%
checked= ''
if test:
checked= ' checked=checked'
%
   input name=checks value=${id}${checked}/
%endfor- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
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: Webfaction

2009-07-08 Thread Garland, Ken R
I've done a few installs with my webfaction account. At first I used the
built-in pylons installer, then just installed from scratch with setuptools.
You can install anything in your account if you'd like. Currently I have
memcache, nginx and pylons, need to clean things up a bit.

On Wed, Jul 8, 2009 at 2:57 AM, artee artur@gmail.com wrote:


  Has anyone put a pylons application on webfaction. Did you use their
  pylons install or did you use virtualenv. Any step step by step
  directions would be appreciated.
 I'd use a standard configuration (through a web page).
 Updated are done by svn update or easy_install in bigger projects.
 Additionaly you can do changes in crontab files to customize updates
 and restart application.

 Steps:
 1. Create new application through web page to perform standard
 configuration (port and Apache proxy).
 2. Create new Pylons application on local PC. Update port and database
 paths to the same as from Webfaction.
 3. Commit to SVN.
 4. Checkout from SVN into application's directory on Webfaction.
 5. I'd prefer configuration using development.ini and live.ini files -
 it differs from webfaction configuration (test.ini)
 6. You have to change lines in crontab to avoid restart of server
 using test.ini.
 7. Start server using daemon mode:
 paster serve --daemon --pid-file=paster.pid --log-file=logs/paster.log
 live.ini start

 See:
 http://wiki.pylonshq.com/display/pylonscookbook/Scripts+for+paster+serve
 for more details.

 regards,
 Artur
 


--~--~-~--~~~---~--~~
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: CSS on wiki.pylons.com?

2009-05-20 Thread Garland, Ken R
it looks like they are still using confluence. i noticed this behavior on
the old design, so apparently there is something in the confluence css that
is causing this.

On Wed, May 20, 2009 at 12:30 PM, Christopher Barker
chris.bar...@noaa.govwrote:

 Wichert Akkerman wrote:
  Previously Chris Withers wrote:
  Is it just me or is the CSS on:
 
 http://wiki.pylonshq.com/display/pylonsdocs/Using+SQLAlchemy+with+Pylons
  ...out of whack?

  It works somewhat better in Firefox,

 but still not well.

 and it requires a very wide windows, which I think is a bad design
 choice. See attachment (Firefox 3.0.10 on OS-X)


 Note: on the main page, I can switch to stretch mode, rather than
 fixed-width, by clicking on the layout link in upper left. That
 doesn't seem to work on that page.

 What Wiki system is, that?

 -Chris


 --
 Christopher Barker, Ph.D.
 Oceanographer

 Emergency Response Division
 NOAA/NOS/ORR(206) 526-6959   voice
 7600 Sand Point Way NE   (206) 526-6329   fax
 Seattle, WA  98115   (206) 526-6317   main reception

 chris.bar...@noaa.gov

 


--~--~-~--~~~---~--~~
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: The Definitive Guide to Pylons (complimentary copies)

2008-12-20 Thread Garland, Ken R

Only 1 left in stock--order soon (more on the way).

I kept putting off ordering because for some reason I thought it was
going to be on O'Reilly's Safari to download.

Looks like the eBook is abailable, nice..
http://www.apress.com/book/view/1590599349

On Sat, Dec 20, 2008 at 3:31 PM,  pyl...@mailzilla.com wrote:

 I received my copy a few days ago that I had pre-ordered on Amazon.  I 
 haven't had a chance to read through it yet but I'm sure it covers every 
 question I could possibly have considering the size of the book (568 pages).

 Congrats, James, on getting the book done and hopefully having a resource 
 available in most bookstores will propel Pylons further.  Hopefully you'll 
 sell ten of thousands (or millions) of copies but at least you've certainly 
 sold at least 1 (to me).

 Phil

 


--~--~-~--~~~---~--~~
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: Announcement of Pylons Powered Site

2008-11-04 Thread Garland, Ken R

Hey Jerry, I've read and follow most of what you listed and found it
all most helpful. Another HUGE help for me were IRC channels like
#pylons,  #python, #sqlalchemy and others on freenode. This allowed me
to learn from others and pass on knowledge. It is surprising how
helpful it is to help others in that not only do you add another way
in which to retain the knowledge but also realize things you might not
have known by helping others that think differently and need things
explained in different ways.

On Tue, Nov 4, 2008 at 2:40 PM, jerry [EMAIL PROTECTED] wrote:

 One day, I'm going to start my own blog, even if just for correcting
 all those broken links.

 Jerry

 On Nov 4, 2:23 pm, jerry [EMAIL PROTECTED] wrote:
 Hi Zoogie,

 First of all, congratulations on making the right decision with Pylons
 (not saying other choices are wrong... :), whose learning curve _will
 be_ steeper than those of its peers, but its payoff will more than
 offset the investment.

 Back when I started, I had to Dive Into Python [http://
 diveintopython.org/] before anything else. I particularly like its
 approach of being pragmatic, i.e., demonstrating incremental steps of
 a (semi-)real life project, rather than showing Hello-World examples
 chapter after chapter, and it even has a nice blend of some best
 practice (TDD!).

 Then I read from cover-to-cover the Pylons Wiki [http://
 wiki.pylonshq.com/dashboard.action], following every step of the
 tutorials. Of course nowadays a nicer trail is laid out in The Pylons
 Book [http://pylonsbook.com/]. I chose Genshi as my template engine
 and found Christopher's Geddit Tutorial [http://genshi.edgewall.org/
 wiki/GenshiTutorial] of great help.

 While trying to grasp the WSGI concept, I had to read PEP 333 
 [http://www.python.org/dev/peps/pep-0333/] more than 10 tens (seriously, and
 still not digesting 100% its concepts).

 As for database/SQL, I read half of Joe Celko's SQL for Smarties:
 Advanced SQL Programming [http://www.amazon.com/Joe-Celkos-SQL-
 Smarties-Programming/dp/1558605762], which prepared me for the more
 advanced topics (Joe Celko's Trees and Hierarchies in SQL for
 Smarties [http://www.amazon.com/Hierarchies-Smarties-Kaufmann-
 Management-Systems/dp/1558609202/ref=pd_sim_b_1/181-5524468-1861956]).
 I subscribe to the pgsql.sql Google Group [http://groups.google.com/
 group/pgsql.sql/topics], a low-volume news group for intermediate to
 advanced (pl)SQL related discussions.

 I also read RESTful Web Services [http://www.amazon.com/RESTful-Web-
 Services-Leonard-Richardson/dp/0596529260/ref=sr_1_1?
 ie=UTF8s=booksqid=1225817701sr=1-1] to acquire basic understanding
 of REST before designing my routes.

 Frontend side, I chose jQuery so Learning jQuery 
 [http://www.amazon.com/Learning-jQuery-Interaction-Development-JavaScript/dp/...]
 becomes a must-read.

 From not too long ago I started to subscribe to unofficial planet
 python [http://www.planetpython.org/] and find it worth recommending.

 Last but not the least, how can I leave out the classic Test Driven
 Development: By Example [http://www.amazon.com/Test-Driven-
 Development-Addison-Wesley-Signature/dp/0321146530/ref=sr_1_1?
 ie=UTF8s=booksqid=1225817901sr=1-1] -- just wish it comes with an
 automatic cane that will whip me every time that I fail to write a
 test first.

 Learning is an arduous process, but every sequoia starts from a tiny
 seed, all we need to do is stand taller than yesterday, in good times
 or not [http://venturebeat.com/2008/10/10/the-sequoia-rip-good-times-
 presentation-get-your-copy-here/].

 Jerry

 On Nov 3, 8:07 pm, [EMAIL PROTECTED] wrote:

  Jerry, very inspiring. Well done.
  I am where you were a year and a half ago.
  Trying to learn Pylons , but realizing I have to learn cgi (at least
  to get a better understanding of the big picture), sql etc.
  It gets a little confusing.

  Do you mind sharing some of your learning resources, and probably even
  the order of learning that made most sense?
  thanks

  Zoogie
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Announcement of Pylons Powered Site

2008-11-04 Thread Garland, Ken R

Just to add to what I was saying I didn't mean that I wasn't able to
get anything done until reading and doing all kinds of things. It was
simple to just install and get a site going, once things got more
complicated then sure it took more knowledge to handle just as
anything would. My first pylons site (over a year ago) was very simple
and took a few minutes to get running. My largest took months, mostly
from the back end code that had nothing to do with pylons really.

On Tue, Nov 4, 2008 at 5:56 PM, MilesTogoe [EMAIL PROTECTED] wrote:

 Garland, Ken R wrote:
 Hey Jerry, I've read and follow most of what you listed and found it
 all most helpful. Another HUGE help for me were IRC channels like
 #pylons,  #python, #sqlalchemy and others on freenode. This allowed me
 to learn from others and pass on knowledge. It is surprising how
 helpful it is to help others in that not only do you add another way
 in which to retain the knowledge but also realize things you might not
 have known by helping others that think differently and need things
 explained in different ways.

 Honestly, who has 6 mos to do all that reading ?  A framework with a
 heavy learning curve doesn't imply it's more professional, just a harder
 to use package.  Hey, you need to get a site up and running as quick and
 agile as possible to see if it even will work market or client wise.
 Most fail so where's the ROI with a heavy learning curve?  I've been
 watching and hoping for an improved, easier to use Pylons (why I follow
 this list) but in the meantime, I'm getting stuff running after days
 using the Werkzeug stack and yes, even Rails.  Learning curves cost
 serious money and opportunity cost - until you know that you really need
 a high horsepower site - get something running quick - besides, it's a
 lot more fun.  So yes, Pylons does need a 10 minute blog tutorial!  And
 if it cannot get running in 10 minutes - scrap it and start over.

 On Tue, Nov 4, 2008 at 2:40 PM, jerry [EMAIL PROTECTED] wrote:

 One day, I'm going to start my own blog, even if just for correcting
 all those broken links.

 Jerry

 On Nov 4, 2:23 pm, jerry [EMAIL PROTECTED] wrote:

 Hi Zoogie,

 First of all, congratulations on making the right decision with Pylons
 (not saying other choices are wrong... :), whose learning curve _will
 be_ steeper than those of its peers, but its payoff will more than
 offset the investment.

 Back when I started, I had to Dive Into Python [http://
 diveintopython.org/] before anything else. I particularly like its
 approach of being pragmatic, i.e., demonstrating incremental steps of
 a (semi-)real life project, rather than showing Hello-World examples
 chapter after chapter, and it even has a nice blend of some best
 practice (TDD!).

 Then I read from cover-to-cover the Pylons Wiki [http://
 wiki.pylonshq.com/dashboard.action], following every step of the
 tutorials. Of course nowadays a nicer trail is laid out in The Pylons
 Book [http://pylonsbook.com/]. I chose Genshi as my template engine
 and found Christopher's Geddit Tutorial [http://genshi.edgewall.org/
 wiki/GenshiTutorial] of great help.

 While trying to grasp the WSGI concept, I had to read PEP 333 
 [http://www.python.org/dev/peps/pep-0333/] more than 10 tens (seriously, 
 and
 still not digesting 100% its concepts).

 As for database/SQL, I read half of Joe Celko's SQL for Smarties:
 Advanced SQL Programming [http://www.amazon.com/Joe-Celkos-SQL-
 Smarties-Programming/dp/1558605762], which prepared me for the more
 advanced topics (Joe Celko's Trees and Hierarchies in SQL for
 Smarties [http://www.amazon.com/Hierarchies-Smarties-Kaufmann-
 Management-Systems/dp/1558609202/ref=pd_sim_b_1/181-5524468-1861956]).
 I subscribe to the pgsql.sql Google Group [http://groups.google.com/
 group/pgsql.sql/topics], a low-volume news group for intermediate to
 advanced (pl)SQL related discussions.

 I also read RESTful Web Services [http://www.amazon.com/RESTful-Web-
 Services-Leonard-Richardson/dp/0596529260/ref=sr_1_1?
 ie=UTF8s=booksqid=1225817701sr=1-1] to acquire basic understanding
 of REST before designing my routes.

 Frontend side, I chose jQuery so Learning jQuery 
 [http://www.amazon.com/Learning-jQuery-Interaction-Development-JavaScript/dp/...]
 becomes a must-read.

 From not too long ago I started to subscribe to unofficial planet
 python [http://www.planetpython.org/] and find it worth recommending.

 Last but not the least, how can I leave out the classic Test Driven
 Development: By Example [http://www.amazon.com/Test-Driven-
 Development-Addison-Wesley-Signature/dp/0321146530/ref=sr_1_1?
 ie=UTF8s=booksqid=1225817901sr=1-1] -- just wish it comes with an
 automatic cane that will whip me every time that I fail to write a
 test first.

 Learning is an arduous process, but every sequoia starts from a tiny
 seed, all we need to do is stand taller than yesterday, in good times
 or not [http://venturebeat.com/2008/10/10/the-sequoia-rip-good-times-
 presentation

Re: Localhost test

2008-07-14 Thread Garland, Ken R
Works on my Windows XP machine and on webfaction host which is using Red Hat
Enterprise Linux ES release 4 (Nahant Update 6)

On Mon, Jul 14, 2008 at 6:19 PM, Mike Orr [EMAIL PROTECTED] wrote:


 The Pylons developers need your help.  In order to change the default
 host= in development.ini from 0.0.0.0 to 127.0.0.1 or localhost, as a
 couple recent threads on this list have recommended for security, we
 need to make sure it doesn't break on any platform.

 I've seen computers that didn't recognize 'localhost' by default (I
 think it was Mac OS 10.3 servers but it may have been a Windows
 computer).  We're not sure if any plaform has trouble with 127.0.0.1
 but Ben things the default was originally changed to 0.0.0.0 because
 of such an issue on some platform.  So we need you guys to test
 whatever strange platforms you have access to and report back.

 Just take any Pylons application and change the development.ini from:
host = 0.0.0.0
 to
host = 127.0.0.1
 and then
host = localhost

 And see if you can still get to it from a browser.

 I tested Windows XP and verified it works.  Linux either comes with
 localhost by default or the setup instructions say to configure it.
 Mac OS X 10.4 has it though I couldn't get Pylons installed on it. :(
 But that's a topic for another message.

 --
 Mike Orr [EMAIL PROTECTED]

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: WebHelpers 0.6 released

2008-07-09 Thread Garland, Ken R
Getting the following error following the doc examples:

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
on
win32
 items = range(1,24)
 import webhelpers.paginate
 page2 = webhelpers.paginate.Page(items, page=2, items_per_page=10)
 page2.pager()
Traceback (most recent call last):
  File stdin, line 1, in module
  File
c:\python25\lib\site-packages\WebHelpers-0.6-py2.5.egg\webhelpers\pagina
te.py, line 688, in pager
result = re.sub(r'~(\d+)~', _range, format)
  File C:\Python25\lib\re.py, line 150, in sub
return _compile(pattern, 0).sub(repl, string, count)
  File
c:\python25\lib\site-packages\WebHelpers-0.6-py2.5.egg\webhelpers\pagina
te.py, line 661, in _range
nav_items.append( _pagerlink(thispage, text) )
  File
c:\python25\lib\site-packages\WebHelpers-0.6-py2.5.egg\webhelpers\pagina
te.py, line 597, in _pagerlink
link_url = url_for(**link_params)
  File
c:\python25\lib\site-packages\Routes-1.9.2-py2.5.egg\routes\util.py, li
ne 166, in url_for
encoding = config.mapper.encoding
  File
c:\python25\lib\site-packages\Routes-1.9.2-py2.5.egg\routes\__init__.py
, line 14, in __getattr__
return getattr(self.__shared_state, name)
AttributeError: 'thread._local' object has no attribute 'mapper'

On Wed, Jul 9, 2008 at 8:59 AM, Pavel Skvazh [EMAIL PROTECTED] wrote:


 I'm not sure either. You've got a lot of use cases covered already.

 Here's what i do:

collection = Companies.list(limit, start)
c.companies = h.Page(collection['items'], page, limit,
 collection['total'])
return render('/portal/companies/companies.mako')

 Then I've got template:
 % for company in c.companies.collection:
 % endfor

 ${c.companies.pager('Page: ~1~', 'id')}

 Since there's appears to be no way to just draw the paginator without
 initing Page, that`s the way to do it for now.
 Probably it'll make sense to add this

 On Jul 9, 4:09 pm, Christoph Haas [EMAIL PROTECTED] wrote:
  Hi, Pavel...
 
  On Mittwoch, 9. Juli 2008, Pavel Skvazh wrote:
 
   I'd like to share a use case with paginate.
   I've got a model that serves query results in the format I need. It
   manages starts and limits, includes [totalrow] property so I just need
   paginate to draw a nice paging bar.
 
   Everything works fine, but one line messes it up for me.
 
   self.items = list(self.collection[self.first_item-1:self.last_item])
 
   Here it takes only the range from the passed array. My situation
   implies that I've already got full array fetched from the database, so
   I need it just to be left intact.
 
   so I changed it to self.items = list(self.collection) and it works
   like a charm.
 
  Why do you do that? If you just use the .pager() method to draw the
 paging
  bar then you shouldn't need the self.items there (unless you use it
  somewhere else). However I think this case is kind of special and I'm
  hesitating to add that to the code right away.
 
  Cheers
   Christoph
 
   signature.asc
  1KDownload
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Pylons equivalent of cherrypy's serve_file?

2008-06-24 Thread Garland, Ken R
This is from an older application that I did, might need to be looked over
for 0.9.6.2 compatibility:

def download(self, environ, start_response):
if not request.environ.has_key('REMOTE_USER'):
return redirect_to(controller = '/login/ldap')
else:
fapp = fileapp.FileApp(session['fileStore'] +
request.environ['wsgiorg.routing_args'][1]['id'])
return fapp(request.environ, self.start_response)




On Tue, Jun 24, 2008 at 11:18 PM, Jonathan Vanasco [EMAIL PROTECTED]
wrote:


 disclaimer - i'm no authority on pylons.

 the stock error controller (automagically generated) handles the magic
 error pages

 it has this in there:

def img(self, id):
Serve Pylons' stock images
return self._serve_file(os.path.join(media_path, 'img', id))

def style(self, id):
Serve Pylons' stock stylesheets
return self._serve_file(os.path.join(media_path, 'style', id))

def _serve_file(self, path):
Call Paste's FileApp (a WSGI application) to serve the file
at the specified path

fapp = paste.fileapp.FileApp(path)
return fapp(request.environ, self.start_response)


 there might be something else that handles it in a one liner for
 you... otherwise you may need to create a new function
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Background Threads

2008-06-20 Thread Garland, Ken R
I use a custom daemon for some of my deployments.

For windows I would look into creating a service to monitor things
(services.msc)

On Fri, Jun 20, 2008 at 6:25 PM, EricHolmberg [EMAIL PROTECTED]
wrote:


  I say run a separate daemon process and use supervisord to ensure it
  can recover from a crash.
 
  In fact, I recommend using supervisord for everything you ever deploy.
 

 Excellent - thanks for the reminder!  I remember seeing a mention in
 Linux Journal a while back, but never followed up on it.  It looks
 perfect for a Linux deployment (which is my immediate need).

 Do you know of anything comparable for Windows?  I have a few Windows-
 only services that are buggy that could benefit from a similar
 supervisor.
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Pylons and memory use

2008-06-08 Thread Garland, Ken R
I'm using WebFaction with a decent size app and using the 80MB plan. every
once in a while I forget and leave paster in --reload instead of --daemon
while I'm developing and it grows to about 100MB. They are nice about
sending a reminder and a trouble ticket instead of charging me, but the last
time (today) I setup a cron to check every so often if I'm running in daemon
mode or reload mode and have it email me.

On Sat, Jun 7, 2008 at 7:21 PM, Jose Galvez [EMAIL PROTECTED] wrote:

  thanks
 Jose

 Mike Orr wrote:

 On Sat, Jun 7, 2008 at 10:57 AM, Jose Galvez [EMAIL PROTECTED] [EMAIL 
 PROTECTED] wrote:


  newbie question - how do you determine how much memeory your app is
 using, on Linux of course
 Jose


  $ ps aux | grep kopete

 sluggo9278  1.4  3.9  92324 38792 ?S10:31   1:20
 kopete -caption Kopete -icon kopete -miniicon kopete

 The first number is the process ID.  The fourth and fifth numbers are
 the total memory and resident memory respectively.  (Total memory
 includes virtual memory stored in the swapfile or shared, so it's not
 taking up its own RAM.)  So Kopete is taking up 39 MB right now.




 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Pylons and memory use

2008-06-08 Thread Garland, Ken R
Sure,

#!/bin/bash
mode=`ps -u garlandkr -o rss,etime,pid,command | awk '/paster/  !/awk/
{sub(--,);print$7}'`
if [ $mode = daemon ]; then
echo daemon mode
elif [ $mode = reload ]; then
echo reload mode
python ~/mailer.py WebFaction Issue Paster is running in reload mode,
fix it.
fi

replace garlandkr with your user name and provide your own mailing method.
;)

On Sun, Jun 8, 2008 at 2:25 PM, Brandon Singer [EMAIL PROTECTED] wrote:


 On Sun, 2008-06-08 at 11:22 -0400, Garland, Ken R wrote:
  I'm using WebFaction with a decent size app and using the 80MB plan.
  every once in a while I forget and leave paster in --reload instead of
  --daemon while I'm developing and it grows to about 100MB. They are
  nice about sending a reminder and a trouble ticket instead of charging
  me, but the last time (today) I setup a cron to check every so often
  if I'm running in daemon mode or reload mode and have it email me.

 I didn't know that could happen. Would you mind sharing that script?


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: How did you begin your fun with Pylons?

2008-05-22 Thread Garland, Ken R
Wow, I thought by the subject this was going to be some endearing story
telling about how great Pylons is and why you came to use it as your chosen
framework for developing with Python and the web, etc.

Well, if this is a forum for such a thing let me say that I love Pylons and
started my venture with the need for a site that authenticated users with
LDAP and allowed them to share files. This was for a company which needed
separate file shares based on access roles.. I started to make the project
public on google code here: http://code.google.com/p/ldapsite/ but never got
around to packaging it and only put a few files up because people in #pylons
needed examples. I did spend a lot of time on it and was quite satisfied
when it was completed, but that was back in September of 2007 so I wouldn't
try implementing it in a new pylons environment without looking it over. I
was still gaining confidence in my Python abilities at the time (as I always
am) and Pylons provided a great spring board for many new experiences.

Thanks to all the #pylons regulars like Chairos, YGingras, Signum, etc for
answering all types of questions.

- Ken

On Thu, May 22, 2008 at 6:20 PM, Mike Orr [EMAIL PROTECTED] wrote:


 On Thu, May 22, 2008 at 3:07 PM, Shannon -jj Behrens [EMAIL PROTECTED]
 wrote:
 
  On Thu, May 22, 2008 at 7:37 AM, Mikeroz [EMAIL PROTECTED]
 wrote:
  Hey guys,
  I'm wondering where did you start your journey with Pylons?
 
  Ben Bangert and I decided to meet for dinner in Berkeley.  I got very
  lost and ended up in Oakland.  I finally got to the restaurant an hour
  late.  Ben had already eaten.  We had a good talk about Web
  development.  He told me he wanted to write a new Python Web
  application framework.  I tried to talk him out of it.  He didn't
  listen to me ;)
 
  -jj

 Sounds like when I went to Vancouver and met Tavis Rudd at a gelato
 stand.  He drew an outline for Cheetah on the back of a napkin.  (It
 was called TemplateServer then.)  I argued that having a list of
 alternating static text and placeholders was more efficient than
 converting a template to a Python module.  We both wanted to get away
 from regex substitutions.  He wrote his TemplateServer anyway, and it
 ended up being way more efficient.  Mako now uses roughly the same
 approach.

 --
 Mike Orr [EMAIL PROTECTED]

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: h.select with list of objects

2008-05-20 Thread Garland, Ken R

Hmm, I'm not 100% sure I understand but this is something that I use
to populate a select drop-down from a list:

${ h.select(name='selectedItem',
option_tags=h.options_for_select(c.list, selected=None),
selected=None, multiple=False ) }

On Tue, May 20, 2008 at 11:40 AM, Joe Riopel [EMAIL PROTECTED] wrote:

 Hi,

 I am new to pylons and have a question about using the h.select(). I
 have a list of objects that are accessible in the form as
 c.type_list. I want to use the elements in that list to populate the
 h.select(). However, I am unsure how to specify the value of each
 option and the text to use for each option in the select.

 I do have it working, but it doesn't seem right. Here is what I have right 
 now:

 ${h.select('lbxType', ''.join(map(lambda ct: 'option
 value=\%d\%s/option' % (ct.id, ct.name,), c.type_list)))}


 As you can see, I am using the id property of the object for the
 option value, and the name property as the option text. Is there a
 cleaner way to do this using the webhelpers module?

 Thanks,
 Joe

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: h.select with list of objects

2008-05-20 Thread Garland, Ken R

c.list would be the text of the options.

On Tue, May 20, 2008 at 11:55 AM, Joe Riopel [EMAIL PROTECTED] wrote:

 On Tue, May 20, 2008 at 11:49 AM, Garland, Ken R [EMAIL PROTECTED] wrote:
 Hmm, I'm not 100% sure I understand but this is something that I use
 to populate a select drop-down from a list:

 ${ h.select(name='selectedItem',
 option_tags=h.options_for_select(c.list, selected=None),
 selected=None, multiple=False ) }

 I did see something similar to that while searching for something. I
 just didn't see where the value attribute of each option tag would be
 specified, and what would become the inner text of each option?

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: h.select with list of objects

2008-05-20 Thread Garland, Ken R

No problem, hope this helps:

options_for_select: generate HTML option set. Combine into select function.

options_for_select_from_objects: same but get the labels and values
from specific attributes in a list of objects. Deprecate.

options_for_select_from_dicts: same but get the labels and values from
specific keys in a list of dicts. Deprecate.

On Tue, May 20, 2008 at 1:23 PM, Joe Riopel [EMAIL PROTECTED] wrote:

 On Tue, May 20, 2008 at 11:58 AM, Garland, Ken R [EMAIL PROTECTED] wrote:

 c.list would be the text of the options.

 What would be the value of the options? Sorry if this is really
 simple, but the objects in my c.type_list are not strings, they are
 instances of  a class I created.

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Deployment Question

2008-05-16 Thread Garland, Ken R

From general chat on #pylons a lot of people prefer to proxy, or
simply run paster.

In my deployment Paster is serving directly to the world.

I'm not sure anyone has taken up a comparison in the ways you speak
of, at least I have not come across it. I'm sure it would be a
welcomed test.

On Fri, May 16, 2008 at 4:38 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote:

 I'm a little unclear on the better ways to deploy a Pylons app.

 My production servers run nginx -- is it better to use some fastcgi
 support (if so, how?) or just do a paster serve and proxy to that
 port?

 I've read a handful of ways on how-to-deploy apps, and all seem
 different.  I've yet to see a comparison or this is THE way to do it
 document.
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: autocomplete

2008-05-14 Thread Garland, Ken R

Maybe someone else might pick up on this, but it is too vague for me
to understand what you are talking about. Auto completion of what
exactly?

On Wed, May 14, 2008 at 9:18 AM, Jonathan Vanasco [EMAIL PROTECTED] wrote:

  is anyone working on building this into pylons?

  i haven't see it talked about on the list for almost 1 full year
  


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: autocomplete

2008-05-14 Thread Garland, Ken R

Ah.. Upon recommendations from #pylons on freenode I use:
http://developer.yahoo.com/yui/autocomplete/

On Wed, May 14, 2008 at 10:26 AM, Jonathan Vanasco
[EMAIL PROTECTED] wrote:

  http://demo.script.aculo.us/ajax/autocompleter_customized


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: XML

2008-04-15 Thread Garland, Ken R

Are you wanting to display the XML raw like this:

${c.xml | x}




On Tue, Apr 15, 2008 at 9:29 AM, Alagu Madhu [EMAIL PROTECTED] wrote:

  Hi,

  I am using pylons 0.9.7beta4) and mako.

  def xml(self):
  c.xml = ...
  response.headers['Content-Type'] = 'application/xml'
  return render('/xml.mak')

  xml.mak:

  ?xml version=1.0 encoding=utf-8 ?
  customer id=customer
  ${c.xml}
  /customer

  The XML file appear ...

  customer id=customer
  kk id=1012 name=Pylons 12/kk id=1013 name=Pylons 13/kk
  id=1014 name=Pylons 14/kk id=1015 name=Pylons 15/kk
  id=1016 name=Pylons 16/kk id=1017 name=Pylons 17/kk
  id=1018 name=Pylons 18/kk id=1019 name=Pylons 19/kk
  id=1020 name=Pylons 20/kk id=1021 name=Pylons 21/
  /customer


  But,The Page Source...


  ?xml version=1.0 encoding=utf-8 ?
  customer id=customer
  lt;kk id=quot;1012quot; name=quot;Pylons 12quot;/gt;lt;kk
  id=quot;1013quot; name=quot;Pylons 13quot;/gt;lt;kk id=quot;
  1014quot; name=quot;Pylons 14quot;/gt;lt;kk id=quot;1015quot;
  name=quot;Pylons 15quot;/gt;lt;kk id=quot;1016quot;
  name=quot;Pylons 16quot;/gt;lt;kk id=quot;1017quot;
  name=quot;Pylons 17quot;/gt;lt;kk id=quot;1018quot;
  name=quot;Pylons 18quot;/gt;lt;kk id=quot;1019quot;
  name=quot;Pylons 19quot;/gt;lt;kk id=quot;1020quot;
  name=quot;Pylons 20quot;/gt;lt;kk id=quot;1021quot;
  name=quot;Pylons 21quot;/gt;
  /customer




  Thanks

  Madhu Alagu

  


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: XML

2008-04-15 Thread Garland, Ken R

For me, using pylons 0.9.6.1 and Mako-0.1.10

${c.xml} - gives blank page, with source like this:

customer id=customerkk id=1012 name=Pylons 12/kk id=1013
name=Pylons 13/kkid=1014 name=Pylons 14/kk id=1015
name=Pylons 15/kkid=1016 name=Pylons 16/kk id=1017
name=Pylons 17/kkid=1018 name=Pylons 18/kk id=1019
name=Pylons 19/kkid=1020 name=Pylons 20/kk id=1021
name=Pylons 21//customer

${c.xml | x} gives a page with the xml, but source like this:

lt;customer id=#34;customer#34;gt;lt;kk id=#34;1012#34;
name=#34;Pylons 12#34;/gt;lt;kk id=#34;1013#34; name=#34;Pylons
13#34;/gt;lt;kkid=#34;1014#34; name=#34;Pylons
14#34;/gt;lt;kk id=#34;1015#34; name=#34;Pylons
15#34;/gt;lt;kkid=#34;1016#34; name=#34;Pylons
16#34;/gt;lt;kk id=#34;1017#34; name=#34;Pylons
17#34;/gt;lt;kkid=#34;1018#34; name=#34;Pylons
18#34;/gt;lt;kk id=#34;1019#34; name=#34;Pylons
19#34;/gt;lt;kkid=#34;1020#34; name=#34;Pylons
20#34;/gt;lt;kk id=#34;1021#34; name=#34;Pylons
21#34;/gt;lt;/customergt;

We'll have to wait for the experts on this one, or search the source.



On Tue, Apr 15, 2008 at 9:46 AM, Alagu Madhu [EMAIL PROTECTED] wrote:


  Page Source

  ?xml version=1.0 encoding=utf-8 ?
  customer id=customer
  lt;kk id=quot;1012quot; name=quot;Pylons 12quot;/gt;lt;kk
  id=quot;1013quot; name=quot;Pylons 13quot;/gt;lt;kk id=quot;
  1014quot; name=quot;Pylons 14quot;/gt;lt;kk id=quot;1015quot;
  name=quot;Pylons 15quot;/gt;lt;kk id=quot;1016quot;
  name=quot;Pylons 16quot;/gt;lt;kk id=quot;1017quot;
  name=quot;Pylons 17quot;/gt;lt;kk id=quot;1018quot;
  name=quot;Pylons 18quot;/gt;lt;kk id=quot;1019quot;
  name=quot;Pylons 19quot;/gt;lt;kk id=quot;1020quot;
  name=quot;Pylons 20quot;/gt;lt;kk id=quot;1021quot;
  name=quot;Pylons 21quot;/gt;
  /customer




  I want to display the page source like


  ?xml version=1.0 encoding=utf-8 ?
  customer id=customer

 kk id=1012 name=Pylons 12/kk id=1013 name=Pylons 13/kk
  id=1014 name=Pylons 14/kk id=1015 name=Pylons 15/kk
  id=1016 name=Pylons 16/kk id=1017 name=Pylons 17/kk
  id=1018 name=Pylons 18/kk id=1019 name=Pylons 19/kk
  id=1020 name=Pylons 20/kk id=1021 name=Pylons 21/
  /customer




 On Apr 15, 4:31 pm, Garland, Ken R [EMAIL PROTECTED] wrote:
   Are you wanting to display the XML raw like this:
  
   ${c.xml | x}
  


  On Tue, Apr 15, 2008 at 9:29 AM, Alagu Madhu [EMAIL PROTECTED] wrote:
  
 Hi,
  
 I am using pylons 0.9.7beta4) and mako.
  
 def xml(self):
 c.xml = ...
 response.headers['Content-Type'] = 'application/xml'
 return render('/xml.mak')
  
 xml.mak:
  
 ?xml version=1.0 encoding=utf-8 ?
 customer id=customer
 ${c.xml}
 /customer
  
 The XML file appear ...
  
 customer id=customer
 kk id=1012 name=Pylons 12/kk id=1013 name=Pylons 13/kk
 id=1014 name=Pylons 14/kk id=1015 name=Pylons 15/kk
 id=1016 name=Pylons 16/kk id=1017 name=Pylons 17/kk
 id=1018 name=Pylons 18/kk id=1019 name=Pylons 19/kk
 id=1020 name=Pylons 20/kk id=1021 name=Pylons 21/
 /customer
  
 But,The Page Source...
  
 ?xml version=1.0 encoding=utf-8 ?
 customer id=customer
 lt;kk id=quot;1012quot; name=quot;Pylons 12quot;/gt;lt;kk
 id=quot;1013quot; name=quot;Pylons 13quot;/gt;lt;kk id=quot;
 1014quot; name=quot;Pylons 14quot;/gt;lt;kk id=quot;1015quot;
 name=quot;Pylons 15quot;/gt;lt;kk id=quot;1016quot;
 name=quot;Pylons 16quot;/gt;lt;kk id=quot;1017quot;
 name=quot;Pylons 17quot;/gt;lt;kk id=quot;1018quot;
 name=quot;Pylons 18quot;/gt;lt;kk id=quot;1019quot;
 name=quot;Pylons 19quot;/gt;lt;kk id=quot;1020quot;
 name=quot;Pylons 20quot;/gt;lt;kk id=quot;1021quot;
 name=quot;Pylons 21quot;/gt;
 /customer
  
 Thanks
  
 Madhu Alagu
  


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: XML

2008-04-15 Thread Garland, Ken R

So that replaces the HTML escaping done previously in Mako:

http://www.makotemplates.org/docs/syntax.html#syntax_expression_expression

I must have missed the 'n' switch after looking over this doc:
http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779

Are there other new switches like this to be aware of?


On Tue, Apr 15, 2008 at 12:13 PM, Ben Bangert [EMAIL PROTECTED] wrote:
 On Apr 15, 2008, at 6:29 AM, Alagu Madhu wrote:


  ?xml version=1.0 encoding=utf-8 ?
  customer id=customer
  ${c.xml}
  /customer
 

  Pylons 0.9.7 has HTML auto-escaping of variables. If you do not want a
 variable escaped, you can turn off the filter like so:
  ${c.xml | n}

  Or, you can wrap your variable in a literal() object in the controller like
 so:

  from webhelpers.html import literal

  def xml(self):
 c.xml = literal()


  Cheers,
  Ben

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Authorize and Authentication with pylons

2008-02-14 Thread Garland, Ken R

well it's been a while since i setup my authkit+homegrown solution and
i never really documented it properly. but i must say that it was a
great way to really learn the ins and outs of pylons. my advise is to
just give it a shot and follow some howto's, see what you can come up
with.

but it has been a while since i've been up to date on pylons
developments and documentations so there may be one out there that is
100%.

 - Ken

On Thu, Feb 14, 2008 at 9:12 PM, minhl [EMAIL PROTECTED] wrote:

  Dear all,

  I have looking around for a reliable way of doing authorization and
  authentication with Pylons application. So far, all I found are either
  the homegrown way or the AuthKit ways. I like the AuthKit solution but
  none of the examples that I came across were working. I need to have
  the users data stored in the database. Would anyone have any
  suggestion?

  Regards,

  


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Can't start new Pylons Web instance: Error on line 195 of serve.py (after upgrading to Pylons 0.9.6.1

2008-01-07 Thread Garland, Ken R

possibly see if you have another version of Paste installed in your path.

On Jan 6, 2008 10:40 PM, Rich [EMAIL PROTECTED] wrote:

 Hi,

 I upgraded to the latest version of Pylons two days ago.  Since then,
 I can't either start an existing Web instance, or create a new one.

 This is one I just created:

 C:\Python25\alohawebpaster serve --reload development.ini
 Starting subprocess with file monitor
 Traceback (most recent call last):
   File c:\Python25\Scripts\paster-script.py, line 8, in module
 load_entry_point('PasteScript==1.6', 'console_scripts', 'paster')
 ()
   File c:\python25\lib\site-packages\PasteScript-1.6-py2.5.egg\paste
 \script\command.py, line 79, in run
 invoke(command, command_name, options, args[1:])
   File c:\python25\lib\site-packages\PasteScript-1.6-py2.5.egg\paste
 \script\command.py, line 118, in invoke
 exit_code = runner.run(args)
   File c:\python25\lib\site-packages\PasteScript-1.6-py2.5.egg\paste
 \script\command.py, line 213, in run
 result = self.command()
   File c:\python25\lib\site-packages\PasteScript-1.6-py2.5.egg\paste
 \script\serve.py, line 195, in command
 if self.options.daemon:
 AttributeError: Values instance has no attribute 'daemon'
 Exception in thread Thread-1 (most likely raised during interpreter
 shutdown):
 Traceback (most recent call last):
   File c:\python25\lib\threading.py, line 460, in __bootstrap
   File c:\python25\lib\threading.py, line 440, in run
   File c:\python25\lib\site-packages\Paste-1.6-py2.5.egg\paste
 \reloader.py, line 68, in periodic_reload

 Regards,

 Rich

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Pylons Pictures for the Logo

2007-12-10 Thread Garland, Ken R

i find this one to be interesting, as it shows a bit of color and
connects other pylons together:
http://commons.wikimedia.org/wiki/Image:Abzweigmast_IMGP4478.jpg

thanks for sharing the photos YGingras. ;)


On Dec 10, 2007 10:55 AM, miniwark [EMAIL PROTECTED] wrote:

 See also this Pylons pictures if you wish :
 http://commons.wikimedia.org/wiki/Category:Pylons


 On 10 déc, 01:34, Yannick Gingras [EMAIL PROTECTED] wrote:
  Are we still looking for a new logo?  I took a few pictures of the
  super sexy 735 kV pylons while I was in Québec City:
 
   http://gazdemo.ygingras.net/wiki/Pylons
 
  The pictures are not that good but I find this particular model of
  pylons really beautiful.  The pics are CC-SA so feel free to hack them
  for the logo.
 
  --
  Yannick Gingras
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Packages to use on Gutsy

2007-10-25 Thread Garland, Ken R

i use easy_install no matter what distribution of linux the system is.

watch out for the symlinks, I believe there is a post earlier by me on
how to fix this.

On 10/25/07, Matt Feifarek [EMAIL PROTECTED] wrote:
 I'm setting up a new development box, including a fresh install of Gutsy
 Gibbon, Ubuntu's latest.

 I see that most of the required pylons packages and dependencies are in the
 .deb repositories, which is cool.

 Pylons is already out of date (v.9.5-6) and I don't know how often (if at
 all) the package manager will sync the debs with the current egg versions.

 Does anyone have a recommendation as to which portions of the Pylons
 requirements are best to use via OS-level package management and which are
 best to use via easy_install? It seems that most people favor an
 all-or-nothing approach, but that's kinda not practical.

  


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Pylons - creating download links?

2007-09-30 Thread Garland, Ken R

what is the link you are being shown in the browser.
what is the link you are defining in your controller/action.
what is the setup you have in detail.

On 9/30/07, voltron [EMAIL PROTECTED] wrote:

 I have links to files on a servers filesystem, the links are correct
 but strangely, I cannot download them. Could it be because I am
 proxying Pylons behind Apache? I have the same problem on Windows and
 Debian Linux.Thanks


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Success with LDAP, Pylons and AuthKit?

2007-08-02 Thread Garland, Ken R

I have it successfully running. Using the forward method of course. My
site utilizes authorization and authentication.

On 8/2/07, Mike Orr [EMAIL PROTECTED] wrote:

 On 8/2/07, ObjectEvolution [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Anybody out here have success with integrating LDAP authentication
  with AuthKit and Pylons?

 No but I have to try that soon.

 --
 Mike Orr [EMAIL PROTECTED]

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: The is-Pylons-for-me post

2007-07-09 Thread Garland, Ken R

On 7/9/07, Martin Aspeli [EMAIL PROTECTED] wrote:

 Hi guys,

 We've just (almost certainly) chosen Pylons for a quick-and-dirty web
 application project.

   1. We need a fairly heavily AJAXified UI. Is Prototype and the
 Railsish web helpers the best way to go?

   2. Specifically, we need an auto-complete widget. I see
 Script.aculo.us has one of those, but no corresponding web helper.


I'm using the YahooUI - http://developer.yahoo.com/yui/autocomplete/
as noted by Chairos it is very powerful.

   3. Are there any example applications that demonstrate the use of
 AuthKit (with a custom, in-the-app login form, and sensible
 permission/role/user handling and user storage)?

Well the documentation is not quite up to snuff, I'll agree there.
Hopefully when 0.4 hits the scene things will be ironed out and make
sense to the rest of us. After reading all of the tutorials and docs
it required a bit of alteration to get things working, it was worth it
and getting comfortable with authkit does require some patience but it
will pay off.

These are all of the sites I read while getting AuthKit running:

http://docs.pythonweb.org/display/authkitcookbook/Home
http://pylonshq.com/project/pylonshq/wiki/PylonsWithAuthKitDatabase
http://pythonpaste.org/module-paste.auth.auth_tkt.html
http://docs.pythonweb.org/display/authkitcookbook/Forward
http://docs.pythonweb.org/display/authkitcookbook/Different+Ways+of+Authorizing+Users
http://docs.pythonweb.org/display/authkitcookbook/AuthKit+with+Pylons
http://authkit.org/svn/AuthKit/trunk/docs/manual.txt
http://docs.pythonweb.org/display/authkitcookbook/Getting+Started+With+AuthKit
http://docs.pythonweb.org/display/authkitcookbook/Permissions

One thing that I can say is that using sessions for user data storage
is essential (role, permissoins, etc).

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: authkit.org is down?

2007-07-03 Thread Garland, Ken R

.4 is in SVN and not officially released. As for the pylons wiki, the
DNS took a spill, or squid or something. You can access it via:
http://wiki.pylonshq.com/

On 7/3/07, Ksenia [EMAIL PROTECTED] wrote:

  You can download it from cheese shop.
 
  http://www.python.org/pypi/AuthKit/0.3.0pre5
 

 Ah, thanks! I didn't notice cheese shop has it's own repository, since
 easy_install gets everything from the author's locations...

 BTW, the version on cheese shop is 0.3Apre5. I believe 0.4 is the most
 recent version that is completely rewritten and supports database
 authentication etc... am I right?
 Before asking this I tried to check http://docs.pythonweb.org, but it
 seems to be down as well :((

 Thanks
 Ksenia


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: authkit.org is down?

2007-07-03 Thread Garland, Ken R

All of the documentation refers to 0.4, there is a disclaimer about it
at the top. Hoever you can get much of the functionality working with
some effort. If you are set on using 0.4 then it would probably be
best to wait for SVN to be available. Cheeseshop is down too so I'm
not sure if the SVN is at another url or on the same site as
authkit.org - best of luck.

On 7/3/07, Ksenia [EMAIL PROTECTED] wrote:



 On Jul 3, 3:45 pm, Garland, Ken R [EMAIL PROTECTED] wrote:
  .4 is in SVN and not officially released. As for the pylons wiki, the
  DNS took a spill, or squid or something. You can access it 
  via:http://wiki.pylonshq.com/
 

 But does the documentation on 
 http://wiki.pylonshq.com/display/authkitcookbook/Home
 refers to 0.3 or to 0.4? If to 0.4, what is the correct document for
 0.3?

 Thanks again,
 Ksenia


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: New to Pylons - Running an existing python script?

2007-07-02 Thread Garland, Ken R

simple pylons output can be done like so:

return Response(something)

that would show hello on the website. If you wanted some output from a
script just put the code of the script inside an action and when it
comes time to return the output instead of using print use the return
response.  If your objective was to do something like:

print hello

then do this instead:

return Response(hello)

but if you want to return the contents of some variable then use the
example at the beginning of my message.

On 7/2/07, Brian [EMAIL PROTECTED] wrote:

 Hello,

 I'm new to pylons and have been trying to figure this out but not
 having much luck.

 I have a set of existing python scripts that 'print' output to the
 screen when you run them.  What's the easiest way to convert these
 scripts such that they can be called from within a pylon controller
 and have the output sent to a webpage?

 I should note that this library of existing scripts is quite large,
 and attempting to modify them (ie change prints to something else)
 would be a bit of work.  I DID attempt to go the route of making a
 controller return a generator that invokes my initial function,
 however this quickly turned into a mess since generators may not
 'return' values, and many of the classes used in these scripts
 regularly return values and results of function calls.

 I'm almost wonder if launching my script via another thread and piping
 the output to a file, and having a generator do a 'tail' of sorts on
 the resulting file and do 'yields' is the best/only way?

 Any ideas or examples on something similar?


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: reloading routes

2007-06-18 Thread Garland, Ken R

Is there a reload option in [exe]  for daemon mode?

reload = true

hmm, tried that and it didn't seem to work.

On 6/16/07, voltron [EMAIL PROTECTED] wrote:

 the reload flag causes a lot of problems on Debian, I posted this a
 while back, besides, I´m daemonizing the server. Maybe I´ll just have
 to make some of the routes more generic

 On Jun 16, 4:23 am, Daniel Tang [EMAIL PROTECTED] wrote:
  On 6/15/07, voltron [EMAIL PROTECTED] wrote:
 
 
 
   Is it possible to reload routes.py if it has been changed without
   restarting the paster server?
 
  Use the --reload flag.
 
  Dan


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: AuthKit Authorization Manager?

2007-06-14 Thread Garland, Ken R

Instead of deleteing REMOTE_USER, set a logout url in your development.ini:

authkit.cookie.signout = /myapp/logout

for the action something like:

def logout(self):
if request.environ.has_key('REMOTE_USER'):
return redirect_to(controller = '/myapp/logout')
else:
return redirect_to(controller = '/myapp/login')

and for the template just to round things out:

a href=/myapp/logoutlogout/a

This will remove the REMOTE_USER via the authkit 'way' or at least my
interpretation of it from the manual.

On 6/13/07, Michael G. Noll [EMAIL PROTECTED] wrote:



 On Jun 13, 9:28 pm, voltron [EMAIL PROTECTED] wrote:
  Since both of you have AuthKit working, how does one set a session for
  an authenticated user? How do you set the REMOTE_USER? I thought of
  creating a session variable like isauthenticated = True but it has
  to be set after REMOTE_USER is set, which i my case, is a headache
 
  request.environ['paste.auth_tkt.set_user'](username)
 
  Does not work for me in my controllers

 Which version of AuthKit are you using? I am running Pylons 0.9.5 and
 AuthKit 0.3.0pre5, and

 request.environ['paste.auth_tkt.set_user'](username)

 works without any problems for my signin() method.

 However, I had to manually remove REMOTE_USER in my user controller's
 signout() method because even though I called

 request.environ['paste.auth_tkt.logout_user']()

 the REMOTE_USER variable was still set/available in my Mako templates
 when the response was rendered to show a You have been signed out
 message. When refreshing/re-GETting the web page, REMOTE_USER was
 gone.

 (in other words: the user was actually logged out, but the template
 called by the controller's return statement still had access to the
 REMOTE_USER variable)

 I fixed this with

 request.environ['paste.auth_tkt.logout_user']()
 del request.environ['REMOTE_USER']

 Michael


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: enviroment variables

2007-06-12 Thread Garland, Ken R

remove request.

environ['paste.auth_tkt.set_user'](username, tokens='')


On 6/12/07, voltron [EMAIL PROTECTED] wrote:

 I get key errors when trying to set
 request.environ['paste.auth_tkt.set_user'](username) in my controller.
 In fact, all the enviroment variables dont work using
 request.environ['key']

 Thanks


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: 'Pylons - carries the load'

2007-06-05 Thread Garland, Ken R

On 6/5/07, John_Nowlan [EMAIL PROTECTED] wrote:

 - 'Pylons - carries the load'

 I like this one, with the electrical and works connotations. I think a tag
 line should be short - memorable rather than explanatory. A succint summary
 of Pylons can follow.

I've enjoyed reading the ideas and discussion on the subject of
Corporate Identity. This is probably the best solid idea that can be
put to use for identity purposes. Coupled with (I believe it was)
Ben's earlier vision of  a hand reaching up into the power lines,
something to incorperate the idea of workers bearing the load of power
lines/cables, etc.

It's good to see so many people are taking a valid interest in this
and ideas are coming forth.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---