Re: [pylons-discuss] need guidance for Pyramid, Jinja2, deform combination

2015-11-22 Thread Krishnakant Mane
Thanks Jeff, Can you give me an example of how you do this? Happy hacking. Krishnakant. On 21/11/2015, Jeff Dairiki wrote: > On Fri, Nov 13, 2015 at 4:40 AM, kk wrote: > >> I guess I said all in my subject line. >> I would love if I can have templates in

[pylons-discuss] Re: Is it necesary that all views should be in a single file

2015-11-11 Thread Krishnakant Mane
On Monday, November 9, 2015 at 11:24:19 PM UTC+5:30, Jonathan Vanasco wrote: > > You can have views in multiple files, and even different packages. > > `views.py` is just a "scaffold" or reference implementation. > > IIRC, Pyramid will automatically scan either `views.py` or a `views/` >

[pylons-discuss] Is it necesary that all views should be in a single file

2015-11-09 Thread Krishnakant Mane
Hello, Can have I have a set of modules in a package containing my view classes? I had asked this same question before regarding normal views. I don't feel that it is a good idea to have all views in a single views.py file. Happy hacking. Krishnakant. -- You received this message because you

[pylons-discuss] is there an off line pyramid installer?

2014-08-28 Thread Krishnakant Mane
Dear all, I have already worked with Pylons before. I wish to know if just in case we have an offline tarball of Pyramid available. I would ideally like some thing like sudo python setup.py install do the job with all the default libraries which it any ways installs . So if there is a single

l10n confusion

2013-08-05 Thread Krishnakant Mane
Dear Pylons developers. I have been using Pylons for last 3 years but just recently I had to fall into the work of localization. So far it has been going good, but I have one problem. I wonder how I could translate strings coming from database? For example there is a list containing names of

trying to find a missing link in my localization steps

2013-04-16 Thread Krishnakant Mane
Hello I am in the process of doing i18n and l10n for my web application. I use mako template and all the words to be translated have been put into a ${_()} along with generation of pot file. I also generated a po file for my language, Marathi. Now, I know I have to add a dropdown list labled

Re: trying to find a missing link in my localization steps

2013-04-16 Thread Krishnakant Mane
(): request.response.set_cookie('_LOCALE_', request.GET['language']) return request.response So when the language is selected, the home screen is opened in the right language and from that point everything is in the right language. On Tue, Apr 16, 2013 at 12:13 PM, Krishnakant Mane

basic confusion on first time localization

2013-04-04 Thread Krishnakant Mane
Hello all. i am a Pylons 1.0 user for last 2 years. I wish to clear some of my confusions regarding translation. I am refering to the tutorial at docs.pylonsproject.org/projects/pylons-webframework/en/latest/i18n.html to learn the process. My first question is which library should I actually

Re: What is and isn't Pyramid

2013-03-29 Thread Krishnakant Mane
Hello paul. I think Piramid is a framework for complex web applications (easy ones are easily done using DJango ). It can also be used to just develop a web front end for an already existing service based on xmlrpc or soap. The stacked approach is what I personally feel makes it stand out from

Re: is any one using tosca widgets or dynforms in real applications?

2013-02-25 Thread Krishnakant Mane
Hello, thanks for the help. On 02/25/2013 01:27 AM, Mengu wrote: hi krishnakant, 1) use tw2, not tw1. That is understood, given that there are so many new things I see in the docs (I had tryed version 1 before ). 2) you can definitely customize the form css. Well, this is exactly what I wish

searching for documentation on ajax requests with dynforms

2013-02-25 Thread Krishnakant Mane
Hello. I am a new member to this mailing list and a beginner with tw. I have so far understood that I will need to use tw2 and for ajax tw2.dynforms. Now after reading the documentation I realsie that I need to know more. I am slowly getting to grips with the concept, but there are a few

is any one using tosca widgets or dynforms in real applications?

2013-02-23 Thread Krishnakant Mane
Hello all, I think the subject says it all. My questions is about tosca widgets. Is it production quality, has some one used in real apps and how good is dynforms for ajax based requirements? Also I wish to know if there is a way to change the css of forms generated by tosca? Happy hacking.

