On Tuesday, March 27, 2012 5:35:57 PM UTC+7, spyker wrote:
On 26 March 2012 20:22, adesst adesantoasman@... wrote:
@Johann, i don't know if you would copy paste the diff i've made into
PgAdapter,
and do some tests and post the results. Pg and Oracle schema works in
the same way.
I have
Thank you so much! That worked like a charm :). I'm guessing this type of
construct is valid for other validators as well?
On Tuesday, March 27, 2012 5:57:28 PM UTC-7, Anthony wrote:
Try
IS_EMPTY_OR(IS_IMAGE())
Anthony
On Tuesday, March 27, 2012 7:12:45 PM UTC-4, Peter G. wrote:
Hmm.. I had this idea a long time ago. Never got around to implementing it,
though. Here's an email that was sitting in my drafts box for over a year.
It's got some additional suggestions, too:
The T object and simple internationalization is one of the reasons I chose
the Web2Py framework.
On your javascript code you can do.
location = url
http://zerp.ly/rochacbruno
Em 28/03/2012 01:01, weheh richard_gor...@verizon.net escreveu:
I'm trying to figure out how the proper syntax to redirect from an ajax
call using HTTP(200,Location=URL(...)).
The problem is the ajax call points
Hi,
Lately, I've been using pythonanywhere to work on my pet project together
with Dropbox. It's very fun, as it allows me to test all kinds of access
(mobile, desktop), various environments (work, home), os's etc.
Obviously I'm unable to access the admin as I'm not at a local machine and
I
On Wednesday, March 28, 2012 5:34:05 AM UTC-4, Peter G. wrote:
Thank you so much! That worked like a charm :). I'm guessing this type of
construct is valid for other validators as well?
Yes, it's documented here:
http://web2py.com/books/default/chapter/29/7#Validators
I tried your code, and it works fine for me. However, the password
Testpwd should actually result in an error because the IS_STRONG()
validator defaults to number=1 (i.e., at least one number in the password),
and you didn't change that default. So, you should get an error on the
password
On question posts, if you're using the web interface, you can now vote
responses to the question up or down (the best response will be displayed
on top). You'll see a green up arrow and red down arrow at the bottom of
each response (except for your own).
On Tuesday, March 27, 2012 4:50:49 PM
I don't understand why HTTP(200,Location=URL(...)) isn't redirecting to
URL(...)?
On Wednesday, March 28, 2012 12:01:05 PM UTC+8, weheh wrote:
I'm trying to figure out how the proper syntax to redirect from an ajax
call using HTTP(200,Location=URL(...)).
The problem is the ajax call
I've switched over to web2py.js from web2py_ajax.js but the problem of
multiple popups is still there.
On Thursday, March 22, 2012 9:39:46 PM UTC+8, Anthony wrote:
No, I'm only using the web2py_trap_form out of the cookbook. The rest
of the web2py_ajax.js file is the same.
If the name
On Mar 28, 2012, at 6:18 AM, weheh wrote:
I don't understand why HTTP(200,Location=URL(...)) isn't redirecting to
URL(...)?
Shouldn't you be using a 30x response here?
On Wednesday, March 28, 2012 12:01:05 PM UTC+8, weheh wrote:
I'm trying to figure out how the proper syntax to redirect
We did not add that line to skeleton but looks like a mistake in skeleton.
Anyway, we'll soon move away from skeleton to bootstrap 2.
On Tuesday, 27 March 2012 16:20:16 UTC-5, jep wrote:
With web2py 1.99.7 i try to display preformatted code between pre
/pre but the result does not
I don't understand why HTTP(200,Location=URL(...)) isn't redirecting to
URL(...)?
You need to issue a 303 to get the browser to redirect to the URL in the
Location header. But if it is an ajax request, that will only redirect
the ajax request itself -- it won't reload the whole page. If
Please open a ticket.
On Tuesday, 27 March 2012 16:04:47 UTC-5, Richard wrote:
Same thing with trunk...
Richard
On Tue, Mar 27, 2012 at 3:52 PM, Richard ml.richard.vez...@gmail.comwrote:
This one to :
https://groups.google.com/forum/?fromgroups#!topic/web2py/H_QqV2g8IgQ
I experimented
Well, the admin web interface has to parse it somehow to render it in the
browser, there must be a function in appadmin or in the admin app for that
purpose.
El miércoles 28 de marzo de 2012 08:33:11 UTC-3, tsvim escribió:
Hi,
Lately, I've been using pythonanywhere to work on my pet project
On Wednesday, March 28, 2012 9:28:03 AM UTC-4, weheh wrote:
I've switched over to web2py.js from web2py_ajax.js but the problem of
multiple popups is still there.
Can you pack up and attach a minimal app that reproduces the problem?
Anthony
My view code is fairly minimal, but I suspect it is where the bug lies:
{{extend 'layout.html'}}
form
Email address: input type=text name=email /br /
Password: input type=password name=pwd /br /
Confirm password: input type=password name=re_pwd /br /
input type=submit /
/form
Do
Many thanks, Jonathan, Anthony. I didn't realize the HTTP return value (200
vs. 300 etc.) might actually make a difference in the execution of the
Location argument. Again, I must go back and look even more closely at the
HTTP source and auth source. It's always a balance between slogging
Oh, and credit also to Bruno for actually being the first to swing and
connect with the location answer. I have some more tinkering to do before
I'm fully out of the woods on this issue.
On Wednesday, March 28, 2012 9:56:02 PM UTC+8, weheh wrote:
Many thanks, Jonathan, Anthony. I didn't
On Wednesday, March 28, 2012 9:48:47 AM UTC-4, Massimo Di Pierro wrote:
We actually have that already. The way to do is:
T(' hello world ## comment')
Another secret feature. Find them all, and you get a prize. :-)
Come say the good things you have to say about web2py on
http://news.ycombinator.com/item?id=3765610
Many thanks, Jonathan, Anthony. I didn't realize the HTTP return value
(200 vs. 300 etc.) might actually make a difference in the execution of the
Location argument. Again, I must go back and look even more closely at the
HTTP source and auth source.
Note, this is not an issue with how
yes quite hostile:
the smartest web hackers I know universally regard web2py as a
fundamentally incorrect way to approach web development—but usually say so
in far more colorful terms.
web2py appears both bad and unpopular to me
My view code is fairly minimal, but I suspect it is where the bug lies:
{{extend 'layout.html'}}
form
Email address: input type=text name=email /br /
Password: input type=password name=pwd /br /
Confirm password: input type=password name=re_pwd /br /
input type=submit /
[off-topic]
A note about JavaScript, something that I learned on JS workshop last week.
in JS window is the same as globals() in python, so we do not need to use
that explicitly, int the same way we do in Python.
Ex:
Python.
*globals()[__name__]* is the same of simply *__name__*
JavaScript
On Mar 28, 2012, at 6:56 AM, weheh wrote:
Many thanks, Jonathan, Anthony. I didn't realize the HTTP return value (200
vs. 300 etc.) might actually make a difference in the execution of the
Location argument. Again, I must go back and look even more closely at the
HTTP source and auth
OK, this issue is now put to bed. Thank you all for your help.
P.S. -- what this issue has taught me touches on what pbreit said in
another thread about the hazards of bypassing wonderful web2py built-in
auth login/logout facilities when you choose the route of auth by dialog.
My approach, has
We actually have that already. The way to do is:
T(' hello world ## comment')
This was introduced for a different purpose, allow the same string to have
two different translations in different places. The comment causes the
string to be treated as different in different places.
Check if this
P.P.S. As I was saying about compressing the site down to one page ... the
real reason why I was having to do this contortion with redirect is because
I HAVEN'T compressed the site down to one page. It's actually more like 2
or 3 pages. When I have a little more time, I will compress it down to
I'll have to think hard about how to extract my example whilst isolating
the bug. I'll need some time ...
On Wednesday, March 28, 2012 9:42:54 PM UTC+8, Anthony wrote:
On Wednesday, March 28, 2012 9:28:03 AM UTC-4, weheh wrote:
I've switched over to web2py.js from web2py_ajax.js but the
Hi All,
After checking the apache documentation and looking at older related
discussions in the group, I still don't get what's wrong on my setup. What
I want to achieve is:
cub3.net - Load my home page
www.cub3.net - Load my home page
web2py.cub3.net - Load web2py
Using Apache with mod_wsgi.
Done!
Issue 738 http://code.google.com/p/web2py/issues/detail?id=738:unable to
parse csv file 'NoneType' object is unsubscriptable with list:reference
type field
Thanks
Richard
On Wed, Mar 28, 2012 at 9:34 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Please open a ticket.
On
On Wednesday, March 28, 2012 10:13:52 AM UTC-4, Richard Penman wrote:
the smartest web hackers I know universally regard web2py as a
fundamentally incorrect way to approach web development—but usually say so
in far more colorful terms.
I just went and re-read the original threads (from
Hi,
On 28/03/2012 15:08, nick name wrote:
Come say the good things you have to say about web2py on
http://news.ycombinator.com/item?id=3765610
Late catching up here because I've been following that!
Had to call the Django guy out on his (completely unsupported) statement
that web2py is a
The web ticket output is managed by this code:
web2py/applications/admin/controllers/default.py (see function ticket and
ticketdb and errors)
web2py/applications/admin/views/default/view name (see function ticket
and ticketdb and errors)
Errors is the error panel to show and classify the
I'll have a look at it maybe tomorrow on my train commute or else during
the coming week.
Thanks,
Tsvi Mostovicz
ttm...@gmail.com
www.linkedin.com/in/tsvim
On Wed, Mar 28, 2012 at 17:09, Alan Etkin spame...@gmail.com wrote:
The web ticket output is managed by this code:
If you want to build a single-page app, you might also consider options
like AngularJS http://angularjs.org (supported by Google) and
batman.jshttp://batmanjs.org(by Shopify). They move templating to the client,
so your server just
delivers the initial page (i.e., the whole app, including JS
Hi Cliff,
could you post more details on your interface to LibreOffice?
Last time I looked at this it did not work properly (UNO bridge with
OpenOffice) but from your initial post it sounds like a viable alternative
now.
Thanks,
Denes
On Tuesday, March 27, 2012 7:47:15 AM UTC-4, Cliff wrote:
There are two cases where I would like to provide some eye candy in the
form of a spinning wait icon whilst web2py does some heavy processing. In
one case, I would like to do this while a form is being processed. For
instance, if someone wants to fill out a contact form, which sends an
email,
Thanks, Anthony. I really appreciate your thorough responses. You don't
just say how to do something, you explain why it works the way it works.
That kind of response is rare and invaluable. It keeps me from asking the
same question different ways because I end up understanding how the system
I had to look this up in the source myself. I remembered it was there but I
did not remember the syntax. There is a reason web2py uses its own
internationalization and not the python one.
On Wednesday, 28 March 2012 09:05:58 UTC-5, Anthony wrote:
On Wednesday, March 28, 2012 9:48:47 AM UTC-4,
I took a look at Angular's page. Looks interesting and might be more
concise, BUT I can do it all in web2py already. It's mostly a matter of
sight design -- we all use some jQuery these days, anyway. Retrofitting an
existing set of pages to reduce them to a 1-pager is exponentially harder
than
On Mar 28, 2012, at 8:15 AM, Anthony wrote:
If you want to build a single-page app, you might also consider options like
AngularJS (supported by Google) and batman.js (by Shopify). They move
templating to the client, so your server just delivers the initial page
(i.e., the whole app,
On Mar 28, 2012, at 9:16 AM, Jonathan Lundell wrote:
On Mar 28, 2012, at 8:15 AM, Anthony wrote:
If you want to build a single-page app, you might also consider options like
AngularJS (supported by Google) and batman.js (by Shopify). They move
templating to the client, so your server just
Most of what I know comes from this:
http://lucasmanual.com/mywiki/OpenOffice
Other points
1. You can start LibreOffice from a script, but you can't connect to it in
that same script. That one cost me half a day.
2. LibreOffice is gonna crash. You'll need a cron job to check if
LibreOffice
On Wednesday, March 28, 2012 12:07:35 PM UTC-4, weheh wrote:
I took a look at Angular's page. Looks interesting and might be more
concise, BUT I can do it all in web2py already.
Not sure what you mean by do it all, but certainly web2py alone cannot do
all of what Angular does (even with
Doesn't db._lastsql return a string? Can't you just save that in the
session?
Or is that a naive question?
On Monday, March 26, 2012 10:09:49 PM UTC-4, Limedrop wrote:
Just in case any of you want to do this...I've written a routine that
enables you to save a Query/Expression object in the
:-D
On Wednesday, March 28, 2012 11:27:03 AM UTC-4, weheh wrote:
Thanks, Anthony. I really appreciate your thorough responses. You don't
just say how to do something, you explain why it works the way it works.
That kind of response is rare and invaluable. It keeps me from asking the
same
I use jQuery BlockUI (http://malsup.com/jquery/block/#overview) for this
kind of thing. You can block the whole page or just a single page element,
and you can even set it up so the blocking happens at the start of any Ajax
request and stops when the Ajax request is complete.
Anthony
On
Oh yeah, I almost forgot.
I've seen a lot of posts about how headless LibreOffice needs X server
running. I'm just setting up an Ubuntu server now for test purposes. I'll
report back here.
On Wednesday, March 28, 2012 12:53:07 PM UTC-4, Cliff wrote:
Most of what I know comes from this:
I'm looking for VPS service for our company to running web2py apps.
Requirements
---
OS: Windows2008
Database: MS SQL 2008
RAM: 2GB or higher
Domain: we will get from domain.com
---
I'm pretty
First you need to change your model. In relation database you would have:
db.define_table(articles, db.Field(title), ...)
db.define_table(comments, db.Field(article_id, db.articles),
db.Field(author), ...)
But with datastore you want to do the reverse, keep the comment ids in the
article table:
for windows -- http://www.rackspace.com
On Wed, Mar 28, 2012 at 4:32 PM, Omi Chiba ochib...@gmail.com wrote:
I'm looking for VPS service for our company to running web2py apps.
Requirements
---
OS: Windows2008
Database: MS SQL 2008
RAM:
Yes, The link in my outlook rss message has the same URL.
When you click the link
(http://127.0.0.1:8000/tamoto_dev/default/show.rss/1) , the page retured
just says: {errors: {body: enter a value}}
What is the solution?
Thank you,
Bill
On Saturday, October 2, 2010 1:36:15 PM UTC-5, Luther
Dear All,
I recently used a SQLFORM.grid in my app and I wanted
#1 the possibility to have checkboxes to select multiple row to delete
#2 customize the text of the submit button
#3 have a select all checkbox in the table header.
#1 was easy to solve with the help of this mailing list.
(see
Try changing your field1 type to 'id'.
like this:
Field('Field1', 'id'),
On Tuesday, March 27, 2012 10:56:44 PM UTC-7, Andrew wrote:
Hello,
I posted on this issue some time ago and I'm pretty sure it was working
again after a fix from DenesL.
However I can't get Primary Key tables in MSSQL
Burno,
Thanks ! I just finished chatting with rackspace.com guy and he seems
helpful guy. Are you running web2py in here for your customers on windows
environment ?
I'm thinking to appy the following and it's around $160 per month. It's
pretty good deal.
Cloud Server
Sometimes that will be sufficient. The issue is how you turn _lastsql into
a gluon.dal object that you can further manipulate.
For example, what if you want to do this:
_lastsql (db.person.name == 'John')
See the slice if you need to know how to do it.
On Thursday, March 29, 2012
That sounds what I need
but:
ubuntu@ip:/home/www-data/web2py$ python scripts/cpdb.py -h
Traceback (most recent call last):
File scripts/cpdb.py, line 5, in module
import argparse
ImportError: No module named argparse
then I read somewhere this:
1down vote
The argparse module was
seems to work, but I still couldn't make it work on my project (worked well
on smaller projects though)
2012/3/27 Anthony abasta...@gmail.com
http://web2py.com/books/default/chapter/29/6#CSV-(all-tables-at-once)
On Tuesday, March 27, 2012 11:26:17 AM UTC-4, Marco Tulio wrote:
Hi!
I was
and that's it...
2.6, 2.7, 3.2, PyPy ... wich one to use (for production on ubuntu linux)?
--
[]'s
Marco Tulio
On Mar 28, 2012, at 3:53 PM, Marco Tulio Cicero de M. Porto wrote:
2.6, 2.7, 3.2, PyPy ... wich one to use (for production on ubuntu linux)?
Latest 2.7.
Let me know if you have a proposal to imporve the dal to make this easier.
On Wednesday, 28 March 2012 17:29:49 UTC-5, Limedrop wrote:
Sometimes that will be sufficient. The issue is how you turn _lastsql
into a gluon.dal object that you can further manipulate.
For example, what if you
true. cpdb was rewrtten and requires 2.7. I think it is the only
module/script that requires 2.7.
On Wednesday, 28 March 2012 17:43:48 UTC-5, Marco Tulio wrote:
That sounds what I need
but:
ubuntu@ip:/home/www-data/web2py$ python scripts/cpdb.py -h
Traceback (most recent call last):
Thankyou Derek,
I will give it a try , but this was only a simple, cut down, test case to
get it to work initially. I originally had a string for the PK, and I
also wanted to test multi column PKs.
I am confident the 'id' will work, but it doesn't address the other
scenarios. My real goal
Hi ,
I've been wondering about the use of return locals() in the Forms chapter
of the book, particularly with grids
def manage_users():
grid = SQLFORM.grid(db.auth_user)
return locals()
Elsewhere in the book use see something like this for forms return dict(form
=form)
Would return
I can try to show in form of input and output a dbset, but i want to modify
prices, because it depends of store
In model
if store.store_id7:
armazones = db((db.eyewear.observaciones==
'')(db.eyewear.modelo!='SOLAR'))
elif store.store_id6:
armazones = db((db.eyewear.observaciones!='2DA
locals() returns a dictionary including all the variables in the local
function, so it is exactly equivalent to dict(grid=grid) in this case.
See http://docs.python.org/library/functions.html#locals. In general,
though, you should probably explicitly return just the variables you need
to pass
I've got the same issue (running 1.99.7). Has anyone solved this?
On Sunday, February 26, 2012 6:12:41 PM UTC+13, Detectedstealth wrote:
Hi Massimo,
Your suggestion doesn't seem to be working:
LI(
H5(self.T('What is your Age?')),
INPUT(
You may be thinking of 'powertable'. This plugin presents a grid that
includes a typeahead search
function. It can be found at https://bitbucket.org/rochacbruno/powertable.
- Tom
On Monday, March 26, 2012 2:24:42 PM UTC-6, greenpoise wrote:
What I was looking for was a type-ahead function
I think there is a bug and I think I just fixed it in trunk. Please check
it.
On Wednesday, 28 March 2012 20:38:08 UTC-5, Limedrop wrote:
I've got the same issue (running 1.99.7). Has anyone solved this?
On Sunday, February 26, 2012 6:12:41 PM UTC+13, Detectedstealth wrote:
Hi Massimo,
The solution I made was setting a default value for all my radio groups.
On Wed, Mar 28, 2012 at 7:01 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
I think there is a bug and I think I just fixed it in trunk. Please check
it.
On Wednesday, 28 March 2012 20:38:08 UTC-5, Limedrop
Yes, tested and it now works! Thanks Massimo.
On Thursday, March 29, 2012 3:01:41 PM UTC+13, Massimo Di Pierro wrote:
I think there is a bug and I think I just fixed it in trunk. Please check
it.
On Wednesday, 28 March 2012 20:38:08 UTC-5, Limedrop wrote:
I've got the same issue (running
Thanks. In my case default=None (and needs to be), so thankfully Massimo's
fix does the trick.
On Thursday, March 29, 2012 3:27:40 PM UTC+13, Detectedstealth wrote:
The solution I made was setting a default value for all my radio groups.
Gentle people,
I have the following grid:
query = ( (db.lvdisksetup.lvgroupname_id == usedlvdisksetup)
(db.lvgroupname.id == usedlvdisksetup) (db.lvdisksetup.lvdisk_id ==
db.lvdisk.id) )
fields = [db.lvdisksetup.id, db.lvgroupname.lvgroupnamedesc ,
db.lvdisk.lvdiskdesc,
Gentle people,
I have the following grid:
query = ( (db.lvdisksetup.lvgroupname_id == usedlvdisksetup)
(db.lvgroupname.id == usedlvdisksetup) (db.lvdisksetup.lvdisk_id ==
db.lvdisk.id) )
fields = [db.lvdisksetup.id, db.lvgroupname.lvgroupnamedesc ,
db.lvdisk.lvdiskdesc,
Thanks Anthony !
On Thursday, March 29, 2012 2:31:02 PM UTC+13, Anthony wrote:
locals() returns a dictionary including all the variables in the local
function, so it is exactly equivalent to dict(grid=grid) in this case. See
http://docs.python.org/library/functions.html#locals. In general,
77 matches
Mail list logo