Hello,
would anyone know how would one implement GenericForeignKey using
DAL??
Thanks
Vihang
Cannot inherit virtualfields
On May 12, 8:08 pm, Thadeus Burgess thade...@thadeusb.com wrote:
VirtualFields?
--
Thadeus
On Tue, May 11, 2010 at 11:59 PM, vihang vihan...@gmail.com wrote:
Some of the apps I am working currently are much more easy to build if
the models can be defined as
Maybe we could inherit in some way, but I need to inherit a bunch.
Hence it does not help.
On May 12, 8:08 pm, Thadeus Burgess thade...@thadeusb.com wrote:
VirtualFields?
--
Thadeus
On Tue, May 11, 2010 at 11:59 PM, vihang vihan...@gmail.com wrote:
Some of the apps I am working currently
i am using latest version 1.77.3 (2010-04-20 02:48:54)
On May 12, 8:29 pm, mdipierro mdipie...@cs.depaul.edu wrote:
This was fixed. What version of web2py are you using?
On May 12, 5:51 am, Rohan yourbuddyro...@gmail.com wrote:
I am using auth.login and auth.register forms on a single
i am using latest version 1.77.3 (2010-04-20 02:48:54)
On May 12, 8:29 pm, mdipierro mdipie...@cs.depaul.edu wrote:
This was fixed. What version of web2py are you using?
On May 12, 5:51 am, Rohan yourbuddyro...@gmail.com wrote:
I am using auth.login and auth.register forms on a single
Hi,
Thank you for your answer.
Massimo, I agree with you using tw-forms is not the best way to
construct forms.
But with toscawidgets I don't want to use tw-forms but all others
widgets. you can see them here : http://toscawidgets.org/hg
I am a beginner in python and web2py. I don't want to
We have made an app with web2py to present data from a home-automated
home as a web service. There is a certain hardware at the home that
sends all the information that transverses the bus into our server,
and from there on, we process and present the data using web2py.
There are several homes
Hello Thadeus,
Trying to use the testing environment, I got the following traceback :
File
/home/clabaut/.virtualenvs/web2py/lib/python2.6/site-packages/web2py_utils/test_runner.py,
line 170, in new_env
'TEST_METHOD': 'FakeEnv'
TypeError: env() got an unexpected keyword argument
Oups.. Just seen Warning You must use web2py version 1.77.4, or at least
source revision 445. on the documentation page...
Sorry for the noise.
-Mathieu
On Thu, May 13, 2010 at 10:27, Mathieu Clabaut mathieu.clab...@gmail.comwrote:
Hello Thadeus,
Trying to use the testing environment, I got
On May 13, 10:06 am, Benigno bca...@albendas.com wrote:
We have made an app with web2py to present data from a home-automated
home as a web service. There is a certain hardware at the home that
sends all the information that transverses the bus into our server,
and from there on, we process
thanks for trying to help. but i already spent two days trying to
figure it out. i can install web2py with no problems - but i dont have
too much experience with mod_wsgi (google doesnt help) no web2py
tutorials and i guess this is the end. i really need to run php too on
the same apache but i
I have this query db(db.space.id.belongs(result_id)).select()
the result id is an unsorted array of ids
I don't want the query results to be order by id
The SQL list this
SELECT space.id, space.name FROM space WHERE space.id IN
(1,6,136,2,18,119,122)
i want the result to be in the order of the
Hi,
Why am I getting an error here?
model.py
db=SQLDB(sqlite://db.db)
db.define_table('test',
Field('t', 'reference test2'))
db.define_table('test2',
Field('t1', 'reference test'))
Error:
Traceback (most recent call last):
File c:\web2py\gluon\restricted.py, line 178, in
is this a SQL Bug/feature? how can I change it?
On May 13, 11:53 am, Francisco Costa m...@franciscocosta.com wrote:
I have this query db(db.space.id.belongs(result_id)).select()
the result id is an unsorted array of ids
I don't want the query results to be order by id
The SQL list this
I made several small apps, and installed a CAS to centralize the
authentication but there are not enterprise grade...
I made an Inventory app where we can follow the history of a piece of
hardware installed and removed from computers, with categories,
subcategories, sellers, invoice, warranty,
I have multiple applications connecting to the same database, some of
them query the database for data on multiple companies others query
the database for data on one company, apart from a company table
containing the company id there is no overlap.
I know web2py can connect to multiple
Without this patches, all decorated functions __name__ is set to f, which
is not desirable in testing environment where on sometimes want to access
the name of the function under test.
See
isn't that just an integer?
On May 13, 1:43 am, vihang vihan...@gmail.com wrote:
Hello,
would anyone know how would one implement GenericForeignKey using
DAL??
Thanks
Vihang
please post an example of the controller and view. If I understand the
problem, this should work.
On May 13, 1:54 am, Rohan yourbuddyro...@gmail.com wrote:
i am using latest version 1.77.3 (2010-04-20 02:48:54)
On May 12, 8:29 pm, mdipierro mdipie...@cs.depaul.edu wrote:
This was fixed.
They do have lots of functionality. So keep up posted about progress.
Anyway, the {{=LOAD(...)}} function is a way to submit web2py forms
via ajax.
On May 13, 3:00 am, lannick abou...@gmail.com wrote:
Hi,
Thank you for your answer.
Massimo, I agree with you using tw-forms is not the best way
Did you look at that web2py/scripts/stup-web2py-ubuntu.sh?
On May 13, 5:51 am, ciprian mephisto...@yahoo.com wrote:
thanks for trying to help. but i already spent two days trying to
figure it out. i can install web2py with no problems - but i dont have
too much experience with mod_wsgi (google
I think this is a SQL feature they sort list to use binary search in
the index for the table for efficiency).
On May 13, 6:57 am, Francisco Costa m...@franciscocosta.com wrote:
is this a SQL Bug/feature? how can I change it?
On May 13, 11:53 am, Francisco Costa m...@franciscocosta.com wrote:
how can i sort results in the array order then?
On May 13, 2:42 pm, mdipierro mdipie...@cs.depaul.edu wrote:
I think this is a SQL feature they sort list to use binary search in
the index for the table for efficiency).
On May 13, 6:57 am, Francisco Costa m...@franciscocosta.com wrote:
is
I guess I should add I made three apps for DePaul University:
1) Computes and projects students headcount, credit hours and revenue
by school and year.
2) Allow students to apply for assistantships and randly assignes them
to faculty for anonymous review
3) A simple class management system for
excellent!
On May 13, 8:02 am, mathieu.clab...@gmail.com wrote:
Without this patches, all decorated functions __name__ is set to f, which
is not desirable in testing environment where on sometimes want to access
the name of the function under test.
so you want them to be ordered as first 1 then 6, then 136 etc?
On 13 Mayıs, 13:53, Francisco Costa m...@franciscocosta.com wrote:
I have this query db(db.space.id.belongs(result_id)).select()
the result id is an unsorted array of ids
I don't want the query results to be order by id
The SQL
On May 13, 2:24 pm, annet annet.verm...@gmail.com wrote:
I know web2py can connect to multiple databases, and I wonder whether
it would be possible to have two db.py files: db1.py and db2.py, where
db1.py connects to the database containing the first type of data and
db2.py connects to the
yes, then 2,18,119,122
On May 13, 3:22 pm, Mengu whalb...@gmail.com wrote:
so you want them to be ordered as first 1 then 6, then 136 etc?
On 13 Mayıs, 13:53, Francisco Costa m...@franciscocosta.com wrote:
I have this query db(db.space.id.belongs(result_id)).select()
the result id is an
yes, this is possible. i don't know other databases but possible with
MySQL.
db(db.space.id.belongs((result_id))).select(orderby=FIELD(id,
1,6,136,2,18,119,122))
On 13 Mayıs, 17:28, Francisco Costa m...@franciscocosta.com wrote:
yes, then 2,18,119,122
On May 13, 3:22 pm, Mengu
http://alexandremas.blogspot.com/2010/02/como-configurar-web2py-e-php-no-mesmo.html
On May 13, 9:40 am, mdipierro mdipie...@cs.depaul.edu wrote:
Did you look at that web2py/scripts/stup-web2py-ubuntu.sh?
On May 13, 5:51 am, ciprian mephisto...@yahoo.com wrote:
thanks for trying to help.
Why not...
define_table('post', Field('title'), Field('content', 'text'))
class Post(object):
@staticmethod
def get_permalinkI(post):
return URL(slugify(post.title))
Then just
for post in db().select(db.post.ALL):
print Post.get_permalink(post)
--
Thadeus
On Thu, May 13,
This has been updated for anyone interested:
http://www.web2pyslices.com/main/static/share/web2py.app.web2pyslices.w2p
ok, this one may be interesting...
Currently, we can install web2py apps in one of 3 ways. uploading it,
providing its url or putting the files in the applications folder
manually. Nothing wrong with this but seems to me that with little
effort we could take this beyond.
Think about an integrated
Is there such thing? i need to group a result set by weeks. Sort of
like total sales of the week. How could I accomplish this? I really
dont want the user to be entering a range of dates. The weeks will
always start on Monday and finish on Sunday. My table takes daily
sales.
Thanks
This is a good idea.
On May 13, 11:09 am, blackthorne francisco@gmail.com wrote:
ok, this one may be interesting...
Currently, we can install web2py apps in one of 3 ways. uploading it,
providing its url or putting the files in the applications folder
manually. Nothing wrong with this
One more thing, web2py could have a list of repositories url, with the
default the one we can find on the official website but also the
possibility to add other non-official ones as well as mirrors.
Technically web2py could interact with each repository by a simple
specification in XML-RPC or
the dal has no weekday function but datetime.date does. That means if
you select the records by some time range we you can maniputale them
at the Python/web2py level. How really depends on details. You could
also create a function that uses datetime weekday to build query
ranges for dal.
On May
I would use an intermediate table to achieve the many to many
relationship:
db.define_table('test', Field('name') )
db.define_table('test2', Field('name') )
db.define_table('test_relation',
Field('test', 'reference test2'),
Field('test2, 'reference test'))
test_and_test2 =
I see. So there has to be some time range. Python has a calendar
module, I thought perhaps putting all the weeks on a table? Will keep
diggin. Thanks
Dan
On May 13, 12:15 pm, mdipierro mdipie...@cs.depaul.edu wrote:
the dal has no weekday function but datetime.date does. That means if
you
nice, thanks!
--
Thadeus
On Thu, May 13, 2010 at 10:50 AM, mr.freeze nat...@freezable.com wrote:
This has been updated for anyone interested:
http://www.web2pyslices.com/main/static/share/web2py.app.web2pyslices.w2p
This is similar to how PluginCentral will be designed, if we ever get
that spec finalised =)
--
Thadeus
On Thu, May 13, 2010 at 11:14 AM, blackthorne francisco@gmail.com wrote:
One more thing, web2py could have a list of repositories url, with the
default the one we can find on the
On May 13, 2010, at 9:26 AM, Thadeus Burgess wrote:
This is similar to how PluginCentral will be designed, if we ever get
that spec finalised =)
It'd be reasonable to do both at the same site.
--
Thadeus
On Thu, May 13, 2010 at 11:14 AM, blackthorne francisco@gmail.com
stage 3, do the same to plugins and slices.
On May 13, 5:33 pm, Jonathan Lundell jlund...@pobox.com wrote:
On May 13, 2010, at 9:26 AM, Thadeus Burgess wrote:
This is similar to how PluginCentral will be designed, if we ever get
that spec finalised =)
It'd be reasonable to do both at the
On Thu, May 13, 2010 at 12:50, mr.freeze nat...@freezable.com wrote:
This has been updated for anyone interested:
http://www.web2pyslices.com/main/static/share/web2py.app.web2pyslices.w2p
Very good, thanks!
--
Álvaro Justen - Turicas
http://blog.justen.eng.br/
21 9898-0141
Thank you Mengu
I've converted my DB to MySQL. In SQLite didn't work.
On May 13, 3:48 pm, Mengu whalb...@gmail.com wrote:
yes, this is possible. i don't know other databases but possible with
MySQL.
db(db.space.id.belongs((result_id))).select(orderby=FIELD(id,
1,6,136,2,18,119,122))
On 13
this is working
db(db.orders.id 0).select(count(1) as nr, round(id/10) as gr,
groupby='gr')
so I think you can use database datetime function to compute week and then
grouping,
most database have such functions
will try. Thanks
On May 13, 1:50 pm, Vasile Ermicioi elff...@gmail.com wrote:
this is working
db(db.orders.id 0).select(count(1) as nr, round(id/10) as gr,
groupby='gr')
so I think you can use database datetime function to compute week and then
grouping,
most database have such
On Wed, May 12, 2010 at 7:45 PM, Timothy Farrell tfarr...@swgen.com wrote:
This is the error that Jon Lundell's guys found already. Note that it's
trying to connect to port 8000 as HTTP. Connect as HTTPS and it should
work.
Also try upgrading to trunk, that should issue a 400 Bad Request.
Thanks for sharing.
Miguel
On Thu, May 13, 2010 at 4:50 PM, mr.freeze nat...@freezable.com wrote:
This has been updated for anyone interested:
http://www.web2pyslices.com/main/static/share/web2py.app.web2pyslices.w2p
I say we move forward with this one as it doesn't need so much work as
with the plugins. At least at first thought. It's just additional
metadata in the application. I think some simple xml/html would do the
trick. Just what data if for someone else to think about. :D
But I think it's awesome.
I was wondering where web2py stands on this issue? Is the framework
utf-8 by default or something else? Is there any documentation on how
to implement utf-8 in web2py if it is not the default?
http://lobstertech.com/2009/jun/07/python_unicode_tutorial/
Thx.
Note that if you are using mySQL that might be because mySQL, if not
set to use utf-8 uses a latin encoding. You have to manually tell
MySQL to use utf-8, and even then you will still have problems with
it...mySQL sux
http://lobstertech.com/2009/jun/07/python_unicode_tutorial/
On Apr 12, 6:59
@mdp: thanks for the clarification. I like having 1 way of doing
things, which is why I dumped perl years ago. Perhaps IS_NULL_OR
should be officially deprecated?
While Rocket supports listening on multiple sockets, web2py does not.
You will need to run two separate instances of web2py (one for SSL, one
unencrypted) to do what you are asking.
-tim
On 5/13/2010 1:40 PM, Miguel Lopes wrote:
On Wed, May 12, 2010 at 7:45 PM, Timothy Farrell
All utf8
On May 13, 2:15 pm, b00m_chef r...@devshell.org wrote:
I was wondering where web2py stands on this issue? Is the framework
utf-8 by default or something else? Is there any documentation on how
to implement utf-8 in web2py if it is not the default?
Since rocket does it, is there any way we can add support for 80+443
with one rocket and one web2py instance?
On May 13, 3:02 pm, Timothy Farrell tfarr...@swgen.com wrote:
While Rocket supports listening on multiple sockets, web2py does not.
You will need to run two separate instances of
It's always a conundrum: does one thank people for helping, and thus
contribute an otherwise content-free mail to the list? Or should one thank
those who helped with a personal mail, thus suggesting to everyone else
that you are ungrateful?
Iceberg, Selecta: thanks for your valuable help. I'm
On May 13, 2010, at 1:01 PM, weheh wrote:
@mdp: thanks for the clarification. I like having 1 way of doing
things, which is why I dumped perl years ago. Perhaps IS_NULL_OR
should be officially deprecated?
Is there a place for that? It'd be nice to be able to look that up. Maybe an
appendix
LOL. I have a solution. Thank for the help and change the title to
[SOLVED] so the email becomes useful.
On May 13, 3:13 pm, Keith Edmunds k...@midnighthax.com wrote:
It's always a conundrum: does one thank people for helping, and thus
contribute an otherwise content-free mail to the list? Or
True but there is always epydoc
http://web2py.com/examples/static/epydoc/
http://web2py.com/examples/static/epydoc/web2py.gluon.validators-module.html
On May 13, 3:22 pm, Jonathan Lundell jlund...@pobox.com wrote:
On May 13, 2010, at 1:01 PM, weheh wrote:
@mdp: thanks for the clarification.
On May 13, 2010, at 1:47 PM, mdipierro wrote:
True but there is always epydoc
http://web2py.com/examples/static/epydoc/
http://web2py.com/examples/static/epydoc/web2py.gluon.validators-module.html
I've always found the source easier to read than epydoc. And the summaries
leave a lot to be
Then epydoc is very useful... useful to find problems with the
docstrings!
On May 13, 3:52 pm, Jonathan Lundell jlund...@pobox.com wrote:
On May 13, 2010, at 1:47 PM, mdipierro wrote:
True but there is always epydoc
http://web2py.com/examples/static/epydoc/
My point with the book is that the information is already there, but
scattered and hard to find.
+1
Hello,
Only a question, at http://pypi.python.org/pypi/ibm_db/ there is a
Python DBI driver for DB2. Why web2py is still using ODBC?? Will not
be better to use this one instead of pyodbc??
Thanks
On 11 mayo, 16:27, mdipierro mdipie...@cs.depaul.edu wrote:
Thank you. will look into it.
Awesome!
Just might want to mention that MySQL doesn't do utf-8, and might
screw-up the DB if you expect your data to be utf-8. Check the info
about fixing the problem in mySQL in that link I posted in my OP.
Might be a good idea to put that in the book somewhere.
On May 13, 1:09 pm, mdipierro
I have no objection to changing this. Can you want to submit a patch
and help with testing?
On May 13, 4:16 pm, salbefe salb...@gmail.com wrote:
Hello,
Only a question, athttp://pypi.python.org/pypi/ibm_db/there is a
Python DBI driver for DB2. Why web2py is still using ODBC?? Will not
be
http://academicearth.org/courses/building-dynamic-websites
Watch all the videos in the series. Lots of NEED TO KNOW stuff for all
those starting out.
I have web2py installed on a remote Debian server. When connecting via
my local Windows box, the admin is disabled for Web2py because of the
unsecure channel. I set up an SSH tunnel for the connection, and I've
created a private certificate authority for the SSL connection.
When starting the
On Thu, May 13, 2010 at 9:02 PM, Timothy Farrell tfarr...@swgen.com wrote:
While Rocket supports listening on multiple sockets, web2py does not. You
will need to run two separate instances of web2py (one for SSL, one
unencrypted) to do what you are asking.
-tim
Txs for the reply. Always
Hi, I have a file called ldap whit the following code:
class Ldap(object):
def __init__(self,usuario=None, passwd=None):
self.objLDAP = None
self.dir = 'xx.xx.xx.xx'
self.ldap_host = 'xxx.xx'
self.puerto = 389
self.AD_SEARCH_DN = 'OU=xxx Domain
I forget, I copy the file to web2py/gluon/contrib/login_methods and I
aggregate that whit
from gluon.contrib.login_methods.ldap import Ldap
yes,
i have also tried with sqlite3 and it didn't work. see how awesome
mysql is?
any postgresql users, does psql support this?
On 13 Mayıs, 20:37, Francisco Costa m...@franciscocosta.com wrote:
Thank you Mengu
I've converted my DB to MySQL. In SQLite didn't work.
On May 13, 3:48 pm, Mengu
thanks chef, great resource.
On 14 Mayıs, 00:28, b00m_chef r...@devshell.org wrote:
http://academicearth.org/courses/building-dynamic-websites
Watch all the videos in the series. Lots of NEED TO KNOW stuff for all
those starting out.
i support the idea.
On 13 Mayıs, 22:07, Jason Brower encomp...@gmail.com wrote:
I say we move forward with this one as it doesn't need so much work as
with the plugins. At least at first thought. It's just additional
metadata in the application. I think some simple xml/html would do the
I'm confused when to make apps. I'll be making a pretty decent size
website and it has over 30 tables. The site will have different
functionalities and for the most part i have only seen code for apps
that do two or one thing.
So do i make multiple apps. If so how do i know when to make a new
hello I have a form I would like to use multiple check boxes to select
data to use. I am not using any sql
an example of how I am generating the check boxes
TR(INPUT(_type=checkbox, name=browser), Browser),
TR(INPUT(_type=checkbox, name=pageDepth), Page Depth),
this is not the best way
On May 13, 8:51 pm, ciprian mephisto...@yahoo.com wrote:
thanks for trying to help. but i already spent two days trying to
figure it out. i can install web2py with no problems - but i dont have
too much experience withmod_wsgi(google doesnt help) no web2py
tutorials and i guess this is the
to build large app, you can:
1. split you tables over several models, like
db.py
db_000_user_management.py
db_001_portal.py
db_002_ecommerce.py
and so on.
2. split your code and html over several controllers:
default.py
portal.py
shop.py
views/default/*.html
views/portal/*.html
But the problem with web2py is that what if you don't want portal
models to execute when they are on the public portion of the site? But
the public depends on the portals models and visa versa. No matter
which way you hash it, your going to have a massive web2py spaghetti
on your plate with some
Massimo, we can take the ideas for plugin metadata and use it for
applications as well?
Change the name from plugincentral to web2pycentral. We can start an
open source version of the web2pycentral and decide who can work on
it.
--
Thadeus
On Thu, May 13, 2010 at 2:07 PM, Jason Brower
On Thu, May 13, 2010 at 23:07, Thadeus Burgess thade...@thadeusb.com wrote:
But the problem with web2py is that what if you don't want portal
models to execute when they are on the public portion of the site? But
the public depends on the portals models and visa versa. No matter
which way you
I agree.
On May 13, 9:02 pm, Thadeus Burgess thade...@thadeusb.com wrote:
Massimo, we can take the ideas for plugin metadata and use it for
applications as well?
Change the name from plugincentral to web2pycentral. We can start an
open source version of the web2pycentral and decide who can
Do we need any hosting? I can provide that if needed. I am using dreamhost and
have a virtual server there.
BR,
Jason
- Original message -
I agree.
On May 13, 9:02 pm, Thadeus Burgess thade...@thadeusb.com wrote:
Massimo, we can take the ideas for plugin metadata and use it for
I assume those tables are not all referencing each other but they can
be group based on their function and the groups can be organized in a
tree where the children may refer a table in the parent group. I would
create a module for each group of tables and have a function in the
module that takes
84 matches
Mail list logo