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
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.
>
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
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
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
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
> 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
,)
>
>
> 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
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
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
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
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.
>&
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
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 =
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
15 matches
Mail list logo