If you thinking of making your own phone apps with web2py I see 2 ways:
Client uses a webbrowser. Just like Joe said here, you can simply log
into the site.
As far as making an application, if you can get python for phone, you
can actually make a little webserver in the phone itself, that run you
Good idea.
Massimo
On Jun 28, 12:38 am, Hans Donner wrote:
> Yes, can see the value of having some statement executed right before
> the actual insert (or update).
> Massimo, would it be possible wit the new DAL to provide some hooks
> into the table that can do some pre insert, update etc stuf
small fix needed:
=== modified file 'web2py/doc/source/conf.py'
--- web2py/doc/source/conf.py 2009-05-07 14:32:05 +
+++ web2py/doc/source/conf.py 2009-06-28 05:42:50 +
@@ -92,7 +92,9 @@
# The short X.Y version.
version = version_str[1]
# The full version, including alpha/beta/rc tag
Yes, can see the value of having some statement executed right before
the actual insert (or update).
Massimo, would it be possible wit the new DAL to provide some hooks
into the table that can do some pre insert, update etc stuff? (or
provide a way to specify a new table instance where we can do s
Yep, this will only provide easy field labels for existing columns,
and you can also override the the columnname youserself still. This is
more for the quick and dirt SQLTABLE usage and for those simple cases
that you provide only a simple table dump.
In all other cases, you have to work witg it m
sorry:
db.define_table('y',
db.Field('name','string')
)
db.define_table('x',
db.Field('y_id',db.y,requires=IS_IN_DB(db,'y.id','%(name)s')),
db.Field('name','string'),
)
db.x.name.requires=[
IS_NOT_EMPTY(),
IS_NOT_IN_DB(db(db.x.y_id==request.vars.y_id),'x.name')
This is not a problem on GAE but break a symmatry between GAE and non-
GAE because on non GAE you cannot do it.
what if you do
db().select(db.table.field,db.table.otherfield.count
(),groupby=db.table.field)
The column called "db.table.otherfield.count()" cannot be relabled.
This issue must be de
Short answer:
yes it is possible to read that Django model and read those data
directly from the existing sqlite database.
If you really want to I can send you instructions on how to do it
or can arrange to do the conversion from you.
Long answer:
Don't. Export the data for example in
Just to let you know the patch I'm currently using:
=== modified file 'web2py/gluon/contrib/gql.py'
--- web2py/gluon/contrib/gql.py 2009-06-15 20:35:28 +
+++ web2py/gluon/contrib/gql.py 2009-06-21 20:44:14 +
@@ -796,6 +796,8 @@
self.hooks = True
self.compact = True
+
Massimo, unfortunately, the suggestion didn't work. I got a traceback
that ends with:
Traceback (most recent call last):
File "gluon/restricted.py", line 107, in restricted
File "C:/web2py/applications/test/models/test.py", line 8, in
File "gluon/sql.py", line 525, in __getattr__
KeyError:
Perhaps you are concerned that web2py needs Python on the client
side? It does not. All Python code resides server-side so the only
technology needed on the client end is a standards-compliant browser.
There is no reason why an iPhone web browser could not interact with a
web2py site.
On Jun 27
I am not the expert on this or I will have done it already. ;-)
Here is summary of a response to the same question I got from Tim
Michelsen, he is the expert.
1) we need to make sure that all docscring are conform to these specs:
http://sphinx.pocoo.org/rest.html
http://www.python.org/dev/peps/p
I have this model.py in Django.
--
from django.db import models
from django.contrib import admin
class Patient(models.Model):
first_name = models.CharField(max_length=30)
mid_name = models.CharField(max_length=3)
last_name = models.CharField
I meant I have them in sqlite3. I would hope data would be in mysql
eventually or a better db.
On Jun 27, 9:59 pm, mdipierro wrote:
> You say:
>
> > I have a file of people. I have a file of jobs and relate the file by the
> > ID of people.
>
> You can do it but you need to move the data from
"At the same time we need to change the docstrings to make them reST/
Sphinx compliant.
I would very much appreciate help with this part."
If you can provide more info regarding this: what/how do you want to
see the docstrings, and what makes the (non)complaint?
On Sat, Jun 27, 2009 at 10:52 PM,
You say:
> I have a file of people. I have a file of jobs and relate the file by the ID
> of people.
You can do it but you need to move the data from the files into the
database. In which format are those files? Can you provide an example?
Can those files be imported once for all or are they upd
.
I started in IBM 7080 in assembly, COBOL in IBM7080, IBM 1401,
IBM1410, IBM360 series, Basic in DEc, HP, 4th gen in IBM
special,language, HP COGNOS,, C language PC, Delphi in , Visual
Basic, Euphoria, etc
I have wrritten system in php, tried some Rails, then went to Grails,
then Django, an
Did you install MySQLdb? If so, make sure you are running from
source
since the binary versions will not be able to find it.
massimo
On Jun 27, 10:05 pm, Yannick wrote:
> Hello mate,
> When using database like MySql with the most recent release of Web2py
> there is an error coming from sql.py
Hello mate,
When using database like MySql with the most recent release of Web2py
there is an error coming from sql.py saying "global name 'MySQLdb' is
not defined".
Basically all DB connection link other than Sqlite doesn't work.
db=SQLDB( 'mysql://username:passw...@localhost:3306/database', 1
I think the issue is that they changed the behavior of the cgi module
(http://bugs.python.org/issue1817) so that if the same variable
appears both in the URL and in the submitted form it gets parsed
twice. This creates an ambiguity because the application (in this case
web2py) cannot tell if the f
OK, I've checked on 2.5.2 and it works. I cannot check it on >2.6.0.
On Jun 28, 2:39 am, Jędrzej Nowak wrote:
> hey! sorry for "spamming" on list, but Groups definitely doesn't works
> for me...
>
> anyway thats output that you requested:
> -
> /manager/default/edit_elem
> -
> project_id
hey! sorry for "spamming" on list, but Groups definitely doesn't works
for me...
anyway thats output that you requested:
-
/manager/default/edit_elem
-
project_id=2&elem=forms&id=2
-
-
-
-
"id" field is list... the question is WHY ?
On Jun 28, 2:02 am, mdipierro wro
Not sure what do you mean using only HTML / CSS/ JS?
perhaps this will help:
http://www.web2py.com/AlterEgo/default/show/110
Massimo
On Jun 27, 6:35 pm, gluegl wrote:
> Any Web2Py GAE site sample code (using only HTML / CSS / JS)?
>
> THANKS in advance,
> -G
--~--~-~--~~---
Any Web2Py GAE site sample code (using only HTML / CSS / JS)?
THANKS in advance,
-G
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegro
{{=XML(response.render('default/search.html', form=search_form(),
rows= []))}}
On Jun 27, 6:57 pm, Brian wrote:
> Does anyone know if there's a way to render a view inside another
> view? This method gives me the html I would like:
>
> {{
> form=search_form()
> rows=[]}}
>
> {{include 'default
2.6 and 2.6.1 seem to have a cgi module that behave strangely.
This will work for sure with 2.5. and should work fine with 2.6.2.
Massimo
On Jun 27, 6:09 pm, Yarko Tymciurak wrote:
> You want to have at least 2.6.2...
>
> 2009/6/27 Jędrzej Nowak
>
>
>
> > Wrrr... I'm trying to post 5th time...
Does anyone know if there's a way to render a view inside another
view? This method gives me the html I would like:
{{
form=search_form()
rows=[]
}}
{{include 'default/search.html'}}
But I'd really rather do something like this because it seems more
correct:
{{=response.render('default/search.
You want to have at least 2.6.2...
2009/6/27 Jędrzej Nowak
>
> Wrrr... I'm trying to post 5th time... Maybe now...
>
> I'm using 2.6, but as I know 2.6 is compatible with 2.5...
>
> On Jun 27, 4:26 pm, mdipierro wrote:
> > Are you using Python 2.5 or Python 2.6?
> >
> > Massimo
> >
> > On Jun 2
There is the Python Imaging Library (PIL) that lets you open and
manipulate images from Python applications. Maybe it would be useful
in this context?
(I'm getting "bad gateway" errors trying to pull up the PIL website at
this moment. Hopefully a problem only for my geography.)
On Jun 27, 3:17
Hi,I want to add more fields to the default authentication system. Like the
DB should have a username (rather than email address as user name). Also I
want to add country age etc. But I couldn't find any clue other than the
following line in documentation-
*"**You can change the table name, defin
You can do it with a trick but I cannot promise it will work with the
new DAL
from gluon.sql import SQLXorable
db.define_table(
SQLFIELD('add_date', 'datetime', default=SQLXorable("any SQL code
here"))
)
Anyway, I think it works but I am not 100% sure.
Massimo
On Jun 27, 3:24 pm, kuba
> I've been meaning to dig deeper into this; will do as well. Is there a
> thread on how the new DAL functions?
Not yet but I am hoping to post it within one week. This is my current
queue:
- finish review and include Hans and Alexey patches for tickets on GAE
(*)
- finish review and include Hans
On 27 Cze, 22:09, Hans Donner wrote:
> Have you tried the 'default' keyword for SQLField?
>
> SQLFIELD('add_date', 'datetime', default=)?
>
yes, I thought also about it.
The problem is that it accepts datetime type (or what ever it is) not
string
i can only pass request.now to it - and if u
Have you tried the 'default' keyword for SQLField?
SQLFIELD('add_date', 'datetime', default=)?
On Sat, Jun 27, 2009 at 9:54 PM, kuba wrote:
>
>
> I will try to explain it better:
>
> for example one of my tables looks like this
>
> db.define_table("active_task",
> SQLField('parameters', 's
> ... making a list of those GAE expression that you would
> like to be supported by web2py, provide an example of GAE syntax and a
> proposed web2py syntax
Great. Will do.
> The new DAL will have lots more room for customization so we should
> focus on design before implementation.
I've been m
I will try to explain it better:
for example one of my tables looks like this
db.define_table("active_task",
SQLField('parameters', 'string'),
SQLField('add_date', 'datetime'),
SQLField('state', 'integer'))
What I'm trying to achieve is that every time someone inserts a row -
colum
Thanks a lot Massimo. I am looking into it.
On Jun 28, 1:38 am, mdipierro wrote:
> Look at the slides inwww.web2py.com, page 125.
>
> You can add any field you want but you cannot remove the fields in the
> example. If you add a field "username" it will be be used for login
> instead of email.
>
As stated, I do not think web2py is the issue here, but more that
people want to force a relation design onto the bigtable.
And yes, there are perhaps some small improvements that could be made
to web2py to provide better support - but i'm awaiting the new DAL.
Also the examples provided now are
Look at the slides in www.web2py.com, page 125.
You can add any field you want but you cannot remove the fields in the
example. If you add a field "username" it will be be used for login
instead of email.
massimo
On Jun 27, 2:24 pm, "Md.Mahbubur Rasheed"
wrote:
> Hi,I want to add more fields t
I would start by making a list of those GAE expression that you would
like to be supported by web2py, provide an example of GAE syntax and a
proposed web2py syntax. Possibly maintain a wiki page about this so
information does not get lost.
The new DAL will have lots more room for customization so
I'm in agreement with Hans about how GAE is fundamentally different
from relational databases. There are few threads on this and Yarko's
proposal is something I'm a fan of. Maybe not the most correct
approach, but continuing the discussion is valuable, methinks.
http://groups.google.com/group/web
I do not understand the question
On Jun 27, 1:48 pm, kuba wrote:
> is there any way to achive it on database level ? I thought about
> db.sqlexecute() but sqlite doesn't support alter column.
>
> Thx for help
--~--~-~--~~~---~--~~
You received this message becau
Great. Makes sense. If I could think a little straighter I might have
figured it out myself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@go
On Jun 27, 2:47 pm, vihang wrote:
> any chance you would know what was used for compiling the js and css
> scripts together ?
>
>
'fraid not.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" gr
any chance you would know what was used for compiling the js and css
scripts together ?
On Jun 27, 10:40 pm, weheh wrote:
> I'm working on trying to get a link to web2py or a mention. But like I
> said, I don't fully own the site.
--~--~-~--~~~---~--~~
You receive
you can do
db.define_table('x',
db.Field('y_id',db.y,requires=IS_IN_DB(db,'y.id','%(name)s'),
db.Field('name','string',requires=[
IS_NOT_EMPTY(),
IS_NOT_IN_DB(db(db.x.y_id==request.vars.y_id),'x.name')
]
),
)
Assuming the validator is only executing when a for
I'm working on trying to get a link to web2py or a mention. But like I
said, I don't fully own the site.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email
is there any way to achive it on database level ? I thought about
db.sqlexecute() but sqlite doesn't support alter column.
Thx for help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
Wrrr... I'm trying to post 5th time... Maybe now...
I'm using 2.6, but as I know 2.6 is compatible with 2.5...
On Jun 27, 4:26 pm, mdipierro wrote:
> Are you using Python 2.5 or Python 2.6?
>
> Massimo
>
> On Jun 27, 9:16 am, pigmej wrote:
>
>
>
> > traceback:
> > Traceback (most recent call l
Hmmm it's 2.6
On Jun 27, 4:26 pm, mdipierro wrote:
> Are you using Python 2.5 or Python 2.6?
>
> Massimo
>
> On Jun 27, 9:16 am, pigmej wrote:
>
> > traceback:
> > Traceback (most recent call last):
> > File "/home/pigmej/moje/web2py/gluon/restricted.py", line 107, in
> > restricted
> >
db.define_table('x',
db.Field('y_id',db.y,requires=IS_IN_DB(db,'y.id','%(name)s'),
db.Field('name','string',requires=[
IS_NOT_EMPTY(),
IS_NOT_IN_DB(???,'x.name')
]
),
)
The question is this: How to write the requires clause such that the
x.name field is uni
I'm not fully in charge of the site. The site came together lightning
fast. The other guys working on the site are ROR experts. They were
responsible for the front end and content. So we all stuck with what
we knew.
--~--~-~--~~~---~--~~
You received this message be
Scratch that, It's a problem i created in layout.html.
On Jun 27, 1:02 pm, "mr.freeze" wrote:
> I seem to have broken the db portion of appadmin on my app somehow.
> It throws this error:
>
> Traceback (most recent call last):
> File "C:\web2py\gluon\restricted.py", line 107, in restricted
>
Hmmm 2.6
On Jun 27, 4:26 pm, mdipierro wrote:
> Are you using Python 2.5 or Python 2.6?
>
> Massimo
>
> On Jun 27, 9:16 am, pigmej wrote:
>
> > traceback:
> > Traceback (most recent call last):
> > File "/home/pigmej/moje/web2py/gluon/restricted.py", line 107, in
> > restricted
> > ex
Wonderfull work Weheh !
Just a comment: I don't see any link to web2py ...and you should (cf
licence)
Jean-Marc
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send
Is it possible to do it on a field not associated to any db ?
say that for example I have one input with the format "/mm/dd" an
another input field in another page with the format "25th Jun, 1990"...
is it possible to do that using the date picker provided by web2py ?
On Mon, Apr 20, 2009
Hmmm 2.6
On Jun 27, 4:26 pm, mdipierro wrote:
> Are you using Python 2.5 or Python 2.6?
>
> Massimo
>
> On Jun 27, 9:16 am, pigmej wrote:
>
> > traceback:
> > Traceback (most recent call last):
> > File "/home/pigmej/moje/web2py/gluon/restricted.py", line 107, in
> > restricted
> > ex
I seem to have broken the db portion of appadmin on my app somehow.
It throws this error:
Traceback (most recent call last):
File "C:\web2py\gluon\restricted.py", line 107, in restricted
exec ccode in environment
File "C:/web2py/applications/web2pyslices/views/appadmin.html", line
248, in
2.6 ... But as I know 2.6 is compatible with 2.5...
On Jun 27, 4:26 pm, mdipierro wrote:
> Are you using Python 2.5 or Python 2.6?
>
> Massimo
>
> On Jun 27, 9:16 am, pigmej wrote:
>
> > traceback:
> > Traceback (most recent call last):
> > File "/home/pigmej/moje/web2py/gluon/restricted.py",
If you are using python 2.6 (as I think) please do a test for me.
print request.env.path_info
print request.env.query_string
print request.vars
print request.get_vars
print request.post_vars
before the error occurs and send me the output.
Massimo
On Jun 27, 9:26 am, mdipierro wrote:
> Are you
I do not know about the non-ascii text. On the web2py side just call
pyamf so if there is any bug in implementing the protocol it is there.
It should be possible to change amf0 to amf3. Try change gluon/
tools.py line 2083
context = pyamf.get_context(pyamf.AMF0)
Perhaps you can help me
Are you using Python 2.5 or Python 2.6?
Massimo
On Jun 27, 9:16 am, pigmej wrote:
> traceback:
> Traceback (most recent call last):
> File "/home/pigmej/moje/web2py/gluon/restricted.py", line 107, in
> restricted
> exec ccode in environment
> File "/home/pigmej/moje/web2py/applications/
traceback:
Traceback (most recent call last):
File "/home/pigmej/moje/web2py/gluon/restricted.py", line 107, in
restricted
exec ccode in environment
File "/home/pigmej/moje/web2py/applications/manager/controllers/
default.py", line 167, in
File "/home/pigmej/moje/web2py/gluon/globals.py
traceback:
Traceback (most recent call last):
File "/home/pigmej/moje/web2py/gluon/restricted.py", line 107, in
restricted
exec ccode in environment
File "/home/pigmej/moje/web2py/applications/manager/controllers/
default.py", line 167, in
File "/home/pigmej/moje/web2py/gluon/globals.py
It's done
http://groups.google.com/group/cherrypy-users/browse_thread/thread/3fab93a24037b91c
Regards,
T.
On 27 Юни, 11:17, todor_k wrote:
> Thanks,
>
> I will try to do it with reference to this thread.
>
> Regards,
> Todor
>
> On 27 Юни, 08:33, mdipierro wrote:
>
> > This is an issue with the
Noticed this dead end.
http://groups.google.com/group/web2py/browse_thread/thread/3250ef91619c7c19
I would love to have attatchments in email. (I will be sending a users
avatar in the email.)
Regards,
Jason
--~--~-~--~~~---~--~~
You received this message because
@weheh,
Great job with the website ! looks good..
I had one question.. what did you use to compile the js and css
scripts together? I have been looking for a solution whihc I can use
with web2py/python but most of them are php based... Thanks for any
direction
Vihang
On Jun 27, 9:51 am, md
I wonder if there is a nice way to implement thumbnailing. I am working
with a lot of images in my website and it would be nice to have a way to
scale them before they get to the user. That way my big images scale to
the need of the view.
Regards,
Jason Brower
--~--~-~--~~
Thanks,
I will try to do it with reference to this thread.
Regards,
Todor
On 27 Юни, 08:33, mdipierro wrote:
> This is an issue with the cherrypy wsgiserver. I suggest you bring it
> up on the cherrypy mailing list.
>
> Massimo
>
> On Jun 26, 1:13 pm, todor_k wrote:
>
> > I have the same issu
You can use this code from Flex. I did and it worked with a caveat of
not being able to send non-ASCII text.
Here's the code I used. It's ugly, but it was put together with the
sole purpose of doing some tests.
http://www.adobe.com/2006/mxml";
horizontalAlign="cen
I tested this some time ago I got problems with sending non-ASCII
text. Other than that the code worked fine.
Is it a limitation of web2py or of pyamf?
It appears to use amf0. Is it possible to switch to amf3?
On Sat, Jun 27, 2009 at 1:53 PM, mdipierro wrote:
>
> This could be a bug. Could you
Hi Massimo,
I couldn't try that code, cause I don't have Adobe Flash MX. I am
using Flex, trying something quite similar to Alexei's code. It's
actually adapted from:
http://pyamf.org/browser/examples/trunk/helloworld/flex/remoteobject/src/helloworld.mxml
For the controller, I'm following :
http:
Hi Denes,
> What do you mean by the calendar breaks?
> I just had a little time to test and Firefox does not have a problem
> focusing on a date field.
In both Safari and Firefox, when I request a page with a field of type
date as the first field visible it has the focus, however, when I
click i
73 matches
Mail list logo