Re: Separate access for internal and external users?

2007-02-06 Thread Cezary Statkiewicz
ct_to('/somewhere/else') ... class SomeController(BaseController): def __init__(self): BaseController.__init__(self): self.private = True You can mix both ways. Best regards, Cezary Statkiewicz -- Cezary Statkiewicz - http:/

Re: Mod_python and Sessions?

2007-05-28 Thread Cezary Statkiewicz
> Hello, > I'm new to pylons. Started out a couple of days ago. Comming from > django, I am attempting to move to pylons for my current project, and > everything went smoothly until i got to the point of installing pylons > on apache2 + mod_python. > > I followed the instructions on this page: > h

Re: Paste or Beaker sessions

2007-05-28 Thread Cezary Statkiewicz
2007/5/28, voltron <[EMAIL PROTECTED]>: > > Hi all, > > after a little poking around, I noticed that there are two session > modules to use, the one in Paste and the on in Beaker. It seems that > the one in Beaker has more features, is there a reason why Pylons does > not not use the Beaker versio

Re: Paste or Beaker sessions

2007-05-28 Thread Cezary Statkiewicz
> Really? I found no clue to this, I opened Paste.Session and found > this: > > # (c) 2005 Ian Bicking and contributors; written for Paste (http:// > pythonpaste.org) > # Licensed under the MIT license: > http://www.opensource.org/licenses/mit-license.php > > """ > Creates a session object in you

Re: 'Address already in use' error

2007-05-28 Thread Cezary Statkiewicz
netstat -lp this will show you pid and process name CS --~--~-~--~~~---~--~~ 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 f

Re: Pylons add-ons

2007-08-13 Thread Cezary Statkiewicz
charts and such, look for relevant python libs (pychart, reportlab). Best regards Cezary Statkiewicz -- Cezary Statkiewicz - http://thelirium.net rlu#280280 gg#5223219 jabber://[EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this messag

Re: iframe issue

2007-08-16 Thread Cezary Statkiewicz
ace the test1.html in public foder is working,but i need in > templates folder. why for? is it template or just static file? If test1.html is a template then use it as a template - call controller/action. otherwise it's pointless to keep it in template folder, which is not available v

Re: CSS/Javascript in Pylons

2007-08-16 Thread Cezary Statkiewicz
;) } def head_style in parent.mako can be used for fallback if you won't define it in child. Best regards CS -- Cezary Statkiewicz - http://thelirium.net rlu#280280 gg#5223219 jabber://[EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received thi

Re: Too many database connections.

2007-08-27 Thread Cezary Statkiewicz
2007/8/27, caffecoder <[EMAIL PROTECTED]>: > > sqlalchemy.exceptions.DBAPIError: (Connection failed) > (OperationalError) FATAL: sorry, too many clients already Check your database's settings. It seems that you have set very low connection limit. Best regards Cezary St

Re: Too many database connections.

2007-08-27 Thread Cezary Statkiewicz
Aww.. I've read your email once again. My suggestion was not appropriate:) Sorry, Cezary Statkiewicz -- Cezary Statkiewicz - http://thelirium.net rlu#280280 gg#5223219 jabber://[EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Re: HTML select multiple handling

2007-09-12 Thread Cezary Statkiewicz
paste.org/class-paste.util.multidict.MultiDict.html Best regards Cezary Statkiewicz -- Cezary Statkiewicz - http://thelirium.net rlu#280280 gg#5223219 jabber://[EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Is it possible to set title with AJAX? Or another floating text technique...

2007-09-18 Thread Cezary Statkiewicz
ks in ajax helpers see: http://pylonshq.com/WebHelpers/module-webhelpers.rails.prototype.html#link_to_remote Best regards CS -- Cezary Statkiewicz - http://thelirium.net rlu#280280 gg#5223219 jabber://[EMAIL PROTECTED] --~--~-~--~~~---~--~~ You receive

Re: Jsonify like TG

2007-10-02 Thread Cezary Statkiewicz
return render('/mytemplate.mak') @jsonify def json_action(self, param1, param2): """ retuning jsonified structure """ return self.__

Re: Beaker session across multiple sub-domains

2008-08-21 Thread Cezary Statkiewicz
kie_out'] = session.cookie[session.key].output(header='') Note however, that this trick is pre 0.9.6. Now it might be easier to setup. Best regards, Cezary Statkiewicz -- Cezary Statkiewicz - http://thelirium.net rlu#280280 gg#5223219 jabber://[EMAIL PROTECTED] --~--

Re: Chance for mailer with mail injection protection ?

2008-12-28 Thread Cezary Statkiewicz
rd) inside .ini file and get it from configuration variables from environment. What do you mean by mail injection protection and 'other functions'? If you're concerned about security, remember that properly designed application should filter user input everywhere. Bes

Re: Running a program without waiting for it to finish

2009-01-02 Thread Cezary Statkiewicz
help appreciated. Hello You can try use external scheduling process (like cron in *nix or scheduler in windows, or simple application which would constantly check for certain condition to run a task). Your web application would write some marker (for example a row into a db, or 'touch&

Re: How to check if the server is busy or idle

2009-05-26 Thread Cezary Statkiewicz
cally for new tasks - if there is a new task, controller will spawn a worker for it - worker will do the task and update task record in database - checking location will inform that task is done Best regards, Cezary Statkiewicz -- Cezary Statkiewicz - http://thelirium.net rlu#280280