Re: is any one using tosca widgets or dynforms in real applications?

2013-02-23 Thread Krishnakant Mane
So basically there are definite advantages of tw given it's power. I tryed some other form libraries but hit the wall when it came to customizing the css. happy hacking. Krishnakant. On 02/24/2013 02:00 AM, Thomas G. Willis wrote: the folks on the toscawidgets mailing list would probably be

Re: can't find the exact header for sending ods file as a downloadable file

2012-12-23 Thread Krishnakant Mane
On 12/22/2012 02:10 AM, Jason wrote: hi Jason, Thanks for the idea. Once you have the ods as a file object in your view-callable you can return it with something like: filecontent = myfile.read() headers = { 'Content-Type': 'application/ods', 'Content-Length':

can't find the exact header for sending ods file as a downloadable file

2012-12-21 Thread Krishnakant Mane
Hello all. I wish to send across an ods (spreadsheet) file from my pylons controller in such a way that the browser should ask the user to download the file (by presenting the usual download dialog of course ). Can some one help here? happy hacking. Krishnakant. -- You received this message

Fwd: [Gnukhata-devel] separation of js code from mako files

2012-10-26 Thread Krishnakant Mane
Dear Pylons/ piramid developers, I am forwarding this email from mailing list for GNUKhata www.gnukhata.org, a free and open source accounting software which I am leading. Basically we use Pylons version 1.0 for the front end. We are now planning to use some ui refinement library like

Re: Is this correct?

2012-08-07 Thread Krishnakant Mane
I think Both pyramid and Pylons have their own advantage. Python users would obviously use a framework in that language while php users will prefer some thing like Symfony. Python seemingly is more powerful in terms of builtin functionality (batteries included as they say ), while php is tuned

how big can a mako template be for a response?

2012-06-01 Thread Krishnakant Mane
Hello all, I have been using Pylons for more than a year now and I am really happy with it. I have not shifted to pyramid yet, so do tell me if that is necessary. My application uses Pylons 1.0 as the tool framework for the front end. The logic is in a backend server written in pure Python

Re: The Pylons Project is looking for GSoC students and ideas!

2012-04-03 Thread Krishnakant Mane
Hi, Has some one thought about an eclipse plugin for pylons? Happy hacking. Krishnakant On 03/04/12 17:36, John Anderson wrote: On Tue, Apr 3, 2012 at 12:14 AM, Joe Dallagojd.dall...@gmail.com wrote: Just to clarify, I would also be more than willing to do any of the ones mentioned the wiki.

Re: Pyramid in Production

2012-03-08 Thread Krishnakant Mane
I would absolutely recommend nginx for production use. It does the load balancing pritty well and I had myself asked for advice on the approach and reverse proxy with paist has given me the best performance. Happy hacking. Krishnakant. On 09/03/12 00:27, Jonathan Vanasco wrote: Not talking

any advantages of using fast cgi over reverce proxy with nginx?

2012-01-30 Thread Krishnakant Mane
hello all, I am developing a pylons app related to finance. I have decided to go with nginx as my http server. What option will be better, fast cgi or reverce proxy? my pylons app runs on port 8080 and the server hosting the app does not have apachi or any other web server for that matter.

any one with experience using formbuild?

2011-11-13 Thread Krishnakant Mane
hello all, I was wondering if any one could share any experience of using formbuild for some production web site/ application? my main concern is how I can apply css to the fields generated using formbuild and can i use javascript events on the fields? Happy hacking. Krishnakant. -- You

any plugin for pylons or mako in eclipse?

2011-11-11 Thread Krishnakant Mane
Hello all, I am trying to search if there is a plugin for pylons or specifically mako? I can manage code completion in pylons controllers naturally because python is supported in pydev. But mako is a problem. Any suggestion? happy hacking. Krishnakant. -- You received this message because you

tips on migrating existing pylons app from python 2.6 to 2.7

2011-10-04 Thread Krishnakant Mane
Hello all. I wish to know what all needs to be done to shift my pylons 1 based web app to python 2.7? When it was developed it was in python 2.6 and now I use python 2.7? I have all the eggs which I collected from buildout and I am dead sure that I have the right eggs. But I still have an

Re: can some one give me exact names of pylons dependencies for off line setup?

2011-10-02 Thread Krishnakant Mane
Thanks, This seems to be promising idea. Happy hacking. Krishnakant. On 02/10/11 02:23, Carsten Senger wrote: Am Samstag, den 01.10.2011, 22:40 +0530 schrieb Krishnakant Mane: Hello all, I want to create a cd distribution for my pylons based app. I will certainly come across situations where

can some one give me exact names of pylons dependencies for off line setup?

2011-10-01 Thread Krishnakant Mane
Hello all, I want to create a cd distribution for my pylons based app. I will certainly come across situations where there is bad or even no internet for easy_install to work online. I would like a perfect list with proper url's to download all the dependencies for Pylons version 1.0 with

Re: can some one give me exact names of pylons dependencies for off line setup?

2011-10-01 Thread Krishnakant Mane
. I will be very very happy if some one can releave me of the frustration to know all the eggs and tar files needed for a complete pylons 1.0 setup with python 2.7.2 Happy hacking. Krishnakant. On 01/10/11 22:40, Krishnakant Mane wrote: Hello all, I want to create a cd distribution for my pylons

Re: is it possible to use virtual environment with pylons without activation?

2011-08-14 Thread Krishnakant Mane
On 15/08/11 00:39, cd34 wrote: you can do: #!/path/to/virtualenv/bin/python in your startup script which will cause the script to load from that environment. Cron jobs are often run this way. At that point, you might also choose to update your environment: import os, sys, site

can I have more than one session keys?

2011-08-12 Thread Krishnakant Mane
hello all, This might be a very sili question. I have a situation where I have to store 2 items as session data. Its a financial software and one variable is client_id. It is the id which is sent to the core engine running as xmlrpc. The other user specific global item is the organisation name

wish to make session call a function when it gets closed

2011-08-07 Thread Krishnakant Mane
Hello all, I have an interesting problem here. my application is made of a core engine written in xmlrpc. It is published as a web service listenning on a certain port. On the same server runs my pylons app served behind nginx. So the basic work of all the controllers is to make calls to the rpc

inconsistent return behaviour from jsonified action for ajax submit

2011-07-29 Thread Krishnakant Mane
Hello all. I have recently observed that when an action returns json instead of a mako template, the behaviour is highly inconsistent. The problem is like this. One of my mako template sends an ajax submit request (using jquery) to an action controller. Users of jquery will know that we use

Re: inconsistent return behaviour from jsonified action for ajax submit

2011-07-29 Thread Krishnakant Mane
. Moreover: If you are dealing with JSON, i recommend using firefox and the jsonview plugin! Kind regards Cornelius Am 29.07.2011 11:58, schrieb Krishnakant Mane: Hello all. I have recently observed that when an action returns json instead of a mako template, the behaviour is highly inconsistent

converting request values into cdata, is it a pylons issue?

2011-07-28 Thread Krishnakant Mane
Hello all. I have a requirement where a pylons action controller gets data fromm request.params[companyname] and put it into an xml file at the server side. it has many other fields but here I am just making things simple. Now my problem is that when user enters special characters such as ,

Re: converting request values into cdata, is it a pylons issue?

2011-07-28 Thread Krishnakant Mane
On 28/07/11 12:26, Mike Orr wrote: On Wed, Jul 27, 2011 at 11:15 PM, Krishnakant Manekrm...@gmail.com wrote: Hello all. I have a requirement where a pylons action controller gets data fromm request.params[companyname] and put it into an xml file at the server side. it has many other fields but

Re: converting request values into cdata is it pylons issue

2011-07-28 Thread Krishnakant Mane
Hi Mike. Strange enough but i solved it due to one major hint you gave me knowingly or unknowingly. I did convert my data to string. It was unicode string i suppose. And yes I had to use cdata also. Now it works fine. By the way you were right json does it pritty well it was not json's

a challenge sending ods file to the browser throgh and an action

2011-07-08 Thread Krishnakant Mane
hello all, I am using pylons 0.9.7 for developing my application. It is an accounting software and I need to return back an ods file to be downloaded by the user. But even after trying fileapp I can't get thihngs to work. Can some one give me any idea as to what I must do? All I need is to have

Re: a challenge sending ods file to the browser throgh and an action

2011-07-08 Thread Krishnakant Mane
On 08/07/11 20:26, Karol Tomala wrote: You have to set MIME type on Response object according to the file type. Look at WebOb.Response documentation on how to set headers. Required headers (at least) are probably: Content-Type: YOU_MIME_TYPE Content-Transfer-Encoding: binary

Re: a challenge sending ods file to the browser throgh and an action

2011-07-08 Thread Krishnakant Mane
On 08/07/11 20:24, Michael Merickel wrote: For the browser to serve up a file for download you can set the Content-Disposition header on the response. http://en.wikipedia.org/wiki/MIME#Content-Disposition Thanks a lot. This has worked withy pdf files but I use odfpy to generate ods files

confused on avoiding sql injections using ORM

2011-07-04 Thread Krishnakant Mane
Hello all. I use Pylons 0.9.7 and sqlalchemy. I use the Object Relational Mapper with declarative syntax in a few of my modules. I was reading chapter 7 of the Pylons book and I understood that sql injections can be avoided using the expression api. But can this be also done using ORM? I tryed

Re: [sqlalchemy] Re: confused on avoiding sql injections using ORM

2011-07-04 Thread Krishnakant Mane
On 05/07/11 03:03, Malthe Borch wrote: Think about it this way: There's two kinds of strings when you're dealing with SQL: 1) SQL language, 2) your data input. Don't ever include (2) in (1) –– let the API do it. How does one do this with the orm? I am talking about things like session.add

