Web2pyCon? Maybe?
yes, the new code is in 1.99.3
2011/12/7 Anthony
> I think it has already been changed in trunk -- can you check it there?
>
>
> On Wednesday, December 7, 2011 9:40:28 AM UTC-5, mweissen wrote:
>>
>> I think line 1566 of gluon/sqlhtml.py
>> message = error or T('%(nrows)s records found' % dict(n
Yes it does. LOL. Sorry for the trouble!
On Dec 13, 11:04 am, Anthony wrote:
> Does it work if you pass the request arg as an argument to the function:
>
> @service.json
> def search(keyword):
> query = db.search.title.contains(keyword, all=True)
> return db(query).select()
>
>
>
>
>
>
>
In the 'aphorizm' table definition, you refer to db.author, but at that
point, db.author doesn't yet exist. You have two options -- either reverse
the order of the table definitions, or use the alternate syntax for
defining a reference field: Field('author_id', 'reference author').
Anthony
On
Does it work if you pass the request arg as an argument to the function:
@service.json
def search(keyword):
query = db.search.title.contains(keyword, all=True)
return db(query).select()
On Monday, December 12, 2011 9:44:50 PM UTC-5, lyn2py wrote:
>
> I have followed the instructions from
Hi community. I'm new to the web2py, but have a passion to learn it.
I'm a little stuck when start to define my models, I use MySQL engine, and
have following models:
db = DAL('mysql://login:password@localhost/mydb')
> #db = DAL('sqlite://sqlite.sqlite')
> db.define_table('aphorizm',
> Field('b
Thanks Massimo, MARKMIN is an excellent tool. Looking forward to this
new feature in MARKMIN.
On Dec 13, 1:30 am, Massimo Di Pierro
wrote:
> There is already an open issue about this. I approved it but did not
> have the time to implement it. The minor complication is that it would
> require chan
I have followed the instructions from the book
http://web2py.com/book/default/chapter/09
But it is not working for me, please point out my errors!
#controller
@service.json
def search():
query = db.search.title.contains(request.args(0), all=True)
return db(query).select()
def call():
I'm still stuck with this :(
I've already deleted my database to start from scratch but I am
encountering the same issue. For example, i deleted a record from
auth_account (in this case record #3) but when the I run the app and run a
trace with ipdb, my functions still return a row id 3, as if it
I'm guessing that was never supposed to work. I think the 'type' argument
to Field() is only supposed to take one of the DAL's pre-defined types. In
the past this worked because without specifying a widget or one of the
recognized field types, the field was given the string widget by default,
a
SQLFORM.factory hidden fields are not working the same in 1.99.3 as in
1.99.2. Here is a simple example
form = SQLFORM.factory(
Field('text_field'),
Field('hidden_field', type='hidden', default='test'),)
The hidden field is not hidden. Here is the html produced. The first is
from 1.99.2, the
yes, redirect is little tricky ;) my solution is for ajax.
web2py redirect issues a standard http redirect, so the address will change
in the browser address bar. I believe you were using jQuery Mobile and
Ajax, which apparently introduces some complications (not specific to
web2py). For a regular application, a standard redirect should work fine.
In a
Spend all week struggling with the same.
Basically you have to use browsers'
window.location.replace and initialize
the location via Python from your function.
Let say you are here:
http://www.mycoolapp.com/old_location
in the html you place the JavaScript
at the bottom before :
relocation_url
>
> You would have to rewrite the URLs to make them absolute (including URLs
> within any static files linked in the page)
Correction -- you probably don't have to worry about relative URLs within
linked CSS files because they will be loaded relative to the CSS file URL
(so only that URL nee
I guess that's not technically a redirect -- it's actually copying the
other page and delivering the copy. What do you mean it's no longer
connected to the session? The difficulty with copying a web page and
delivering the copy is that it might contain some relative URL references
(links as wel
>
> forms = []
> flag = 0
> for i in rows:
>
Python tip -- instead of the above, try:
for flag, i in enumerate(rows):
> forms.append(SQLFORM(db[request.args(0)], i[request.args(0)].id))
>
It looks like your rows are actually the result of a multi-table join, so
you might
can you point it at web2py/gae_handler.py or base your deferred handler off
of that?
Not as easy as I thought...
:(
Richard
On Mon, Dec 12, 2011 at 4:21 PM, Richard Vézina wrote:
> I would need a way to display my updated rows in line...
>
> I just though that I could combine SQLTABLE and for each row of my rows
> query I could embeded a submit button of each of my forms that
You probably need to add db.commit() to your cron job to commit the
transaction. This is necessary in external scripts, but not in models,
views, and controllers.
See http://web2py.com/book/default/chapter/06#commit-and-rollback
and http://web2py.com/book/default/chapter/04#Cron.
Anthony
On M
If I have a function as follows in default.py
def test():
redirect("url of some web page")
Then
app/default/test does open up the web page as if it was entered in the
url bar of the browser.
If the function is
def test():
import urllib
url="url of some web page"
f
On Monday, December 12, 2011 4:39:34 PM UTC-5, Massimo Di Pierro wrote:
>
> I submitted two talk proposals and one tutorial proposal. I do not
> know yet about talks.
Hopefully web2py will get a talk. I think talks probably generate more
exposure anyway because you don't have to pay a separate e
From what I see already set the tutorials, including basic Django, as
not present web2py and web2py to make django did most of the framework
developed inPython, I think it also should have policies in PyCon
preferences, as in all places.
Finish select tutorials, these are the selected:
ht
Hi
I have two function one is running in controller when users access the
page (manageGame) and one is running as cron job (cleanDB). I am
geting "Lock wait timeout exceeded; Try restarting transaction"
error in mysql database.
How can I avoid this problem ?
def manageGame():
now = datetime.
I submitted two talk proposals and one tutorial proposal. I do not
know yet about talks.
Massimo
On Dec 12, 3:24 pm, Ovidio Marinho wrote:
> web2py does not have anything? We need to unite for a petition demanding
> web2py this important event. Because they rejected?
>
> Ovidio Marinho
Web2py leitmotiv should be :
Web2py : always further...
:)
Richard
On Sun, Dec 11, 2011 at 8:26 PM, Anthony wrote:
> Massimo, shortly I'll be sending an updated 'examples' that fixes this as
> well as some other issues (courtesy of Chris May). The Bossie Award problem
> is resolved by moving
We could still organize an Open Spaces time to meet-up and talk about
Web2py. The Conference schedule is to be available on 1/1/12. Anyone
know if there were any web2py presentations proposed?
I am planning on attending this year and am looking forward to meeting
other web2py users.
-J
Or post multiple on-line tutorials that cover web2py.
Then create a communications plan to educate the target audience.
The information would be available, everyone with web access could share
the information.
On Mon, Dec 12, 2011 at 1:24 PM, Ovidio Marinho wrote:
> web2py does not have anyt
After the Bossie Award, web2py should be the main attraction...
2011/12/12 Ovidio Marinho
> web2py does not have anything? We need to unite for a petition demanding
> web2py this important event. Because they rejected?
>
>
>
>Ovidio Marinho Falcao Neto
> Web Developer
>
web2py does not have anything? We need to unite for a petition demanding
web2py this important event. Because they rejected?
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
I would need a way to display my updated rows in line...
I just though that I could combine SQLTABLE and for each row of my rows
query I could embeded a submit button of each of my forms that I could
rename review... Putting all the form fields to hidden I could then make a
onvalidation process th
https://us.pycon.org/2012/schedule/lists/tutorials/
No web2py tutorial this year. Rejected. :-(
Thanks Anthony...
Here what I did so far...
## CONTROLLER
def bunch_review_with_multi_form():
# Getting lot and test from args or vars...
rows = db((db.lotns_lot_number.id == request.args(1))&\
(db.lotns_sample.lot_number_id == db.lotns_lot_number.id)&\
(db[request.args
Oh, it looks like solved !
On Dec 11, 10:12 pm, Ismael Serratos wrote:
> In fact, I'm trying to create new projects, and new appliances of web2py
> and with all happens the same..http://kodesideman.fluxflex.com/the new
> one, same error, and the old one kodeside.fluxflex.com now I'm getting a
> q
'N'+''.join('o' for in in range(100))+'!'
yes there is a better way :-)
def bunch_update_with_multi_form():
for k in range(31): locals()['form%s' % k] = None # not sure if
necessary
if not request.args(0) in [... list of allowed tables...]:
redirect(URL('error'))
tablename, table =
web2py creates a hidden _formname field for each form. If there are
multiple forms on the page, they must each have a unique _formname. By
default, SQLFORM creates a _formname based on the table name and type of
form (and possibly record number), but you can generate your own name via
the 'form
Hello,
Is there a better way of doing this :
def bunch_update_with_multi_form():
form0=None
form1=None
form3=None
form4=None
form5=None
form6=None
form7=None
form8=None
form9=None
form10=None
form11=None
form12=None
form13=None
form14=None
On Mon, Dec 12, 2011 at 1:14 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Yes but the point is that eventually you could edit the text and write
> $FOOTER and then same it as a "template". I am thinking this should be
> a piece of a CMS that can be used to create themes from existi
Yes but the point is that eventually you could edit the text and write
$FOOTER and then same it as a "template". I am thinking this should be
a piece of a CMS that can be used to create themes from existing
pages.
On Dec 12, 12:03 pm, Anthony wrote:
> Right now, it's just saving a static copy of
Right now, it's just saving a static copy of the full HTML page, right? So,
if you want to change the header or footer, for example, you'd have to
change it on each individual page.
On Monday, December 12, 2011 12:33:12 PM UTC-5, Massimo Di Pierro wrote:
>
> I agree. I think this should be a com
On Mon, Dec 12, 2011 at 12:33 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> I agree. I think this should be a component of a larger project. Is
> should include the ability to recursively download all linked pages
> from the same domain (including html, css, js, images, etc.). It
>
I agree. I think this should be a component of a larger project. Is
should include the ability to recursively download all linked pages
from the same domain (including html, css, js, images, etc.). It
should not take that much to do but one needs to decide what to do
with the downloaded data. I thi
There is already an open issue about this. I approved it but did not
have the time to implement it. The minor complication is that it would
require changing not just markmin2html.py but also markmin2latex.
On Dec 12, 9:22 am, lyn2py wrote:
> Hi, how do I make nested lists with MARKMIN?
> For exam
We could use this
https://github.com/amoffat/Inspect-Shell/blob/master/inspect_shell.py
together with a modified shell (from admin/controllers/shell.py) to
give a web based presence to any running python script.
Why not using web2py feature for this :
db[request.args(0)].entered_by.update=auth.user and auth.user.id
db[request.args(0)].input_date.update=request.now
request.args(0) = your table
So here you tell web2py to stamp user id (from auth_user) into entered_by
field of the given table only on updat
This would be great tool for moving an existing website to a web2py-based
CMS. I remember having to move static HTML pages to WordPress a few years
back and it was such a pain. This would be an excellent migration tool.
Hi, how do I make nested lists with MARKMIN?
For example, indentation to create it?
+ Ordered Item
- Bulleted Item
+ Another Item
+ Sub Item
+ Sub 2
- Bulleted Again
Probably gives:
1. Ordered Item
- Bulleted Item
2. Another Item
a. Sub Item
b. Sub 2
* Bulleted Again
* r
Thanks Anthony and Massimo.
I contacted the hosting company and they suggested to install the
additional python instance.
Can you please advise, how would I go about auto-starting web2py with a
proper version of python then?
Thanks,
Adnan
### Reference email from hosting company:
... there
yes.
On Dec 12, 5:56 am, thodoris wrote:
> I am trying to migrate users from phpBB whose passwords have been encrypted
> with php_pass. There is a python module that mimics the functionality of
> php_pass and i am wondering what is the best way to override the default
> encryption of web2py.
>
>
>
> Still, if I understand correctly I'd have to setup a AJAX call requesting
> the default values to prepopulate the fields with the defaults matching the
> table?
> Or else maybe when creating the table for the user, I could enter the
> default values. I'm trying to imagine though how I would
It uses javascript to create buyable items, and to handle the cart. For
those who prefer to render items in html, and have only the cart work with
clientside script, check out Simplecart. Those who prefer an all-serverside
solution, extended with AJAX cart, might want to port jCart to web2py.
I am trying to migrate users from phpBB whose passwords have been encrypted
with php_pass. There is a python module that mimics the functionality of
php_pass and i am wondering what is the best way to override the default
encryption of web2py.
Is it sufficient to override CRYPT() using somethi
Hi All,
I have an extremely small suggestion to make life a tiny bit easier - in
the beginning when starting web2py using python web2py.py there appears a
dialog box.
In the dialog box, the password field has a binding on the '' to
start the server when the return key is pressed. I suggest addi
Hello All,
I need some help to have a widget work correctly.
BTW, once corrected, I think it could be useful to other users...
I built a widget to expose in a SELECT regions and their sub-regions
('departement') to choose.
For instance: a region A is divided into departement 11 and departement
Very, very nice idea.
Ok here's what I want to do.
I want a user to be able to create multiple tables of data, with some
information about every table.
So instead of creating more tables, I figured I'll have one big table of
data with a reference to the record in the table_settings database so I can
return to the us
In my Django+GAE project I have these settings for deferred.defer in GAE.
What I need to change in order to have equivalent file for web2py?
django_wrapper_deferred.py is used from GAE deferred library
which I want to run in web2py environment.
=
ap
Wow!
It' really amazing! This is really innovative and never seen! We must build
something like an easy administrative interface around it!
Great Massimo!
2011/12/12 Massimo Di Pierro
> And here is the full source
>
> https://github.com/mdipierro/Plasmid
>
> On Dec 11, 11:14 pm, Massimo Di
58 matches
Mail list logo