It worked for me.
2011/12/19 Martin Weissenboeck mweis...@gmail.com
I am trying.
Regards, Martin
Dear Kenji,
Apologies for the late reply. I was away for a few days.
Do you use virtual fields for computing the article_eq and ltitle?
No.
Here is my model:
akb_signature_uuid = db.Table(db, 'akb_signature_uuid',
Field('uuid', length = 64, default =
Hi, I like very much the new layout of the 1.99.4 version. But in
forms, the selects are narrower than inputs. I think there would be
equal.
My app is getting errors when routing custom profile URLs with non-
english characters. Here's a sample URL:
2011-12-18 23:07:14.292 /profile/carlos_alvarez%20el
%C3%B3segui_9w5Z1HdEW 500 53ms 0kb Mozilla/5.0 (compatible; Googlebot/
2.1; +http://www.google.com/bot.html)
173.245.56.25 - -
Hi All,
I was just wondering if I can use the row.id or any information
with sqlform.grid -
Below is the link I have defined to show a button called Send Request.
I have re-directed it to use a custom function regstatus that passes
a row.id argument.
---code---
links = [lambda row:
Hi,
This code works fine on Firefox (on refresh, on changing url in address bar
AND on closing browser)
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleTest LogOut/title
script type=text/javascript
function OutPopup(){
Worked AMEX :)
Quick question... how can download it if I lost my link after the payment?
Regards,
Tito
On Mon, Dec 19, 2011 at 6:00 AM, Martin Weissenboeck mweis...@gmail.comwrote:
It worked for me.
2011/12/19 Martin Weissenboeck mweis...@gmail.com
I am trying.
Regards, Martin
Hi All,
Also, to add to above questions - How can we hide the query
button on the search area in sqlform.grid. And if its possible to hide
clear button as well!!
Thanks, Rahul D (www.flockbird.com - web2py powered)
-
On Dec 19, 3:06 pm, Rahul
Is the pdf the same as the printed Lulu version?
Interested with the epub version for my ereader though, thank you Massimo
Thanks for your details.
I found a bug in the plugin, which occurs when using fields with hide
properties such as readonly. Then I fixed the bug. Could you test the
new version of the plugin?: http://dev.s-cubism.com/plugin_solidform
Regards,
Kenji
On 12月19日, 午後5:51, Johann Spies
I think this would be a great addition.
The major pro is that you can redirect the information about new tickets to
a place where
you already have other logging. For instance, we run web2py in apache2 via
wsgi, and we
already have several apache mods for other things. The sysadmins already
On 19 December 2011 13:41, Rahul rahul.dhak...@gmail.com wrote:
Also, to add to above questions - How can we hide the query
button on the search area in sqlform.grid. And if its possible to hide
clear button as well!!
Use the argument 'searchable=False' in your grid definition. See
Me too. Can you send a web2py.css patch?
On Dec 19, 3:12 am, puercoespin jzaragoza.puercoes...@gmail.com
wrote:
Hi, I like very much the new layout of the 1.99.4 version. But in
forms, the selects are narrower than inputs. I think there would be
equal.
this is fixed in trunk.
On Dec 19, 3:15 am, Arbie Samong phek...@gmail.com wrote:
My app is getting errors when routing custom profile URLs with non-
english characters. Here's a sample URL:
2011-12-18 23:07:14.292 /profile/carlos_alvarez%20el
%C3%B3segui_9w5Z1HdEW 500 53ms 0kb Mozilla/5.0
On 19 December 2011 12:06, Rahul rahul.dhak...@gmail.com wrote:
Hi All,
I was just wondering if I can use the row.id or any information
with sqlform.grid -
Below is the link I have defined to show a button called Send Request.
I have re-directed it to use a custom function regstatus
I emailed it to you.
On Dec 19, 5:04 am, Tito Garrido titogarr...@gmail.com wrote:
Worked AMEX :)
Quick question... how can download it if I lost my link after the payment?
Regards,
Tito
On Mon, Dec 19, 2011 at 6:00 AM, Martin Weissenboeck
mweis...@gmail.comwrote:
It worked for me.
fascinating... will fix it.
On Dec 19, 5:15 am, Khalil KHAMLICHI khamlichi.kha...@gmail.com
wrote:
javascript title :)
w2p_pagetitle.png
113KViewDownload
it is the same. Will try make an epub version.
On Dec 19, 6:43 am, carlo syseng...@gmail.com wrote:
Is the pdf the same as the printed Lulu version?
Interested with the epub version for my ereader though, thank you Massimo
Change the definition of selectfields (~line 1322 of sqlhtml.py) to
selectfields = {T('Choose a field.'):''}
As it is now, the first line of the select field dropdown is blank,
which does not help the user figure out what to do.
The proposed change helps the user figure out what to
Thanks. I will try it out and let you know.
Regards
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you. (Psalm 63:3)
I have the pdf from Lulu for the 3rd edition,
can i get a free pdf for the 4th edition?
Thank you
2011/12/19 Massimo Di Pierro massimo.dipie...@gmail.com
it is the same. Will try make an epub version.
On Dec 19, 6:43 am, carlo syseng...@gmail.com wrote:
Is the pdf the same as the printed
Hello
I am in process of deploying my web2py app. I need to do remove app name
from the urls. So that server.com/controller/function should mean
server.com/appname/controller/function .
Any clues so how I can edit my routes.py file to achieve the above?
Regards
Abhishek
Surely the grid is just a grid and does not have a submit button?
Do you mean that you have a grid linked to a form and you want to
refresh it when the form is submitted?
On Dec 18, 9:10 pm, Martin Weissenboeck mweis...@gmail.com wrote:
Hi,
I have one form created with SQLFORM and another form
Martin,
There has been discussion about manipulating grid. Search for threads
containing form.create()
Also perhaps Anthony will chime in. He knows this stuff pretty well.
apple,
Surely the grid is just a grid and does not have a submit button?
SQLFORM.grid is much more than that.
Please...I have some dificult in do this in web2py...as follow
db.define_table(cidadao
,Field('CD_CIDADAO',type='id',label='Cidadão(PK)')
,Field('CD_MATRICULA',type='integer',notnull=True,label='Matrícula')
,Field('NM_CIDADAO',type='string',notnull=True,label='Nome')
,format =
Please...I have some dificult in do this in web2py...as follow
db.define_table(cidadao
,Field('CD_CIDADAO',type='id',
label='Cidadão(PK)')
,Field('CD_MATRICULA',type='integer',notnull=True,label='Matrícula')
,Field('NM_CIDADAO',type='string',notnull=True,label='Nome')
,format =
I have a different style but is something like this:
After this
https://github.com/dhgamache/Skeleton/blob/master/stylesheets/base.css#L327
add:
form select, form input[type=file] {
height: 30px;
}
Also think, you have to make a fix for multiple select:
select[multiple=multiple] { height:
Hi Anthony,
I'm using this python module which claims to mimic the encyption used
in phpBB:
https://github.com/exavolt/python-phpass
It seems to be working fine so far.
Here are some examples:
In [11]: import phpass
In [12]: from phpass import PasswordHash
In [13]: p = PasswordHash()
In
Hello,
I try to use compute to generate a record md5_hash on insert and
update, but I discover that compute=lambda r: don't return all the
db.table fields why?
Thanks
Richard
routers = dict( BASE = dict(default_application='myapp'),)
On Dec 19, 10:47 pm, Abhishek Gupta abhishekgupta.i...@gmail.com
wrote:
Hello
I am in process of deploying my web2py app. I need to do remove app name
from the urls. So that server.com/controller/function should mean
I just want to express my feeling. We use DB2 for our business
critical system and people in Japan asked me to input all the value
with upper case because they have some printing issue if there is any
small letters..
Oh my god, the validator is there ! and the best part is that it
doesn't show
http://ajenti.org .. looks interesting. However, would be much more
elegant and simpler to extend if built with web2py :D ..
another interesting python library/framework for remote sysadmin/
remote execution manager which i just came across is http://saltstack.org/
Looks very useful and more
I have difficulty to understand your models because they are not in english
(sorry about that)... I will try to help anyway...
By the way you should put , at the end of your lines like this :
Field('CD_CIDADAO',type='**string',notnull=True,label='**Matrícula')*,*
instead of :
I set the auth.settings.expiration time but the user is not automatically
logged out after the specified time
I have tried setting
auth.settings.expiration = 1
in db.py after before calling
auth.define_tables()
To me it makes no sens that readable and/or writable = False prevent
compute to get all the field present in the table definition...
I may completely not understand what writable and readable are for...
I know that depend of how they are used (both false) the field will not be
present at all
i think there is somthing wrong with the way i installed mod_wsgi ,,
can you please tell me how to install it ??
when will we have haml and sass inside web2py?
Thank you
OK
but i need to call from gtils_representante table the nm_cidadao from
cidadao tablethis is my doubt
gtils_representante is a n:n relationship between GTIL(not posted) and
representante.
I believe I have not explained it right the first time...
What about that :
db.tab2(db.tab1(id).id).field
??
Richard
On Mon, Dec 19, 2011 at 11:42 AM, Jose Carlos Junior josec...@gmail.comwrote:
OK
but i need to call from gtils_representante table the nm_cidadao from
cidadao tablethis is my doubt
gtils_representante is a n:n
Maybe this helps
http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_wsgi/
First sentence of the last paragraph in the preface. 'raked' should be
'ranked'.
-Jim
Hi folks,
I used web2py for years but never have a need to use wysiwyg html
editor in my projects. Until recently. Then I surprisingly find no
mainstream editor mentioned in web2py world. Of course I can go with
any editor I will run into, but before that I just want to hear some
suggestion from
I was importing a module from the modules folder, and then ended up
deleting it. I've since cleaned the application, but noticed that,
while the import statement and module-referencing code was still in my
controller, no error was getting thrown. (If I copied the web2py
folder and fired up a new
is it possible to load json data in javascript from a https url?
thank you
António
When doing this the assignee, summary and dependencies columns are
trunc [shortened]. How can I prevent this to happen?
This is the code:
db.buglist.insert(bug_id=bugid,dependencies=deps,sev=severity,
prio=priority, assignee=assigned_to, status=bug_status,
summary=short_desc)
It takes a maxtextlength argument -- just set it to a large number. In that
case, you might want to change the td CSS so there's a max-width (and maybe
a min-width) with white-space set to normal (instead of nowrap, which could
lead to very wide columns)/
Anthony
On Monday, December 19, 2011
It shouldn't be too difficult to use any JS editor with web2py, but here
are some web2py specific plugins:
https://bitbucket.org/PhreeStyle/web2py_ckeditor/src
http://dev.s-cubism.com/plugin_elrte_widget
http://dev.s-cubism.com/plugin_managed_html/page1/_managed_html_preview
Anthony
On Monday,
What do you mean it doesn't return all the fields?
On Monday, December 19, 2011 10:47:42 AM UTC-5, Richard wrote:
Hello,
I try to use compute to generate a record md5_hash on insert and
update, but I discover that compute=lambda r: don't return all the
db.table fields why?
Thanks
I suppose the salt may be attached to the hashed password, so you may have
to pull off the salt, use it to hash the password, then add it to the hash.
The .check_password() method probably does that automatically. Maybe you
can just use that method directly.
Anthony
On Monday, December 19,
I don't get all my db.table fields form define_table fields defined...
A other guy report that... But didn't find exactly why his compute
functions as stop working properly...
To me it's related to the fact tha if I do :
Field('mycomputefield', compute=lambda r: r)
I am not getting all the
Carlos,
If you really not getting it... Here what I am doing to work around the
kind of problem you seem to have...
I would make a view at backend level with id and reprensent I want for this
particular id, then I write db model for the view like if it was a web2py
table and then use this table
On Monday, December 19, 2011 2:03:36 AM UTC-5, thstart wrote:
Thank you - for login it works but for register it does not.
In the case of register the validator executes after register and register
is telling the email is invalid.
Can you show your code?
When I change a table definition in db.define_table, either by
dropping a field or changing a field type, the change never seems to
take effect in SQL. Old columns and old field types are always
retained, even though web2py seems to 'think' they've changed.
I'm using SQLite, and run into this
See http://web2py.com/books/default/chapter/29/6#Fixing-broken-migrations
for specific issues with SQLite.
Anthony
no one else has encountered same problem?
correct.
Because SQLite does not support ALTER TABLE DROP therefore it cannot
drop a column from an existing table not even to replace it. It works
with the other databases. There is special logic in dal.py to skip
this type of migrations in sqlite.
Massimo
On Dec 19, 2:03 pm, Yarin
This is strange -- when you submit the form but fail to include the rating,
for some reason, the 'parent' attribute of the SELECT element is set to
None rather than referring to it's parent TD. Can you submit a ticket about
that (you can link to this
thread):
ticket http://code.google.com/p/web2py/issues/detail?id=574 submitted
Here's what I've got:
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
on win
32
Type help, copyright, credits or license for more information.
import win32con
win32con
module 'win32con' from
'C:\Python26\lib\site-packages\win32\lib\win32con.pyc'
The mystery gets
(The first one is from Python started independently, the second from
Eclipse and the running instance of my app.)
Hi,
Just wondering if it's correct that DecimalWidget _class = double (instead
of decimal)?.
Thanks,
Carlos
I was wondering the same thing. Massimo?
For now, I'm not sure it matters, as I think the only effect of the widget
is to apply client-side input validation (which is the same for double and
decimal fields). Perhaps there could be a future need to differentiate the
two, in which case, maybe we
commas at the beginning of a line is not a common practice, but not
necessarily a bad one. I use it myself, having been bitten by too many
missing commas too often. ;)
On Tuesday, December 20, 2011, Richard Vézina wrote:
I have difficulty to understand your models because they are not in
Installing mod_wsgi on Fedora would be simply (in shell, executed as root):
yum install mod_wsgi
Curious. I've surprisingly not heard of haml. What would you say are the
benefits over web2py's built-in HTML helpers?
SASS could be quite helpful for us front-end guys, and I notice there are a
couple of python modules out there.
My opinion is that I don't know if it would need to be included
OK I understand the SQLite issue, but not the options I have.
1) SQLite does support renaming tables. I renamed the table in
question in SQLiteManager, hoping that web2py would then create a new
table under the old name. But now web2py simply complains that the old
question doesn't exist. Why
OK I understand the SQLite issue, but not the options I have.
1) SQLite does support renaming tables. I renamed the table
in question in SQLiteManager, hoping that web2py would then create a
new table under the old name. But now web2py simply complains that the
old table doesn't exist. Why
Good idea...
I gonna try thisas soon as possible
Thanks alot...
On 19 dez, 17:44, Richard Vézina ml.richard.vez...@gmail.com wrote:
Carlos,
If you really not getting it... Here what I am doing to work around the
kind of problem you seem to have...
I would make a view at backend
http://www.youtube.com/watch?v=5ZLmRMLo6HI
We are thinking about moving our site from pyramid to Web2py. Are there
still security holes in Web2py as found in the video?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
Did you read the comments below the video? The comments make it clear that
the video is not demonstrating a web2py vulnerability. The creator of the
video simply used web2py to create a deliberately vulnerable application.
He explicitly avoided using web2py's built-in authentication mechanism,
I've used HamlPy before: https://github.com/jessemiller/HamlPy. It
works really well for those familiar with Python syntax. All you have
to do is listen on a directory, or set up an Eclipse job that
executes a script every time you save a file.
If anyone is interested, I could dig back and find
Honestly I didn't read the comments, I just seen that video shortly before
heading home.
I have been using web2py for a while, just had to make sure you never know
right?
Anyway's thanks for clearing things up.
--
Regards,
Bruce
On Mon, Dec 19, 2011 at 5:46 PM, Anthony abasta...@gmail.com
I am on 1.99.4 stable
I tried include some files with response.files.append()
1. outside of layout.html and
2. after {{include 'web2py_ajax.html'}} in layout.html,
but they didn't seem to appear in the html, for example:
{{response.files.append(URL('static','js/jquery.example.js'))}}
Is this
Adding to response.files should happen before web2py_ajax.html is included
(e.g., in the head of layout.html, or even in the controller or a model
file). The reason is that the code that actually includes the files listed
in response.files is in web2py_ajax.html.
Anthony
On Monday, December
Hi, in the lastest version of web2py (can't remember if this is the
case for older versions), there are two files that are nearly
identical in the default applications (admin, examples, welcome) js
folder: 'web2py.js' and 'web2py_ajax.js'.
It looks like 'web2py.js' is the newer of the two, should
We just renamed web2py_ajax.js to web2py.js (since it includes some JS code
not related to Ajax). The old file is no longer included, but if you just
unzipped the new folders over the old, it wouldn't remove the old file. You
can delete it. Note, we didn't change the name of web2py_ajax.html in
Thanks for the clarification, Anthony.
On Dec 20, 12:17 pm, Anthony abasta...@gmail.com wrote:
Adding to response.files should happen before web2py_ajax.html is included
(e.g., in the head of layout.html, or even in the controller or a model
file). The reason is that the code that actually
was a bug. fixed in trunk.
On Dec 19, 4:01 pm, Anthony abasta...@gmail.com wrote:
I was wondering the same thing. Massimo?
For now, I'm not sure it matters, as I think the only effect of the widget
is to apply client-side input validation (which is the same for double and
decimal fields).
Indeed 2 does not help.
If you delete or rename a sqlite table and if you are not doing it
using web2py (db.table.drop()) then you should tell web2py the table
no loger exists. You do this by deleting the databases/
*_tablename.table files
On Dec 19, 4:50 pm, Yarin ykess...@gmail.com wrote:
OK
Hi Johnann,
Thanks for getting back on my queries. I just want to remove
the query button from the search section ( I had tried
searchable=False earlier and it hid the entire search section). Is
there a way to hide just the query button as for a public site, I
would not like everyone know
what are the good options(web hosts) for hosting the production sites? I'm
located in India.
Gotcha. Thanks! b
On Dec 20, 4:24 am, Anthony abasta...@gmail.com wrote:
We just renamed web2py_ajax.js to web2py.js (since it includes some JS code
not related to Ajax). The old file is no longer included, but if you just
unzipped the new folders over the old, it wouldn't remove the old file.
seems to be a problem with the link parser:
transparently for
SQLite[sqlitehttp://web2py.com/books/default/reference/29/sqlite
], MySQL[mysql http://web2py.com/books/default/reference/29/mysql]
83 matches
Mail list logo