Re: sqlalchemy version in pylons 1.0

2011-06-17 Thread Krishnakant Mane
Hello, I have used version 0.6.X with no problems. so any later versions will not be problems I guess. Happy hacking. KKrishnakant. On 17/06/11 03:00, Wyatt Baldwin wrote: On Thursday, June 16, 2011 10:13:57 AM UTC-7, monax wrote: Hello! What problem can I have if I will use

Re: help on daemonising my pylons app

2011-04-27 Thread Krishnakant Mane
On 27/04/11 06:33, Mike Orr wrote: I run my apps under supervisor, which is a Python daemon manager. On Tue, Apr 26, 2011 at 3:26 PM, Krishnakant Manekrm...@gmail.com wrote: Hello all. I have a pylons application running in a virtual environment. Can some one give me a hint as to how I could

Re: help on daemonising my pylons app

2011-04-27 Thread Krishnakant Mane
On 27/04/11 22:33, Mike Orr wrote: In Ubuntu, install the 'supervisor package' and create an /etc/supervisor/conf.d/ file for your application. Here's an example: [program:inews] command = /home/wwwadmin/venv/inews2.5/bin/paster serve /home/wwwadmin/apps/inews/production.ini process_name =

Re: help on daemonising my pylons app

2011-04-27 Thread Krishnakant Mane
On 27/04/11 22:33, Mike Orr wrote: By end user do you mean yourself or another sysadmin? I don't distribute daemon applications; I just run them myself. If you need to distribute them so that an unknowledgeable sysadmin can install them, Yes I intend exactly that. it's more difficult. Every OS

