repoze.what-pylons working sample project

2009-03-06 Thread Krishgy
Hi Gustavo Narea All, I couldn't make repoze.what working with my application when I am following http://wiki.pylonshq.com/display/pylonscookbook/Authorization+with+repoze.what Can you project a simple pylons project with the example? It is possible? Regards, Gopal

Komodo Pylons Debug

2009-02-28 Thread Krishgy
Any body knew to debug pylons applications runs on paster using Komodo editor? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to

Re: mako rails' text_field html escape problem

2009-02-03 Thread Krishgy
itself. On Feb 3, 2:05 am, Mike Orr sluggos...@gmail.com wrote: On Mon, Feb 2, 2009 at 10:05 AM, Krishgy kris...@gmail.com wrote: I made it working through webhelpers.html.tags. from webhelpers.html.tags import * I used h.text() instead of h.html_field. Thanks for online pylons book

mako rails' text_field html escape problem

2009-02-02 Thread Krishgy
I use Pylons 0.9.7 on Debian 4.0 etch. Rails text_field returns escaped html output. Here is my helpers.py content helpers.py --- from webhelpers import * from webhelpers.html import * from webhelpers.html.tags import * from routes import url_for from webhelpers.rails import

Re: mako rails' text_field html escape problem

2009-02-02 Thread Krishgy
rails helper? On Feb 2, 10:34 pm, Krishgy kris...@gmail.com wrote: I use Pylons 0.9.7 on Debian 4.0 etch. Rails text_field returns escaped html output. Here is my helpers.py content helpers.py --- from webhelpers import * from webhelpers.html import * from webhelpers.html.tags

Re: Django or Pylons - comparison details

2008-12-08 Thread Krishgy
If your questions needs to be answered quickly, Django may be right choice. I think, you could have known why not to use PHP when you ask question on Django vs Pylons :-) . I NEVER worked on Python at jobs. I wanted to create a website. I have chosen Pylons over Django due to its customization

subdomain like blogspot

2008-11-26 Thread Krishgy
Hi All, I want to setup the sub-domain for the users who joins newly to the site. The concept is almost like the blogspot.com. So I need to handle the request to the site like below. newuser.example.com example.com/newuser How to do this in pylons? Regards, Krish http://dealmer.blogspot.com

authorize

2008-10-06 Thread Krishgy
Hi All, I have a question specific to decorator authkit. @authorize(HasAuthKitRole('poster')) def edit(self, id): ... I want to check that the edit permission is given only to owner of that content. I will allow the user only if I know the content id ('id' attribute). How to get the

RuntimeError: maximum recursion depth exceeded

2008-09-25 Thread Krishgy
I have got this following error. Hope if someone can figureout.. File c:\python25\lib\site-packages\paste-1.7.1-py2.5.egg\paste \registry.py, line 264, in _pop_object_restoration self._pop_object_orig(obj) File c:\python25\lib\site-packages\paste-1.7.1-py2.5.egg\paste \registry.py,

Re: Calculate the time differences

2008-09-24 Thread Krishgy
:09 AM, Domen Kožar [EMAIL PROTECTED] wrote: http://docs.pylonshq.com/thirdparty/webhelpers/date.html#webhelpers-date On 23 sep., 03:50, Krishgy [EMAIL PROTECTED] wrote: Hi All, In my Pylons site, I have to display the approximate posted time of the content to the user. For example

AuthKit redirect issue

2008-09-22 Thread Krishgy
Hi All, I could login to the application through authkit framework. When I login using http://localhost:5000/account/signin url directly, I could login to the url but the server redirect my page to http://localhost:5000/account/signin and display the following message 302 Found The resource

AuthKit multiple authentication methods

2008-09-22 Thread Krishgy
Hi All, We allow user to create the content if the user is a member of the site and he has to login into the site. This can be done through @authorize(ValidAuthKitUser()). But we will allow the user to create the content only if he has rights to create content. So I wanted to check the logined

Calculate the time differences

2008-09-22 Thread Krishgy
Hi All, In my Pylons site, I have to display the approximate posted time of the content to the user. For example, 1. posted 2 hours ago 2. Posted yesterday 3. Posted 2 days ago 4. Posted last month 5. posted two months ago I have the created column in the database which is actually

Re: best practices for methods that manipulate the model

2008-08-26 Thread Krishgy
I, too, have the same problem. I don't know how to use the model. Then I came up with the something like a Dao (Data Access Object) class to separate the model and use the class for all sql alchemy related task. My plan is to keep the controller and view data out side of sqlalchemy so that I can

Re: updating user and current controller state to template

2008-08-25 Thread Krishgy
For your user sign out /register issue, use like this % request.environ.has_key('REMOTE_USER'): li firstwelcome ${c.user_name}/li % else: li firsta href=/account/signinSignin/a/li lia href=/account/newRegister/a/li % endif If

Re: Webhelper and Options

2008-08-20 Thread Krishgy
Mike, Could you please point me the link for the latest web helper (Pylons 0.9.7)? I couldn't find anything myself. Regards, Gopal On Aug 17, 10:30 am, Mike Orr [EMAIL PROTECTED] wrote: On Sat, Aug 16, 2008 at 8:40 PM, Krishgy [EMAIL PROTECTED] wrote: To Add items to the Combo Box, I do

Re: LoudAppeal - First large pylons based company

2008-06-14 Thread Krishgy
Why don't you share your development experience and pylons third party components used in the web application? It will help to brainstorm myself may be for others here too. On Jun 13, 12:36 pm, SamDonaldson [EMAIL PROTECTED] wrote: Hello folks. I just wanted to present my company after a

Re: Difference between controllers and views?

2008-06-14 Thread Krishgy
For me, there are not much differences between view based approach and the controller based approach. Of course, functions are first class objects in Python. MVC is an abstract concept, a pattern for classifying the data, actions and presentation/view. Languages and frameworks(framework

Forum plug-in for pylons?

2008-06-14 Thread Krishgy
Hi, We are developing a website for online deal sharing community. I needed a simple forum for users to post questions get clarifications from the other users site owners. This is mainly intended to how to use the site and feature suggestions. Similarly we needed a blog for our development

Pylons Session help

2008-06-09 Thread Krishgy
/file, i can log the file Any idea how to achieve this? (Don't worry about privacy, integrity issues. This is purely technical, to analyze what user like the most in the site) Regards, Krishgy --~--~-~--~~~---~--~~ You received this message because you