Nifty! Good luck!
BR,
Jason
On Thu, May 5, 2011 at 8:41 AM, pbreit pbreitenb...@gmail.com wrote:
Hey everyone, I am getting close to releasing the service I've been working
on and wanted to give you all the very first look. 100% Web2py underneath
the hood!
It's like eBay but the prices
VEry good, good luck!
are this based on e-store appliance?
I would buy this item http://cheekob.pricetack.com/item/25 but paypal button
raised an error...
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Thu, May 5, 2011 at 2:41 AM, pbreit pbreitenb...@gmail.com wrote:
Hey
Ouch, that's no good! It looks like I had a column whose type got messed up
when I had that migration problem yesterday. Fixed. Thanks for reporting.
Shipping to South America might be tricky but I'd be happy to look into it
and sell for my wholesale cost + shipping/customs/etc.
I looked at the e-store appliance a tiny bit but pretty much coded Pricetack
from scratch. At one point I was interested in building an open source
shopping cart on Web2py so perhaps I'll have another look.
db.define_table('things',
Field('title', 'string'),
)
db.define_table('photos',
Field('title', 'string'),
Field('image', 'upload', autodelete=True),
)
db.define_table('photos_things',
Field('thing_id', db.things),
Field('photo_id', db.photos),
)
Is there a way to
very nice, congrats and gud luck in your business...
the DIV is rendered fine in my tests, no need to add any prefix such
as '.html' or '.load' for it to work.
hmm ok, i have to try some more, maybe i can find out how to reproduce
this strange behavior
But having a LOAD in the controller generates an unnecessary ajax
call,
this was just for
I think this should be it:
query=db((db.things.id0)(db.photos_things.id==db.photos_things.thing_id)).select()
for row in query:
list = [row.things.title, row.photos_things.photo_id.image]
the loop is wrong. The below will be it.
list=[]
for row in query:
list.append([row.things.title, row.photos_things.photo_id.image])
But it will be the list with dublicates of thing? for example:
[[thing_1, photo_1],[thing_1, photo_2],[thing_1, photo_3],[thing_2,
photo_4],[thing_2, photo_5]]
But I need unique things with just one or zero photo per thing, like:
[[thing_1, photo_1],[thing_2, photo_4], [thing_3, None]]
On 5 май,
Congrats!.
+1 to this dog http://cheekob.pricetack.com/item/38
2011/5/5 Stifan Kristi steve.van.chris...@gmail.com
very nice, congrats and gud luck in your business...
--
http://martin.tecnodoc.com.ar
I .represent a field as follows:
db.auth_user.gender.represent=lambda i: db.aux_gender[i].concept[:1] if
i0 else '?'
db.auth_user.member_status.represent=lambda i:
config.member_status.get(i)[:1] or '?'
The first one works, and displays data in jqgrid as expected:'M','F'
This should make it more attractive to a wider audience, especially as
web2py has a decent feature list overall. I know web2py has a mantra
of retaining backward compatibility, but at what cost? Does it
complicate the code? Not a fair comment I know -- but look where it
got Microsoft. ;)
On May
I have SSNs in a table as text strings. I'm planning to use CRYPT() on
the web2py app fields that will store these SSNs.
define_table('identity_card'
,Field('person', 'reference auth_user')
,Field('id_type', 'reference valid_id')
Try:
define_table('identity_card'
,Field('person', 'reference auth_user')
,Field('id_type', 'reference valid_id')
,Field('id_number','string',requires=CRYPT()
,Field('id_prefix',default=str(request.vars.id_number)[:
4])
)
On May 5,
Not really. These changes made the code simpler and shorter.
On May 5, 6:53 am, Stodge sto...@gmail.com wrote:
This should make it more attractive to a wider audience, especially as
web2py has a decent feature list overall. I know web2py has a mantra
of retaining backward compatibility, but at
what a great work!
I just want to thank all developers for this wonderful framework which
is improving weekly: I can not understand why big media publishers are
still ignoring web2py and not aware about its growing user base.
carlo
On May 4, 11:09 pm, Massimo Di Pierro mdipie...@cs.depaul.edu
I work a lot with modules, so I have a question. I have a
'z_import_modules.py' model that would look something like this:
DEBUG = True
module1 = local_import('module1', reload=DEBUG)
module2 = local_import('module2', reload=DEBUG)
module3 = local_import('module3', reload=DEBUG)
obj1 =
I made a typo in my second 'z_import_modules.py' model:
obj1 = Object1()
obj1 = Object1()
Should be:
obj1 = Object1()
obj2 = Object2()
obj3 = Object3()
Sorry about that.
Almost. You cannot do do this:
self.env = Storage(globals())
self.cache = self.env.cache
self.request = self.env.request
self.response = self.env.response
self.db = self.env.db
self.obj1 = self.env.obj1
self.obj2 = self.env.obj2
but you
Thanks for clearing that up. I'll start rewriting my modules and let you
know how it all turns out.
I'm using a self join on one of my data tables, and need a validator
that makes sure a record isn't joined to itself. I also need to
combine it with 2 other validators, IS_NULL_OR and IS_IN_DB.
currently it looks like this:
db.mytable.myfield.requires=IS_NULL_OR(IS_IN_DB(db,'mytable.id'))
but
You will need your own. It may be easier to use the onvalidate
attribute of the crud.update/crud.create forms
On May 5, 8:29 am, Dave davidramsayreinh...@gmail.com wrote:
I'm using a self join on one of my data tables, and need a validator
that makes sure a record isn't joined to itself. I
Also, you might want default=uuid.uuid4 instead of default=uuid.uuid4(). I
believe the former will call the uuid4 function separately for every record
inserted (probably what you want), whereas the latter will generate a single
unique uuid only once per call to db.define_table (which presumably
good catch. Actually the safest thing is
default=lambda:str(uuid.uuid4())
since uuid4() returns an object, not a string.
On May 5, 9:10 am, Anthony abasta...@gmail.com wrote:
Also, you might want default=uuid.uuid4 instead of default=uuid.uuid4(). I
believe the former will call the uuid4
Very nice. Congratulations. Just added it to http://web2py.com/poweredby.
Anthony
Should have a 'quick tips and advices' section on the book for this kind of
stuff. May be a blockquote on DAL chapter. Too much information that get
lost in google group.
Need to be documented as soon we catch this.
Em 05/05/2011 11:17, Massimo Di Pierro massimo.dipie...@gmail.com
escreveu:
good
On Thursday, May 5, 2011 11:05:53 AM UTC-4, rochacbruno wrote:
Should have a 'quick tips and advices' section on the book for this kind of
stuff. May be a blockquote on DAL chapter. Too much information that get
lost in google group.
Need to be documented as soon we catch this.
I'm on
2011/5/4 Syed Mushtaq syed1.mush...@gmail.com:
Looks really beautiful :) Are you planning on open-sourcing it ?
Thanks
-Syed
On Wed, May 4, 2011 at 11:37 AM, Jason (spot) Brower encomp...@gmail.com
wrote:
It would be fun to put a widget for online radio.
embed
Hi Happy Rob,
If you want this to be flexible, I guess you would need something
more like this:
entrants: id, name
exams: id, descr
exam_entry: exam_id, entrant_id, total_scrore
questions: id, exam_id, question_num, question_text
options: id, question_id, option_text, score
answers: id,
I am a noob to web2py. I am working on a previously installed system
at a client site (not installed by me).
I upgraded the system from Ubuntu server 9.10 (karmic) to 10.04
(lucid). After reboot, I'm getting the following traceback from the
web2py server:
Error traceback
1.Traceback (most
Hi all,
I recently setup another instance of web2py for testing on a new
system, and noticed something strange with blocks.
Basically, I have three slightly different versions of web2py running:
1.89.3 (DEMO server), 1.91.6 (DEV server) and 1.95.1 which I just
installed with the auto-upgrade
Almost all of the spam emails I have to block on this list include a
link to the same web site
http://[somenumber]maza.com
what can we do? I can continue to block these emails one my one but
perhaps you have a better suggestion?
Massimo
Which web2py version? the latest web2py should be using pymysql and
not mysqldb.
On May 5, 11:41 am, dsa42 davidanguloperso...@gmail.com wrote:
I am a noob to web2py. I am working on a previously installed system
at a client site (not installed by me).
I upgraded the system from Ubuntu
On May 5, 2011, at 11:11 AM, Massimo Di Pierro wrote:
Almost all of the spam emails I have to block on this list include a
link to the same web site
http://[somenumber]maza.com
what can we do? I can continue to block these emails one my one but
perhaps you have a better suggestion?
I
Hello kasapo,
I do not completely follow you code. If I do, you have two blocks. The
code included in one of the blocks seems to extend a block included
in another block. I am unsure this is supposed to work. Anyway, let's
try figure out what has changed that broke and then we may be able to
It should be possible to do this. The way templates handle include files has
been broken. This is what it should be doing
PARENT
LOAD include_filename
CREATE PARSE TREE
EXTEND PARSE TREE TO PARENT
CONTINUE
In effect, the entire tree of the included file gets grafted back onto the
parent
I too have been contacted through it. No money yet, but I do get contacts.
On 05/03/2011 09:39 PM, Massimo Di Pierro wrote:
I did not know Ross (or I did not remember). That means there are even
more people doing experts4solution work than I thought.
Massimo
On May 3, 12:39 pm, Ross
I think it's 1.76.5
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.5 (2010-03-11 15:19:08)
Database drivers available: SQLite3
I also think that the probley is that Ubuntu 10.04 installed pythin
2.6. Somehow, that installation ruined the MySQLdb
I agree this Plumo.
I want a facebook clone or other web site targeted to community XYZ
is not an idea worth any money.
The ideas worth money are those that translate directly into code that
you would not know how to write yourself.
We all have good ideas that do not carry on because have no
You should upgrade. That version is more than one year old. That
problem has been fixed.
Massimo
On May 5, 2:43 pm, dsa42 davidanguloperso...@gmail.com wrote:
I think it's 1.76.5
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.5 (2010-03-11
First off -- let me say that my usage of the templating in this case
is somewhat peculiar, and if they are not supposed to work like this,
that is fine.
After reviewing my app, I only have one instance of code like this,
and it is vestigial and should be removed anyhow. But I thought it
strange
I have an application which uses the function numpy.zeros to create a
very big array (~16500 x 16500) with the command:
data = numpy.zeros( (lgos,lgos), dtype=float)
This causes a MemoryError ticket in web2py. However when I run the
same function as a python module (outside web2py) it finishes
Take a look at the ``template.Content.__str__`` method, this is what is
responsible for flattening the tree.
Calling ``str()`` on any instance of Content effectively flattens it to
text, since there is only text in the parent tree, it has no knowledge of
any blocks that might have existed in the
Here's perhaps a better example of when the problem occurs.
I've posted the needed files on pastebin.
views/default/index.html
http://pastebin.com/eqyegpQH
views/bare.html
http://pastebin.com/jT8hEASR
views/right-col.html
http://pastebin.com/ziL9V55p
views/base.html
I have reverted the change the causes the problem (r1748). There must
have been a reason for the change but I do not remember it and there
is no detail in the log.
If anybody remembers why I changed:
-content.append(str(t.content))
+content.append(t.content)
in gluon/template.py
I do not think so although there may be less memory available. Apache,
if you use, may set restrictions.
On May 5, 3:00 pm, Kostas M kmo...@hotmail.com wrote:
I have an application which uses the function numpy.zeros to create a
very big array (~16500 x 16500) with the command:
data =
https://rocketship.it/
The problem is that the code uses (or used) inconsistent case. Old versions
were forgiving about this. New versions are less forgiving because this soon or
later causes problems.
You have
db.define_table('idsChecked',SQLField('idChecked'))
and somewhere else you use 'idchecked'.
First thing
thanks Guys! made the change :)
On May 5, 11:10 am, Anthony abasta...@gmail.com wrote:
On Thursday, May 5, 2011 11:05:53 AM UTC-4, rochacbruno wrote:
Should have a 'quick tips and advices' section on the book for this kind of
stuff. May be a blockquote on DAL chapter. Too much information
I can't figure out why I am getting this error:
Traceback (most recent call last):
File /var/web2py/gluon/restricted.py, line 181, in restricted
exec ccode in environment
File /var/web2py/applications/init/models/0_settings.py
https://pricetack.com/admin/edit/init/models/0_settings.py,
Sorry to the group. I had to rereate my account so the earlier
messages in this thread got deleted.
Massimo, when I upgrade and restart, I'm now getting these errors:
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.95.1 (2011-04-25
Thanks for the responses.
It doesn't seem to be the case with different case. Sorry, I didn't
write this app. Here is what I get on a find:
12255433 128 -rw-r--r-- 1 root root 125292 Apr 6 2010 ./
controllers/test.py.1
find . -not -name *.pyc -not -name *.py -not -name *.JPG
Hi,
I have a submenu pb width (too small), where is the class web2py-menu-
vertical?
because if I try to add ul_class = 'my-class' and li_class = 'my-
class', they are assigned to top-level menu and
submenu remains with li class = menu-expand-web2py and ul class =
web2py-menu-vertical
eg in
Try the following code:
##
#!/usr/bin/python
import sys
import time
sys.path.append('/Users/pcode/Desktop/mongodb_test/web2py')
from gluon.dal import DAL, Field
db = DAL('mongodb://127.0.0.1:5984/db')
db.define_table('m_test',
Field('name','text'),
I see a few problems:
- It should be =MENU(...), not MENU=(...)
- The arguments should be separated by commas, not spaces.
- _lu_class should be ul_class.
So, try:
{{=MENU(response.menu,_class='sf-menu', ul_class='my-class',
li_class='my-class')}}
Anthony
On Thursday, May 5,
Cool -- web2py is up to #11 on the list. :-)
On Wednesday, May 4, 2011 10:59:52 AM UTC-4, Massimo Di Pierro wrote:
http://list.ly/list/9E-tools-and-services-for-a-lean-startup
I re-cloned web2py from scratch. I was trying to avoid that but I guess it
was good practice.
I having been trying to send variables in a function .. this function
that is being called is then suppose to receive the vars from the ajax
function.. can you help me .. because the ajax is not passing
theparameters to the function insert_updatedb
var time_per_question=2;
This is pretty confusing code.
I'm not sure how these assignments are going to work:
{{=numBer}}=numBer
...
Normally you have something like num={{=row.num}}
In the dict() it looks like you are assigning strings. Normally it would
look more like this dict(numBer=numBer,...)
You definitely
my menu.py in my plugin no longer show up at the apps index and only
display in the plugin directory. Is this due to the new current
scope? Is their a way to get this working again or a current scope
toggle ? I have a lot of plugins that use this for menu's so any help
on this is very appreciated.
I spoke with Dave and this is solved. For further reference... there
was a problem when upgrading form the old web2py version. The .table
files were case independent and the new web2py is not.
The solution was:
1) delete databases/*.table
2) edit models/db.py and set
I doubt this is an issue with the new import or the new gluon.current
tread local object.
This is probably to the new use of subfolder in models.
Do you have subfolders under models/ ?
On May 5, 7:52 pm, Christopher Steel chris.st...@gmail.com wrote:
my menu.py in my plugin no longer show up at
Thanks for the help, Massimo. Web2py is really cool.
Correction:
function MGP(correct)
{
var time_per_question=2; //2 second to
answer one question
var numBer={{=request.vars.number}}; // the
number of questions in worksheet
var bonus= (numBer20)? 1: (numBer40)? 3 :(numBer60)? 7:
On Thursday, May 5, 2011 9:23:52 PM UTC-4, Massimo Di Pierro wrote:
I spoke with Dave and this is solved. For further reference... there
was a problem when upgrading form the old web2py version. The .table
files were case independent and the new web2py is not.
The solution was:
1)
I am having huge issues with the parameters cause they are not being
sent to the function at all...
def insert_updatedb():
session.correct=request.vars.correct
session.numquest=request.vars.number
session.time_quest=request.vars.total_time
session.mgp=request.vars.mgp
.
.
.
On May
fantastic news!
This should let me move a lot of code from models in to modules.
Bug fixed. The culprit is exactly the utf8 encoding. Javascript only
accepts Unicode string, not utf8. Most browsers stick to this
standard, only Chrome can accept utf8 also.
The fix is mentioned in http://code.google.com/p/web2py/issues/detail?id=260
By the way, my another fix to
#!/usr/bin/python
import sys
import time
sys.path.append('/Users/pcode/Desktop/mongodb_test/web2py')
from gluon.dal import DAL, Field
db = DAL('mongodb://127.0.0.1:5984/db')
#mongodb test set
#start with simple data types
#then inser into mongodb
db.define_table('m_test',
Wow this os great. This also looks like it may effect things like
autocomplete in ide's. For me, learning web2py, that was always one
thing that made it more difficult to learn. Not that it was hard.
On May 5, 7:25 pm, Plumo richar...@gmail.com wrote:
fantastic news!
This should let me move a
i tracked down the error with _TEST(), and created a solution. not at all
sure that this is correct for web2py, but you can see my patch in the ticket
i created: http://code.google.com/p/web2py/issues/detail?id=261
I apologize. Missed both patches.
You did not email them to me and I did not see them. :-)
Massimo
On May 5, 9:38 pm, Iceberg iceb...@21cn.com wrote:
Bug fixed. The culprit is exactly the utf8 encoding. Javascript only
accepts Unicode string, not utf8. Most browsers stick to this
standard,
Thanks Massimo, That was a really good call! I think I messed things
up while I was creating a prototype for an automated plugin creator
made some, um, adjustments so that my generated plugins where really
organized, but apparently not functioning as expected because I forgot
about that little
good.
I am lost about the second part. What is plugin generator?
On May 5, 10:17 pm, Christopher Steel chris.st...@gmail.com wrote:
Thanks Massimo, That was a really good call! I think I messed things
up while I was creating a prototype for an automated plugin creator
made some, um,
ajax('{{=URL('insert_updatedb')}}',
['numBer','mgp','total_time','correct'],'');
The above will not send the values of your variables as request variables.
The list submitted to the ajax() function is supposed to be a list of field
IDs (see
ok cool.. understood.. so how would i send variables to a function in
the controller?
On May 5, 10:49 pm, Anthony abasta...@gmail.com wrote:
ajax('{{=URL('insert_updatedb')}}',
['numBer','mgp','total_time','correct'],'');
The above will not send the values of your variables as request
On Friday, May 6, 2011 12:02:54 AM UTC-4, Resa wrote:
ok cool.. understood.. so how would i send variables to a function in
the controller?
You could pass them via the URL query string. The best way to do that is to
use the URL function to create the URL -- see
http://jsfiddle.net/
hi,
does anyone knows how to create spatial page load by ajax (like
facebook does in your home page)? i mean, i want to create my index
view is to load the table fields spatial not all, currently, i'm tryin
to modify the pagination and use it into ajax function.
e.g.
def __index(table):
if
Get something simple working and then add complexity.
This is very usefull, I use a lot! it is not just an editor, it is a tool
for Java Script testing..
Look this example http://jsfiddle.net/pborreli/pJgyu/
Note the 'run' button on top.. you can load your awn Java script modules..
very useful for testing
--
Bruno Rocha
[ About me:
82 matches
Mail list logo