help on daemonising my pylons app

2011-04-26 Thread Krishnakant Mane
Hello all. I have a pylons application running in a virtual environment. Can some one give me a hint as to how I could have the virtual environment started and the paster serve production.ini be run as a daemon? I looked on the internet and found one shell script. I am paisting the content

need help with enginx configuration with Pylons.

2011-04-24 Thread Krishnakant Mane
Hello all. Can some one help me out with a small problem? if any one has ever deployed an application in pylons 0.9.7 using nginx 1.0 or lower, then please give me an example of nginx.conf file and any other files I need to change. My application name is gnukhata and I will highly appreciate if

Re: need help with enginx configuration with Pylons.

2011-04-24 Thread Krishnakant Mane
the same. Michael On Sun, Apr 24, 2011 at 12:24 PM, Krishnakant Mane krm...@gmail.com mailto:krm...@gmail.com wrote: Hello all. Can some one help me out with a small problem? if any one has ever deployed an application in pylons 0.9.7 using nginx 1.0 or lower, then please

Re: inconsistant request.param[]

2011-04-08 Thread Krishnakant Mane
Sorry for the repeat post, but here is the exact error message given by pylons prompt. ajax submit Exception happened during processing of request from ('127.0.0.1', 57000) python On 07/04/11 23:46, Krishnakant Mane wrote: and as any one using jquery might be aware the data is sent as a key

