On Thursday, 15 March 2012 16:45:53 UTC+5:30, Sanjeet Kumar wrote:
>
> How can i render the html file in to the doc file
Hello Sanjeet for file you dont have to identify the file extension, IN
model itself you can validate the upload field . Please see the web2py
cheatsheet and form or table validation its very easy to use.
And still you want to know the file format please see the module function
import sys.
On
requests module does not runs on python 2.5
https://github.com/kennethreitz/requests/issues/427
On Fri, Mar 16, 2012 at 1:52 AM, howesc wrote:
> if the library is self-contained, is not written in C, and does not use
> un-permitted features, you can just put the library in site-packages inside
>
if the library is self-contained, is not written in C, and does not use
un-permitted features, you can just put the library in site-packages inside
web2py and it will upload with your app.
On Thursday, March 15, 2012 5:56:49 AM UTC-7, Udi Milo wrote:
>
> I found the problem (which leads to a new
note that on GAE the web2py cache.ram, and cache.disk both point to
memcache.
On Thursday, March 15, 2012 1:34:42 PM UTC-7, Jonathan Lundell wrote:
>
> On Mar 15, 2012, at 1:15 PM, Sushant Taneja wrote:
> > I have a tags table which will be available to all logged in users. The
> table has the f
Thanks Anthony correct Alan i tried this working fine
On Thu, Mar 15, 2012 at 10:14 PM, Alan Etkin wrote:
> Anthony's answer is the right one, mine is for retrieving the
> extension of the url requested
>
> On 15 mar, 10:40, Anthony wrote:
> > request.vars.image.filename.split('.')[-1]
> >
> >
Hi all,
This my code for LDAP:
from gluon.contrib.login_methods.ldap_auth import ldap_auth
auth.settings.login_methods.append(ldap_auth(mode='cn',server='myserver',base_dn='ou=subdomain1,o=domain,c=com',port=389))
This works fine when I explicitely query SUBDOMAIN1 with the users that
Hello everybody,
I am teaching the online IPD certificate program again in Spring:
http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx
Students enrolled will be able to view online lectures recorded by me and
will work on a project of their choice for 5 weeks. At the end
Ok thanks I will try that, just looking for the easiest solution because we
need to generate a lot of invoices.
On Thu, Mar 15, 2012 at 4:57 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> I remind you that web2py comes with markmin2pdf too. It should work with
> most utf8 characters
I remind you that web2py comes with markmin2pdf too. It should work with
most utf8 characters.
On Thursday, 15 March 2012 17:52:24 UTC-5, Detectedstealth wrote:
>
> Thanks I will have to look into it, or possibly just use reportlab.
>
> On Thu, Mar 15, 2012 at 2:17 PM, Alan Etkin wrote:
>
>> I
Thanks Bruce,
I just bought the ebook from Packt Publishing and downloaded the PDF
format. I confirm that I can highlight text and write comments in the
PDF file using PDF-XChange Viewer by Tracker Software. To me this is
an important feature in order for an ebook to be more usable than a
traditio
On Thu, 15 Mar 2012 12:32:14 -0700, Marcello wrote:
> I bought mine from Amazon... don't know if I have access to that
>
> But my interest in the moment is not run code. I want to read the
> book
>
> And read the code without indentation is almost impossible...
>
> If my book is correct
Thanks I will have to look into it, or possibly just use reportlab.
On Thu, Mar 15, 2012 at 2:17 PM, Alan Etkin wrote:
> I belive Chinese is not ported to pypdf (the php software supported it
> via a special class). AFAIK the chinese fonts BIG5 or GB must be
> installed in the server. Maybe you
Thanks Massimo. I really owe a lot to Web2Py. The ticketing and admin
modules are great. I will kick Gluion's tires an see how far I can go
with it.
On Mar 15, 1:10 pm, Massimo Di Pierro
wrote:
> Hello Voltron, we missed you.
>
> Gluino needs testing. Moreover the API may still change a little
Forget one thing :
def export_csv():
rows = db((db.tab1.id == *request.get_vars['tab1_id']*)).select()
return dict(rows=rows)
On Thu, Mar 15, 2012 at 6:16 PM, Richard Vézina wrote:
> I get it to work like this :
>
>
> def export_csv():
> rows = db((db.tab1.id == tab1_id)).select()
>
I get it to work like this :
def export_csv():
rows = db((db.tab1.id == tab1_id)).select()
return dict(rows=rows)
def export_default_analysis_request():
tab1_subset = (db.tab1.bool1 == True)
form = SQLFORM.factory(
Field('tab1_id', requires=IS_IN_DB(db(tab1_subset),'t
I belive Chinese is not ported to pypdf (the php software supported it
via a special class). AFAIK the chinese fonts BIG5 or GB must be
installed in the server. Maybe you could start an issue for adding it
in the project page.
http://code.google.com/p/pyfpdf/
On 15 mar, 17:53, Bruce Wade wrote:
You're right, db selects do not appear to be working in the web-based
shell, at least not on Windows using SQLite. Are you sure it used to work
(specifically on Windows) -- I haven't tried it in a while, but I seem to
recall having problems with this a long time ago? I always use a standard
OS
Ahhh . . . now I just feel silly! Thanks.
Ian
On Thursday, March 15, 2012 4:57:58 PM UTC-4, rochacbruno wrote:
>
> You cannot perform a query to a Virtual Field, queries run on database
> level, virtual fields runs on app level.
>
> You can just fetch a subset of rows then use .find() to fiter t
You cannot perform a query to a Virtual Field, queries run on database
level, virtual fields runs on app level.
You can just fetch a subset of rows then use .find() to fiter that rows.
On Thu, Mar 15, 2012 at 5:55 PM, monotasker wrote:
> I had a nice query set up and working that looked for any
I had a nice query set up and working that looked for any match between
items in a list and records in a list-reference field:
catXtags = [2,4,6,7,9]
curr_loc.id = 6
db((db.paths.tags.contains(catXtags)) &
(db.paths.locations.contains(curr_loc.id))
I changed db.paths.tags to be a virtual f
Does pyfpdf support Chinese yet? I tried using Chinese by the characters
were not rendered in Chinese. Or do I need to set some kind of font.
On Thu, Mar 15, 2012 at 1:35 PM, Alan Etkin wrote:
> That error page is likely to be sent because of the new generic view
> security rule. I'm using the r
That error page is likely to be sent because of the new generic view
security rule. I'm using the response.generic_patterns = ["*",] in the
controller file and it works well (the sentence wasn't included in the
original file).
On 15 mar, 17:15, Bruce Wade wrote:
> Okay so the downloaded code the
On Mar 15, 2012, at 1:15 PM, Sushant Taneja wrote:
> I have a tags table which will be available to all logged in users. The table
> has the following structure:
>
> db.define_table('META_TAG',
> Field('tag','string',notnull=True),
> Field('root_tag','string',notnull=True),
> Field('a
The problem was in my browser cookies. I've cleaned the browser data
and the problem didn't reproduce. This is probably due to recent
changes in the online editor.
On 15 mar, 13:59, Alan Etkin wrote:
> When I click in the diskette for saving the file in the source code
> editor, the file is not s
Okay so the downloaded code the pdf works but the normal HTML view doesn't.
invalid view (default/report.html)
On Thu, Mar 15, 2012 at 11:48 AM, Alan Etkin wrote:
> I should check the code in the book, but I used a controller example
> that should be available in the book's support files at
> ht
Hi,
I have a tags table which will be available to all logged in users. The
table has the following structure:
db.define_table('META_TAG',
Field('tag','string',notnull=True),
Field('root_tag','string',notnull=True),
Field('active_ind','string',length=1,default='Y')
)
This table will
> Hi,
>
> My production environment is: latest web2py trunk, ubuntu 10.04,
> postgresql
> 8.4, nginx, uwsgi.
>
> I need to have data shared (not cached for certain time) across the uwsgi
> processes.
>
> Currently I'm accessing such data via db select, but I'm wondering if
> there's a faster ram m
Hi,
My production environment is: latest web2py trunk, ubuntu 10.04, postgresql
8.4, nginx, uwsgi.
I need to have data shared (not cached for certain time) across the uwsgi
processes.
Currently I'm accessing such data via db select, but I'm wondering if
there's a faster ram method (which auto
I noticed page 124 to be blank..Not sure if there was something in it.
On Thursday, 15 March 2012 11:05:40 UTC-7, Detectedstealth wrote:
>
> The PDF has indentation but it is off and not consistent in some parts.
>
> On Thu, Mar 15, 2012 at 11:04 AM, Marcello wrote:
>
>> Hello,
>>
>> I just b
I bought mine from Amazon... don't know if I have access to that
But my interest in the moment is not run code.
I want to read the book
And read the code without indentation is almost impossible...
If my book is correct, it is almost useless.
On Thursday, March 15, 2012 4:26:24 PM
For customers, the example source code with standard indentation
should be available for download with the book support files:
http://www.packtpub.com/support
On 15 mar, 15:04, Marcello wrote:
> Hello,
>
> I just bought my web2py Application Development Cookbook from Amazon
> (Kindle version)...
Web interface. On Windows, 127.0.0.1:8000
Michele Comitini wrote:
> did you do?
>
> python web2py.py -M -S
>
> mic
>
> Il 15 marzo 2012 09:12, Stefan Scholl ha scritto:
>> web2py 1.99.7 for Windows.
>>
>> Example app, inserted 1 person and 1 dog.
>>
>> In the shell:
>>
>> dogs = db()
Sorry, my "bug report" was a bit short. Was called to a meeting 5
minutes earlier than planned.
I tested this with the example app because I wanted a clear test
case. The bug was first seen in a bigger applicationi(, where I
wanted to see why the common_filter feature only worked in the
database a
Yes, the book needs to be updated.
On Thursday, March 15, 2012 12:10:18 PM UTC-4, Edward Shave wrote:
>
> Oh, I went straight to base.css after reading the following in the the
> review section of the book...
>
> *Configuring the layout*
>
> *You can configure the default layout by editing "views
I should check the code in the book, but I used a controller example
that should be available in the book's support files at
http://www.packtpub.com/support and it worked for my environment:
Python 2.6.5
Mandriva GNU/Linux 2010
web2py (last mercurial version)
A complete working installer can be d
The PDF has indentation but it is off and not consistent in some parts.
On Thu, Mar 15, 2012 at 11:04 AM, Marcello wrote:
> Hello,
>
> I just bought my web2py Application Development Cookbook from Amazon
> (Kindle version)..
>
> I noticed that all python code is not indented
>
> Is it ?
>
>
Hello,
I just bought my web2py Application Development Cookbook from Amazon
(Kindle version)...
I noticed that all python code is not indented
Is it ?
Ebook or PDF has the same problem ??
Thanks,
Marcello
Fresh blank version of web2py, in default controller:
def report():
import os
response.title = "web2py sample report"
# include a chart from google chart
url = "
http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=500x200&ch1=Hello|World&.png
"
chart = IMG(_src=url, _wid
Install what app? I am following the instructions to create a PDF.
On Thu, Mar 15, 2012 at 10:47 AM, Alan Etkin wrote:
> How are you running the code? Did you install the app from the apps
> folder?
>
> On Mar 15, 2:29 pm, Bruce Wade wrote:
> > Chapter 10: Creating PDF reports
> >
> > Error:
>
How are you running the code? Did you install the app from the apps
folder?
On Mar 15, 2:29 pm, Bruce Wade wrote:
> Chapter 10: Creating PDF reports
>
> Error:
>
> Traceback (most recent call last):
> File
> "/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/restricted.py",
> line 20
You can add bookmarks, I have no idea how to write comments using Evince on
Ubuntu though.
On Thu, Mar 15, 2012 at 10:08 AM, Francois wrote:
> If one of you got the ebook in PDF format, can you confirm if it
> possible to annotate it (write comments and put bookmarks) ?
>
> Thanks,
>
> -Francois
If one of you got the ebook in PDF format, can you confirm if it
possible to annotate it (write comments and put bookmarks) ?
Thanks,
-Francois.
On Mar 15, 12:46 pm, Bruce Wade wrote:
> Cool just bought it. I am interested to see how some things are implemented
> in the book which I have alread
When I click in the diskette for saving the file in the source code
editor, the file is not saved, and a js error message is sent to the
debugging feature in the browser:
"area is not defined"
The file that causes the error is ajax_editor.js, at line 33
Here is the highlighted code:
...
functio
Cool just bought it. I am interested to see how some things are implemented
in the book which I have already implemented in my project.
On Thu, Mar 15, 2012 at 1:14 AM, Johan wrote:
> Hi,
>
> The ebook is now available and can be downloaded.
>
> Johan
>
>
> On Monday, March 12, 2012 8:18:43 AM U
Anthony's answer is the right one, mine is for retrieving the
extension of the url requested
On 15 mar, 10:40, Anthony wrote:
> request.vars.image.filename.split('.')[-1]
>
> or
>
> import os
> os.path.splitext(request.vars.image.filename)[1][1:]
>
> Anthony
>
>
>
>
>
>
>
> On Thursday, March 15,
Oh, I went straight to base.css after reading the following in the the
review section of the book...
*Configuring the layout*
*You can configure the default layout by editing "views/layout.html" but
you can also configure it without editing the HTML. In fact, the
"static/base.css" stylesheet i
There is no longer a base.css -- it is now web2py.css.
Anthony
On Thursday, March 15, 2012 11:44:07 AM UTC-4, Edward Shave wrote:
>
> I feel I must be missing something obvious, but despite the references to
> base.css in the book and the comments in the file itself, I can't find
> where it is
I feel I must be missing something obvious, but despite the references to
base.css in the book and the comments in the file itself, I can't find
where it is referenced by the welcome app?
You wrote you know how to do it with mysql. DAL doesn't care what db you
use. Trigonometric functions are not supported by DAL anyway.
So I recommend you to apply your mysql solution using raw sql queries,
suggested already by Alan:
http://web2py.com/books/default/chapter/29/6#Raw-sql
Dears,
Am using Sortable Table plugin but a lot of time the 'search' and
'entries' fields are not displaying in the page and also the paging
not working (All records are displayed)
{{=plugin_datatable(rows,_class='datatable',_id='woId',truncate=100)}}
Any Advice??
Thanks in Advance
Neveen A
Did you do the insert in the shell also? If so, when you do inserts,
updates, deletes in the shell, you have to follow with db.commit() in order
to commit the transaction. This is not necessary in application code
because the framework does that automatically at the end of a request. I
have als
request.vars.image.filename.split('.')[-1]
or
import os
os.path.splitext(request.vars.image.filename)[1][1:]
Anthony
On Thursday, March 15, 2012 6:18:10 AM UTC-4, Sanjeet Kumar wrote:
>
> I have the upload field in table i want to check the file extension from
> the controller during the uploa
It is not possible on gae. You have to change your app to use urllib or
fetch
http://zerp.ly/rochacbruno
Em 15/03/2012 09:56, "Udi Milo" escreveu:
> I found the problem (which leads to a new problem).
> my module was using "import requests"
> requests is http://docs.python-requests.org/en/v0.10.
I found the problem (which leads to a new problem).
my module was using "import requests"
requests is http://docs.python-requests.org/en/v0.10.7/index.html that I
have installed on my machine.
I guess I need to tell web2py to install it when it deploys.
do you know how I do that? and if its not p
Its available now on packtpub
On Monday, March 12, 2012 8:27:44 PM UTC+10, bussiere adrien wrote:
>
> Does anyone know when the web2py cookbook will be available please ?
>
> Regards
> Bussiere
>
> "Les nouvelles technologies offrent pleins de nouvelles possibilités,
> pleins de possibilités d'err
I make some comments about this here:
https://github.com/mdipierro/gluino
If you like web2py I strongly recommend straight web2py. You lose lots of
features and you loose the promise of backward compatibility using other
frameworks. You would also be using something new and poorly tested. I can
Hello Voltron, we missed you.
Gluino needs testing. Moreover the API may still change a little. The main
issue is that every framework has different request, session and response
objects. Right now it only tries to normalize request via
wrapper.get_variables(request) and ignores session and re
>
> I'm trying to use a single controller for all my functions, including the
> "web/site" controller/function.
OK, but why? While it might be possible to achieve what you want to do this
way too, it is definitely not going to be easier.
ok thanks Allan
On Thu, Mar 15, 2012 at 5:13 PM, Alan Etkin wrote:
> If you want to render html output as .rtf (a similar type of document
> that will work in old ms-word versions) check the book at 10.3.2
> (PyRTF)
>
> On Mar 15, 8:15 am, Sanjeet Kumar wrote:
> > How can i render the html file
Of course. Please email me personally your contact info. Also, sign up at
experts4solutions.com
Massimo
On Wednesday, 14 March 2012 20:42:23 UTC-5, acidjunk wrote:
>
> Hi Web2py users,
>
> I would like to announce web2py support for the Netherlands by
> Formatics.nl .
> We did a couple of site
Thanks,
I added, issue 719.
Yes sorry I delete some old thread in my blog the last month. But yes I
worked integrating web2py dal in bottle some months ago, here
https://bitbucket.org/mulonemartin/bottle-web2pydal/overview now I think is
obsolete, go into gluino instead. Perhaps need a lot of test, some time
ago, I remember I
The decoder detection seems to focus on 2-4 byte encoding. Many times you
will get a text in iso-8859-1
or cp-1250 or other 1 byte encoding and none of this is covered there. I
might not make sense to extend the
decoder if it is not meant for 1 byte encoding. In that case adding the
alternative
If you want to render html output as .rtf (a similar type of document
that will work in old ms-word versions) check the book at 10.3.2
(PyRTF)
On Mar 15, 8:15 am, Sanjeet Kumar wrote:
> How can i render the html file in to the doc file
To access the extension in the request you can use request.extension:
"...
request.extension: the extension of the requested action. It defaults
to
"html". If the controller function returns a dictionary and does not
specify
a view, this is used to determine the extension of the view file that
will
Full circle, well almost. My largest application was built with
web2py( some years back). Hi Massimo, what is the status on Gluino?
Would you say its stable enough for production? Is the MongoDB/DAL
support coming along?
Thanks
Hi Web2py users,
I would like to announce web2py support for the Netherlands by Formatics.nl
.
We did a couple of sites with web2py and I personally think it's the best
invention since sliced bread ;-)
Can we be included on the web2py professional support page?
(I don't know if this is the correc
How can i render the html file in to the doc file
It looks to me that when you say "download" you mean "upload". If a user
sends a file to a server, she uploads it.
I recommend you to read about upload field in the book:
http://web2py.com/books/default/chapter/29/7#SQLFORM-and-uploads
just forwarding
-- Forwarded message --
From: Nikhil Marathe
Date: 2012/1/23
Subject: [nodejs] Offtopic: What is the most important thing that every
software developer should know?
To: nod...@googlegroups.com
Hi,
I would really appreciate it if you could take 2 minutes to f
So you are saying the problem is now solved? Can you share with us what was
the cause of this strange "missing pass in view" error?
I have the upload field in table i want to check the file extension from
the controller during the upload i am using :-
SQLFORM.factory(db.emp_detail)
if form.accepts(request.vars, session):
img = form.vars.image
if file.extension == 'something':
update query
did you do?
python web2py.py -M -S
mic
Il 15 marzo 2012 09:12, Stefan Scholl ha scritto:
> web2py 1.99.7 for Windows.
>
> Example app, inserted 1 person and 1 dog.
>
> In the shell:
>
> dogs = db().select(db.dog.ALL)
>
>
> Nothing there. And "dogs" isn't defined.
>
>
>
Il 14/03/2012 23:25, Alan Etkin ha scritto:
I bet if you declared the widget custom class in the model, you wouldn
have this request object issue. Is there any particular need to use a
module instead of normal model code?
I'll try to cut and paste the widget definition from the module to the
mod
Hi,
The ebook is now available and can be downloaded.
Johan
On Monday, March 12, 2012 8:18:43 AM UTC+1, Massimo Di Pierro wrote:
>
> The web2py recipes book is finally out:
>
>
> http://www.packtpub.com/web2py-application-development-recipes-to-master-python-web-framework-cookbook/book
>
> Congr
web2py 1.99.7 for Windows.
Example app, inserted 1 person and 1 dog.
In the shell:
dogs = db().select(db.dog.ALL)
Nothing there. And "dogs" isn't defined.
I believe that any time the database connection string is changed then the
hash in front of the .table file names changes in the databases directory.
I noticed this just trying to change the database password because I wanted
it different at another physical location of the application I work o
Thanks antonio, I have never heard of this. I will suggest this to my
kid's school
On Mar 13, 11:36 pm, Bruno Rocha wrote:
> I see no problem to install Python and web2py on this, You just need to
> boot from an SD card with python and web2py on it.
>
> 2012/3/13 António Ramos
>
> > it would b
79 matches
Mail list logo