Re: [web2py] Re: Requirements per application

2014-08-29 Thread Kuba Kozłowicz
e did you > get this idea? > > On Monday, August 25, 2014 1:12:12 AM UTC-7, Kuba Kozłowicz wrote: >> >> Yea, well with different instances you can do it, but I asked if that is >> possible for one instance, which contains multiple apps. >> >> So it's impossib

[web2py] Re: Content-Type does not get set for response.stream method

2014-08-25 Thread Kuba Kozłowicz
iles, but it does not work. W dniu środa, 20 sierpnia 2014 15:43:14 UTC+2 użytkownik Kuba Kozłowicz napisał: > > from applications.ChartGenerator.modules import generator > from gluon import HTTP, contenttype > > #URL > def generate(): > if request.env.request_method =

Re: [web2py] Re: Requirements per application

2014-08-25 Thread Kuba Kozłowicz
virtualenvs for each set of > modules and then run *different* instances of web2py. You can do that > easily and in many different ways. > > > 2014-08-22 12:21 GMT+02:00 Kuba Kozłowicz > >: > >> I know I can put app-specific modules into application//modules. &g

[web2py] Re: Requirements per application

2014-08-22 Thread Kuba Kozłowicz
is. If it happens bring it up here and we > can tell you how to fox them. > > On Monday, 18 August 2014 03:45:34 UTC-5, Kuba Kozłowicz wrote: >> >> I would like to know if it is possible to install different set of >> modules for each application separately. >&

[web2py] Content-Type does not get set for response.stream method

2014-08-20 Thread Kuba Kozłowicz
from applications.ChartGenerator.modules import generator from gluon import HTTP, contenttype #URL def generate(): if request.env.request_method == 'POST': import gluon.contrib.simplejson try: data = gluon.contrib.simplejson.loads(request.body.read()) fi

[web2py] Requirements per application

2014-08-20 Thread Kuba Kozłowicz
I would like to know if it is possible to install different set of modules for each application separately. I have a Web2py instance, which consists of serveral applications and the number of applications will grow. Some of those apps use library X in version Y. The apps, that will be deployed

[web2py] Select table's fields to be displayed in views

2014-08-05 Thread Kuba Kozłowicz
I'd like to display more fields for a few particular tables in my system or to be able to control exactly which fields will be displayed. I want it to be available in following compontents: - list of tables' entries ( I am using smartgrid ) - view page ( I am using the default view-page ) - edit

[web2py] Re: Upload field custom manipulation

2014-08-05 Thread Kuba Kozłowicz
,) > > > Where: > > def mydownload(): > fullname = os.path.join(os.path.join, 'private', request.args(0)) > response.stream(fullname) > > > On Wednesday, 30 July 2014 03:00:48 UTC-5, Kuba Kozłowicz wrote: >> >> f_invoice_file_path

[web2py] Re: Upload field custom manipulation

2014-08-05 Thread Kuba Kozłowicz
> use > > URL('mydownload',) > > > Where: > > def mydownload(): > fullname = os.path.join(os.path.join, 'private', request.args(0)) > response.stream(fullname) > > > On Wednesday, 30 July 2014 03:00:48 UTC-5, Kuba Kozłowicz

[web2py] Re: Upload field custom manipulation

2014-07-31 Thread Kuba Kozłowicz
the > desired filename? Do you handle the file writing or should web2py do it > automatically? > > > On Tuesday, 29 July 2014 05:59:10 UTC-5, Kuba Kozłowicz wrote: >> >> I have three tables: >> >> - invoices >> - invoice summaries >> - invoice bund

[web2py] Upload field custom manipulation

2014-07-29 Thread Kuba Kozłowicz
I have three tables: - invoices - invoice summaries - invoice bundles The website I am working on provides such a functionality, that user uploads a file, from which invoices and invoice summaries are generated and after being generated they are zipped and put into a bundle. For each upload I

[web2py] Re: Running web2py with settings in a config file

2014-07-15 Thread Kuba Kozłowicz
ython module or as a normal file. W dniu sobota, 12 lipca 2014 09:34:11 UTC+2 użytkownik Massimo Di Pierro napisał: > > Can you try: > > --config=T:/MyFolder/etc/config.py > > It is not finding the file. > > On Thursday, 10 July 2014 03:56:37 UTC-5, Kuba Kozłowicz wro

[web2py] response.stream changes filename of a file, that is being downloaded

2014-07-15 Thread Kuba Kozłowicz
This is my controller's code, that handles requests on following URL: /app/invoices/download/ for instance: /app/invoices/download/10 to download bundle of invoices, which ID is equal to 10 def download(): url_parts = request.url.split('/') bundle_id = url_parts[-1] try: b

[web2py] Re: Running web2py with settings in a config file

2014-07-11 Thread Kuba Kozłowicz
C+2 użytkownik Massimo Di Pierro napisał: > > You should in fact use a different filename for your --config. The > paramater_<>.py file is meant to contain only the password and it can be > overwritten by web2py if you change your password using the admin interface. >

[web2py] Running web2py with settings in a config file

2014-07-09 Thread Kuba Kozłowicz
I am trying to run web2py application from command line with such a command: C:\Python27\python.exe T:/MyFolder//web2py.py -a '' --config= parameters_8080.py and I have specified my application's settings in the file called "parameters_8080.py": password= "pbkdf2(1000,20,sha512)$9b51a45d2413e21