inconsistant request.param[]

2011-04-08 Thread Krishnakant Mane
. I tryed to print the request.params and a few of those params are actually not getting printed. I put alerts in my javascript code and the values are indeed coming from the proper widgits in the proper way. I also know that the url is correctly pointing to the controller/action when the

Re: a very veard message pops up with pylons 1.0 with firefox

2010-08-25 Thread Krishnakant Mane
On Tuesday 24 August 2010 08:56 AM, cd34 wrote: Can you run something like livehttpheaders to see what the url is being generated? Can you post the code from the form that is giving you the error? Are you using Toscawidgets? I am actually using pure xhtml The code follows. !DOCTYPE HTML

Re: a very veard message pops up with pylons 1.0 with firefox

2010-08-25 Thread Krishnakant Mane
On Wednesday 25 August 2010 11:22 PM, Graham Higgins wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25 Aug 2010, at 18:23, Krishnakant Mane wrote: form method=post, action=http://localhost:5000/member/setMember; td input type=submit,value=submit /td What could be wrong

Re: a very veard message pops up with pylons 1.0 with firefox

2010-08-25 Thread Krishnakant Mane
On Thursday 26 August 2010 12:32 AM, karikris...@gmail.com wrote: Hi Krishnakant, Did you try removing refresh header? Which line exactly? Happy hacking. Krishnakant. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this

Re: a very veard message pops up with pylons 1.0 with firefox

2010-08-25 Thread Krishnakant Mane
='submit' field. Take a look at blueprint css sort of framework to work with tableless HTML. Thanks, Krish http://www.stacked.in On Aug 25, 10:52 pm, Graham Higginsgjhigg...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25 Aug 2010, at 18:23, Krishnakant Mane wrote

a very veard message pops up with pylons 1.0 with firefox

2010-08-23 Thread Krishnakant Mane
Hello. This could be off topic and might apply to many things but I found this is consistantly happening with pylons so thought I would post here as well (apart from the mailing list for firefox ). Well the problem is that when I run an application in pylons 1.0 and open up a form, I get an

how to use tmpl_context inside a javascript function?

2010-08-19 Thread Krishnakant Mane
Hello, Might be this is too easy and I am overlooking some simple solution. But really, I am not finding a way to include a value from tmpl_context inside a javascript function. what if I am creating a form that will have dynamically added rows and each row has a dropdown list containing some

Re: how to use tmpl_context inside a javascript function?

2010-08-19 Thread Krishnakant Mane
On Friday 20 August 2010 04:20 AM, Wyatt Baldwin wrote: You can put Mako/JS templates in your templates directory and then render them from your HTML template with something likescript src=$ {url('/templates/javascripts/whizbang.js')}/script. NO, the problem at hand is not that complex and

can some one help me choose the right library for dynamic forms?

2010-08-18 Thread Krishnakant Mane
Hello all, I have off late posted a few questions which are challenging for me to solve. I have a need to create dynamic forms for my pylons application. I had posted earlier on using tw.dynforms and asked for some guidance. But now I know that I will be forced to change my templating engine to

how would a request from a dynamically growing form look like?

2010-08-17 Thread Krishnakant Mane
Hello all, I am having a case similar to the one mentioned in the tw.dynforms tutorial. I have a inventory related module and the form might grow dynamically. meaning there might be more than one item and more than one cost etc. so request[item] wil not work because there might be more than one

any one managed to setup tw.forms with pylons 1.0?

2010-08-17 Thread Krishnakant Mane
Hello all. I am trying to setup pylons 1.0 along with toscawidgets. I particularly want to install tw.forms and configure the same. I even want to use tw.dynforms with pylons 1.0 so genshi is also setup. I would like to request for a sample middleware.py with the proper imports. I have followed

Re: Pylons book update to 1.0?

