Assuming you have the download action in default py, then your PDF sources
are accessible as
http:///yourapp/default/download/.
(here filename is the web2py assigned filename stored in the upload field).
You just have to use that urls as source in the pdf.js example:
jQuery(function(){
Please open a pydal ticket. I do not think we support this yet but we can
add it.
On Wednesday, 23 April 2014 05:44:39 UTC-5, liber...@gmail.com wrote:
>
> Hi everyone,
> I am trying to extract latitude and longitude from a POSTGIS geography()
> field. Unfortunately the usual st_x() and st_y() f
To be safe. Unzip the new web2py somewhere else. Then copy all the new
files over the old ones. To be safe I always remove the old gluon/folder
before copying it.
On Sunday, 21 June 2015 21:47:47 UTC-5, Joe wrote:
>
> I actually don't have an *"upgrade now"* button on my administrative
> interf
Thanks for letting me know. I did not try that yet.
On Monday, 22 June 2015 01:20:33 UTC-5, Paolo Valleri wrote:
>
> Massimo the mentioned issue has been fixed in pydal. Have you found other
> different issues?
>
> Paolo
>
> On Sunday, June 21, 2015 at 6:14:29 PM UTC+2, Massimo Di Pierro wrote:
>
Looks at the options of URL and requires_signature. You can specify which
vars should be included in the signature. You cannot sign the autocomplete
field because that is generated by JS after web2py has already computed the
signature.
On Friday, 19 June 2015 15:31:58 UTC-5, Scott Hunter wrote:
The checkbox only appears in edit mode so
{{=grid}}
and in css
.mygrid input[type='checkbox'] { margin:20px }
On Friday, 19 June 2015 10:23:21 UTC-5, Alex Glaros wrote:
>
> I want to apply CSS to a boolean checkbox field within grid edit mode.
>
> Is there a way to apply css to any grid field
Massimo the mentioned issue has been fixed in pydal. Have you found other
different issues?
Paolo
On Sunday, June 21, 2015 at 6:14:29 PM UTC+2, Massimo Di Pierro wrote:
>
> I think we should remove pg8000 unless this unicode problem is fixed. It
> just causes problem to new pgsql users. psycopg
+1
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To uns
I was able to work around this by removing the requires_signature
decorator, and then having the controller inspect the url for the lookup
var that the autocomplete widget uses to know when to expect the signature
to be missing, otherwise to require it. This would seem to leave a
security hole
I actually don't have an *"upgrade now"* button on my administrative
interface. This is the version I have:
2.9.5-stable+timestamp.2014.03.20.22.57.13
Can some one please advise me on what is the best way to upgrade the latest
version manually? I found this instruction in the recipes:
* Simply
Thanks Dave!
I have problems to upgrade, also I am not sure if upgrade to the newest
web2py can solve this problem.
I will try Apache or nginx if there is no way to switch to TLS in Rocket.
On Friday, June 19, 2015 at 6:52:04 PM UTC-4, Dave S wrote:
>
>
>
> On Friday, June 19, 2015 at 3:38:08
Responding to this old thread. When I do the ...in the background
image, the entire image is filled up in the page. How do I specify pixel
(how much width and height)?
I tried ; width:10px; height:10px. But it still filles the entire screen
with the image.
On Wednesday, September 18, 2013 a
You might consider doing this in the controller:
if datetime.timedelta(days=2) > (t-question.created_on):
[el.update(_disabled=True) for el in form.elements('input')]
You could also handle it in Javascript.
Anthony
On Sunday, June 21, 2015 at 12:13:03 PM UTC-4, Chaitu P wrote:
>
> Is there
If it is fixed content, use the second pattern (though note that in HTML,
you do not enclose text in quotes as you have). If you need to generate the
content dynamically, just pass the data from the controller to the view,
build the HTML structure in the view, and insert the data where needed. F
Alternatively, you can use numpy to run C from python using source version
of web2py.
https://scipy-lectures.github.io/advanced/interfacing_with_c/interfacing_with_c.html
Check out numpy support 2.8.2.2
2On Sunday, June 21, 2015 at 1:03:04 PM UTC-4, 黄祥 wrote:
>
> i think you can use python subpr
please take a look at this discussion :
https://groups.google.com/forum/#!searchin/web2py/multi$20file$20upload/web2py/twIYixbPeZI/E0j9FX6pPsEJ
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https:
+1
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To uns
please take a look at this slice
http://www.web2pyslices.com/slice/show/2012/encrypt-information-into-the-database
not sure is it suitable for your requirement or not
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2p
if you just do the print, i think it's better to do it in views, but when
you have query to database, computing process or another process, i think
it's better to do it in controllers, and then pass the variable to the view
to show it in html browser.
best regards,
stifan
--
Resources:
- http
i think you can use python subprocess module
e.g. (change the *.exe file with your *.c file)
*controlelrs/default.py*
import subprocess
def change_hostname():
command = "applications/administrator/static/script/windows/change
hostname.exe"
proc = subprocess.Popen(command, stdout = subproc
please read the book, with ascending order.
1. setting up email (normally in models/db.py)
2. sending email (can be put in models, controllers or modules)
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source cod
just an idea, why not use components?
e.g.
pseudo code
if true:
load component that have form
else:
don't load component that have form
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
already had try unique = True in your define table? btw, why not use
requires = IS_NOT_IN_DB() validator?
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/lis
I think we should remove pg8000 unless this unicode problem is fixed. It
just causes problem to new pgsql users. psycopg2 is solid.
On Thursday, 18 June 2015 12:59:44 UTC-5, Paolo Valleri wrote:
>
> In general the best choice is psycopg2 however, the issue with pg8000 has
> been fixed
> I've wri
with web2py, if I have a blob field defined as follows:
.
Field('pdf','upload', uploadfield='pdf_file'),
Field('pdf_file', 'blob')
.
How could I use PDF.js (https://github.com/mozilla/pdf.js/) to display the
file?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Docume
Dear all,
this is my first post as well as my first attempt with web2py. I've read
through most of the book and have the following question.
Here are a few guidelines I've understood:
- Each controller/function should have it's own view
- There are two ways to build up a webpage one is p
Thank you everyone for your very helpful responses - it is working
correctly again! The solution was indeed to clear the browser cache of
everything in the past. Many thanks.
On Wednesday, 17 June 2015 07:57:42 UTC+1, DaneW wrote:
>
> I've just upgraded to 2.11.2 and my application works ok but
ok i found a bypass. I don't why but i have followed the wizard and now my
tables appear.
I don't understand ..
when we create a new app without the wizard sql.log says "you have created
the tables" and they do not appear ... strange the source code is exactly
the same ...
Le jeudi 18 juin 201
Why complicate?
Read the book :)
# disable register login (models/db.py) #
auth.settings.actions_disabled.append('register')
quarta-feira, 2 de Junho de 2010 às 16:59:15 UTC, hamdy.a.farag escreveu:
>
> sure !!
> you'll have to make a small modification in controller default/user
>
> def use
Hi,
I reinstalled firefox on a ubuntu system and since then get errors:
a list of
xdg-open web-browser-name not found
and finally a
no method available for opening http://127.0.0.1:8000/
howewer $xdg-settings get default-web-browser issues
userapp-Firefox-VNWX0X.desktop
when I close a
i have added
auth.define_tables() now but it does not work but it is always the same
problem
Thank you for your answer
regards
Le jeudi 18 juin 2015 14:14:56 UTC+2, Massimo Di Pierro a écrit :
>
> Does your model contain
>
> auth.define_tables()
>
> and are you using
>
> http://...//appadmin
>
>
Hello,,
I want implement a functionality where by clicking button user should be
able to upload as many files as he wants. And these should be saved in
database as well.
User should be able delete those uploads as well.
Can any one please let me know how to implement this.
--
Resources:
- http
Hello all,
Iam creating a web application using web2py where teacher can post questions
and students can submit the solution .c file. Now my application should run
that file.
can anyone suggest me how to priceed with compilation?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Docum
Hi,
I have following table definition:
b.define_table('exchange_rate',
Field('currency', length=5, required=True, notnull=True,
label='Valuta'),
Field('rate_date', type='date', required=True, notnull=True,
label='Datum tečaja'),
Field('buy_rate',
openssl command is available on production server. I also tried Pycrypto
for encryption/decryption. Implementation of encryption/decryption function
can be anything, that's not my issue. I want suggestions on general
approach/ flow , 'how to store file in encrypted format and decrypt while
dow
Hello all,
Iam the beginner of web2py.
Iam trying to send email using web2py. Iam following the we2py
book http://web2py.com/books/default/chapter/34/08/email-and-sms.
Can any one please please let me know what exactly need to do.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Docu
Hello Massimo,
Thanks for the reply (and also for the YouTube videos on web2py - the first
one is an awesome introduction to the framework)
Basically, on what I'm trying to do, the user will never input a form.
He will upload a file, which I'll parse and I'll create the form from it.
Maybe I ca
How do I get the FORM rendered by Ractive to submit?
*CONTROLLER*
def get_form():
try:
user = db.auth_user(auth.user.id)
fields = ['first_name', 'last_name', 'gender', 'email', 'phone']
rslt = SQLFORM(db.auth_user, user, fields=fields, showid=False,
formname='auth_form
Is there any way that I can disable complete form instead of each
element.Because I want to have the same format in both the cases.
Here is my code of view...
{{=question.body}}
{{if datetime.timedelta(days=2)>(t-question.created_on):}}
{{=form}}
{{else:}}
Name
Email
{{pass}}
--
Reso
39 matches
Mail list logo