2010-08-15 Thread Krishnakant Mane
On Sunday 15 August 2010 11:26 AM, Mike Orr wrote: I think he was leaving it open for the community to update to 1.0 but it hasn't happened. As far as I know there's no new edition of the paper book planned. Obviously, it costs the publisher a lot to do an update, so they can't do it for every

Re: is toscawidgets linked with webhelpers?

2010-08-09 Thread Krishnakant Mane
'}} and considering the fact that Sprox is built over toscawidgets, I think you just might be able to do something like this there too. On Sun, Aug 8, 2010 at 4:59 PM, Krishnakant Mane krm...@gmail.com mailto:krm...@gmail.com wrote: Hi Krish, Actually even I had the same experience

Re: is toscawidgets linked with webhelpers?

2010-08-08 Thread Krishnakant Mane
Hi Krish, Actually even I had the same experience a while before but seems tw.forms has improved. I got your point and I too generally prefer the plain html way, but at times tw.forms or formbuild comes handy. What I particularly like is the dinforms library. But still I don't know what are

is toscawidgets linked with webhelpers?

2010-08-07 Thread Krishnakant Mane
Hello all, The question might sound beard, but I have a reason to ask it. When we generate a form using webhelpers, its python code which creates the widgets, and I know the ids of every widget. So if I do document.getElementById it works fine. I see that tw.forms also generates widgets using

Re: another setup issue, reportlab and pil can't be installed

2010-06-25 Thread Krishnakant Mane
Python dev libraries are indeed needed. I fixt it by installing the libraries. thanks every one. Happy hacking. Krishnakant. On Friday 25 June 2010 03:14 AM, cd34 wrote: If I recall, both of those require gcc to compile portions of the package. I believe the issue you are probably hitting is

another setup issue, reportlab and pil can't be installed

2010-06-24 Thread Krishnakant Mane
Hello, This might be an issue related to the virtual environment I don't know. In that case it is off topic. But some how once I install Pylons inside a virtual environment, I can't install reportlab and pil using easy_install. Actually I need these packages for generating reports for my web

Re: another setup issue, reportlab and pil can't be installed

2010-06-24 Thread Krishnakant Mane
in the PIL directory: site-packages/PIL-1.1.7-py2.6-macosx-10.6-universal.egg/ /EGG-INFO /PIL Therefore, just create a PIL directory and move all the .py files there. Cheers On 24 June 2010 11:53, Krishnakant Mane krm...@gmail.com mailto:krm...@gmail.com wrote: Hello, This might

Re: can I use fileapp to render an ods file to the browser?

2010-06-14 Thread Krishnakant Mane
It is still unclear to me. I just want to know if there are some content types associated with spreadsheets and particularly for ods? Further should my action have a return render or just return(file.ods)? My understanding was that paste.fileapp() could do this just as it can for ods? So my

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-06-13 Thread Krishnakant Mane
On Wednesday 02 June 2010 04:04 AM, Shailesh Kochhar wrote: I had to figure this out too and it keeps coming up as a question. The short answer is: 1. In controllers, add: from pylons import url and then use url(). You can add this to a central place and use it in all your controllers. 2.

can I use fileapp to render an ods file to the browser?

2010-06-13 Thread Krishnakant Mane
hello all, a few days back i had asked a doubt on this mailing list about rendering a pdf file to the browser from a pylons control action. The solution came in form of paste.fileapp() function which is to be included before the return statement in a controler action. I know it takes care of

Re: pylons 1.0 installation failes with easy_install

2010-05-30 Thread Krishnakant Mane
On Sunday 30 May 2010 11:21 AM, Mike Orr wrote: All the files required by Pylons and a few extras are here: http://pylonshq.com/download/1.0 So you can recursively download that page to make a local cache. Thanks. This works although I got a few warnings. Thanks again all of you for the

Re: what are the exact performance advantages of 1.0?

2010-05-30 Thread Krishnakant Mane
So has the getting started and related documentation ported to version 1.0? Happy hacking. Krishnakant. On Sunday 30 May 2010 02:51 PM, Evgeny wrote: As far as I read changelog, the point of 1.0 is not performance. But rather cleaner architecture, decreased magic. You can read changelogs here:

sqlalchemy 0.5.8 or 0.6.0?

2010-05-30 Thread Krishnakant Mane
Hello, I am using pylons for my web application development. Currently pylons is in version 1.0 and 0.9.7 is also going stable. I want to know which is the correct version of sqlalchemy for both versions of Pylons. I know it might not make that much of a difference but there are some changes

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Krishnakant Mane
On Sunday 30 May 2010 10:47 PM, Alexandre Conrad wrote: Hello Krishnakant, you will find answers to your questions by following the 1.0 upgrading instructions: http://pylonshq.com/docs/en/1.0/upgrading/ Thanks alexandre. This really clears all things. I just wanted to confirm one thin.

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Krishnakant Mane
On Monday 31 May 2010 02:30 AM, Ben Bangert wrote: On May 30, 2010, at 12:09 PM, Wyatt Baldwin wrote: Pylons injects a few things into the template context for you along with `h`, including (off the top of my head) `url`, `config`, `request`, and `response`. You don't need to prefix any of

pylons 1.0 installation failes with easy_install

2010-05-29 Thread Krishnakant Mane
hello all. I am trying to install pylons 1.0 using easy_install in a vertual environment. I get the error failed to download some packages By the way can some one tell me where can I download all the dependencies for off-line installation. I had success with pylons 0.9.7 where I used to do

Re: Pylons 1.0 Released

2010-05-28 Thread Krishnakant Mane
This is a great news. Congratulations to all the contributors, you all must be saluted for your tireless work and dedication for this amaisingly powerful and flexible web application framework. I understand that many contributers are working full-time on another job and out of their precious

Re: application deployment question about nginx and pylons

2010-04-27 Thread Krishnakant Mane
would google Nginx reverse proxy for tutorials. Hope that helps! On Tue, Apr 27, 2010 at 10:59 AM, Krishnakant Mane krm...@gmail.com mailto:krm...@gmail.com wrote: Hello all, I want to know if I really can go with nginx for deployment of a web app which might be exposed to high

any good tutorial for formalchemy?

2010-04-23 Thread Krishnakant Mane
Hello all, I have been lerking around reading the thread on django.forms to be incorporated for pylons. I wanted to know out of curiosity, is formalchemy good enough for a typicle application where forms are closely related to the table objects? Perhaps the application needs to link 2 tables

Re: any good tutorial for formalchemy?

2010-04-23 Thread Krishnakant Mane
I got the docs from the formalchemy website, but there was no getting started. I will look at the pylons example. Happy hacking. Krishnakant. On Friday 23 April 2010 08:17 PM, Gael Pasgrimaud wrote: On Fri, Apr 23, 2010 at 4:32 PM, Krishnakant Manekrm...@gmail.com wrote: Hello all, I

Re: any good tutorial for formalchemy?

2010-04-23 Thread Krishnakant Mane
On Friday 23 April 2010 08:17 PM, Gael Pasgrimaud wrote: On Fri, Apr 23, 2010 at 4:32 PM, Krishnakant Manekrm...@gmail.com wrote: is there a good getting started with formalchemy tutorial anywhere? Not really. You can have a look at the docs:

Re: any good tutorial for formalchemy?

2010-04-23 Thread Krishnakant Mane
MESSAGE- Hash: SHA1 On 23 Apr 2010, at 16:10, Krishnakant Mane wrote: I see. So should the template not be used for production? It should be good enough for government work. The instability is largely due to an elevated number of commits as I go through the code cleaning up

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-15 Thread Krishnakant Mane
Good, so now I am left to just hack out the ods related problem. It will be great if I can send the spreadsheet across to browser. The browser may inturn open calc and display the spreadsheet. Happy hacking. Krishnakant. On Thursday 15 April 2010 02:14 PM, Michael Brickenstein wrote: We

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-14 Thread Krishnakant Mane
On Wednesday 14 April 2010 12:20 AM, Mike Orr wrote: It's not off topic. I have a client who renders PDF in Pylons, and I may have to do it myself someday. I don't remember offhand if he's using ReportLab or some other library, but I'll check tonight. I am already using reportlab and it

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-14 Thread Krishnakant Mane
On Wednesday 14 April 2010 01:17 AM, Deron Meranda wrote: On Tue, Apr 13, 2010 at 2:55 PM, Krishnakant Manekrm...@gmail.com wrote: No, the pdf files are going to be 1 page or in rare cases at the most 2 pages. Definitely no need to mess with byte-ranges then. That's really only

can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Krishnakant Mane
hello. I have a requirement where I need to generate spreadsheet type reports as well as integrating pdf reports into my web app. I should be able to print them from my browser. Some of them are generated dynamically so I will jsonify my pylons method to give out the data, but are there some

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Krishnakant Mane
On Tuesday 13 April 2010 11:13 PM, Thomas G. Willis wrote: For server side, there's report lab http://pypi.python.org/pypi/reportlab I have used report lab before to generate pdf but I did not quite understand how it will help at the server side with my pylons app? Is there a way to render

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Krishnakant Mane
On Tuesday 13 April 2010 11:48 PM, Thomas G. Willis wrote: I'd have to look at the docs to be sure, but getting the browser to pick it up as a pdf and use the associated application should be a matter of setting the headers correctly on the response. Hey Thomas, Can you plese mail me off

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Krishnakant Mane
On Tuesday 13 April 2010 11:59 PM, Deron Meranda wrote: You can send the PDF just as you would any other type of *binary* file, such as an imagedo not attempt to process it as text. Use the content-type header of application/pdf. Where do I set this header in context to a pylons

Re: which is the best ORM recommended?

2010-03-15 Thread Krishnakant Mane
On Monday 15 March 2010 01:01 AM, Mike Orr wrote: It's a tradeoff between portability and performance. I prefer portability because I've had to change db backends more than once. But if the application is extremely calculation-intensive, the speed of db-specific stored procedures may be an

Re: which is the best ORM recommended?

2010-03-14 Thread Krishnakant Mane
On Sunday 14 March 2010 11:08 PM, Mike Orr wrote: On Sun, Mar 14, 2010 at 12:17 AM, Krishnakant Manekrm...@gmail.com wrote: Now since database is going to be hit by so many queries, having an ORM tested and tryed to that extent is very crutial. SQLAlchemy can handle it because the

which is the best ORM recommended?

2010-03-13 Thread Krishnakant Mane
Hello all, I know that people might say this is a stupid question given that pylons comes with settings for SQLAlchemy by default, although sqlalchemy is not installed. but still, If I want to use pylons for a big web application on production, which is the right ORM that can be relied upon?

Re: any thing new in the latest RC for pylons?

2010-03-13 Thread Krishnakant Mane
On Saturday 13 March 2010 02:12 AM, Mike Orr wrote: I'm actually just about to write the upgrading doc and high-level list of changes so I can make the final release. (Which means everything that's not done yet will have to wait till after the release, including fixing convert_misc_characters(),

Re: any thing new in the latest RC for pylons?

2010-03-12 Thread Krishnakant Mane
On Friday 12 March 2010 12:32 AM, Mike Orr wrote: If you're starting a new application, I would create it from the 1.0 beta. That way the changes are already made in the application template, and you won't have to change them later. You'll also remember to use 'url' instead of 'h.url_for',

Re: any thing new in the latest RC for pylons?

2010-03-12 Thread Krishnakant Mane
On Friday 12 March 2010 11:44 PM, Mike Orr wrote: On Fri, Mar 12, 2010 at 9:28 AM, Krishnakant Manekrm...@gmail.com wrote: IC, but Beta? can I develop an application using the beta version? Is it stable enough? When I said beta I meant the latest prerelease version, which is RC1

any thing new in the latest RC for pylons?

2010-03-11 Thread Krishnakant Mane
Hello, I just downloaded the latest rc for pylons (rc1 for 0.10). are there new features which I should concentrate for developing a commertial web application? are there some things which might make my previous projects incompatible with the current RC? Are there any changes which will render

Re: Installing Pylons without an Internet connection

2010-02-07 Thread Krishnakant Mane
On Sunday 07 February 2010 04:07 AM, Matthew Burgess wrote: Hi, The Subject: may seem odd, given that Pylons is a Web Framework :-) However, what I'm trying to achieve is a 100% repeatable installation, which is oblivious to any updated packages on PyPi, etc. I'm trying to ensure that if I