I had seen the alterego posting. but that is more from using a Table
instance. I am looking at true ORM capability where I create a class
with methods which act on the model/db. I am hoping if anyone can find
that snippet of code, its worth putting in the doc/manual/alterEgo
On May 6, 8:50 pm, Tha
are you talking about apache error log, httpserver.log, tickets of
console logs?
In the first case we have two apps for that:
http://web2py.com/appliances/default/show/14
http://web2py.com/appliances/default/show/27
I think the second is better.
On May 10, 11:06 pm, Jason Brower wrote:
> When I
you can already use pyqmf with web2py. I am not sure about rtmp. It is
not a protocol that should be encouraged. http already provide range
requests/partial content for streaming and it is not a proprietary
protocol.
Massimo
On May 10, 11:21 pm, elffikk wrote:
> will it be hard to add this in
>
will it be hard to add this in web2py?
http://code.google.com/p/amfast/source/browse/#svn/trunk/examples/messaging/python
or it is again a question for Tim? :)
I have used my software in both my web-dev company, my thesis, my
schoolwork, and in the 2 jobs I got after school. (I am in m y second
job.) I know they won't let me take screenshots, but I can ask if we
can use the company names. One is a pretty big one and quite the name
to have under your web
When I get errors in my logs I have to scour through the error folder
for the issues. It would be so totally awsome if I were able to see the
errors parse and looking snazzy in a texted based (console) error log
viewer. That way I can easily see the errors and what line they are on.
Unless there
it is a good idea but somebody has to implement that. It would be in
the new DAL, not current DAL, and it is not clear it is supported by
all backends. Were you doing to provide a list of databases that
support the double quotes with examples?
On May 10, 10:00 pm, Álvaro Justen wrote:
> On Sun, M
On May 10, 7:44 pm, greenpoise wrote:
> You seem to be concerned with the aesthetics for the most.
Admittedly, aesthetics is part of the issue, but it's not just about
aesthetics. When looking at a web framework, I (and many others) am
wondering, can it be used to build a sophisticated, high-traf
On Sun, May 9, 2010 at 00:38, mdipierro wrote:
> There are two problems:
> 1) order is reserved keyword.
Yes but about the quotes that I suggested? :-)
> 2) decimal types are treated as string internally and there for
> compute should be
>
> db.order.tipgranted.compute=lambda r:
> float(r['tota
assuming you expect an integer result:
db.order.tipgranted.compute=lambda r:
round(float(r['totalsale'])*float(r['tipvalue']))
On May 10, 8:27 pm, greenpoise wrote:
> Where does the round function goes on this one?
>
> > db.order.tipgranted.compute=lambda r:
> > float(r['totalsale'])*float(r['t
Does this apply to the dev environment as well? Just fire it up and
run it via localhost?
If that's the case, would you mind providing an example or the proper
documentation link to help me get started?
Also, since bulk inserts are now possible in GAE
http://groups.google.com/group/web2py/browse_
Where does the round function goes on this one?
> db.order.tipgranted.compute=lambda r:
> float(r['totalsale'])*float(r['tipvalue'])
On May 8, 11:38 pm, mdipierro wrote:
> There are two problems:
> 1) order is reserved keyword.
> 2) decimal types are treated as string internally and there for
>
A smarter approach could be not generate a ticket if the socket is
closed but I think still Graham objection would still be valid.
On May 10, 6:51 pm, Thadeus Burgess wrote:
> There are alot of these tickets being generated, roughly 10%, this is
> annoying from a prospective of attempting to dete
There are alot of these tickets being generated, roughly 10%, this is
annoying from a prospective of attempting to determine the tickets
that are real! Let alone the amount of files it is placing in the
errors folder quickly exceeds the recommended max file count for a
folder.
I wish it would at l
Got it, or so I think. I will continue working on my project to see if
I get it. Thanks
On May 10, 7:18 pm, mdipierro wrote:
> The easiest way is this:
>
> say you have
> db.define_table('data',Field('something'),Field('created_by',db.auth,default=auth.user_id,writable=False))
>
> make sure t
You seem to be concerned with the aesthetics for the most. My take is
this, there is the development part and there is the design part of a
web application. You can make any site look the same with any of the
frameworks you mentioned including web2py. You have to be good at CSS/
HTML and some photo
The easiest way is this:
say you have
db.define_table('data',Field('something'),Field('created_by',db.auth,default=auth.user_id,writable=False))
make sure to filter recods with db(db.data.created_by==auth.user_id)
before you list them.
and if not db.data[record_id].created_by==auth.user_id: redir
Good point. I guess I would revert the latest change to wsgibase()
let me me think about this some more.
On May 10, 5:48 pm, Graham Dumpleton
wrote:
> On May 10, 3:01 pm, mdipierro wrote:
>
> > Graham is right. The best we can do is catch
>
> > try:
> > data = src.read(size)
> > except:
> >
everything on GAE must be called via a URL (it must be a controller/
function). if you need to run it periodically look up how to do cron
on GAE and create your cron.yaml.
@auth.requires_membership() is your friend in this case to limit who
can call your controller. :)
i have several of these so
As far as I know it works well on GAE. The errors you get:
"Your routes.py has a syntax error. Please fix it before you restart"
indicates that there is an error in your routes.py.
If you post it we can help you isolate the problem.
Massimo
On May 10, 4:23 pm, Chris S wrote:
> Does routes.py w
Ok. Let me explain it better. I am trying to build an app. where
inspectors (construction) will entered gathered data. The thing is
that the inspectors are from different companies. I want the different
companies to see what they have gathered only.
Example:
Company A can only see what they gather
On May 10, 3:01 pm, mdipierro wrote:
> Graham is right. The best we can do is catch
>
> try:
> data = src.read(size)
> except:
> raise MySocketException
>
> and catch it later as I suggested above. What do you think?
You can't technically do either of the things you have suggested, ie.,
c
Does routes.py work on GAE? I've recently deployed an app which used
the 5-line routes.py from the book for routing robots.txt and
favicon.icon. I just wanted to get rid of that 100% error rate on
those two files. I recevied the following message. Only after
removing routes.py again did the app
Ok. It's a RAM issue.
the djangoeurope support answered me that:
Hello,
>>
>> I checked this and found the follow problem.
>> web2py needs more then 60 MB ram. I temporary increased the ram limit to
>> 100 MB and started the web2py with different number of threads.
>> With one thread you need 716
Anthony made some good points:
http://groups.google.com/group/web2py/msg/a40b27807edc8603
For now let's concentrate on one of them for now. If you have
developed software in web2py that you use internally in your company
but you cannot release it open source, would you let us know? Can you
tell us
In trunk, thanks. Please check it.
On May 10, 3:23 am, Iceberg wrote:
> Hi pals,
>
> gluon.tools.Mail is handy but it doesn't not contain the Date header
> of a mail. Some email system tend to suspect such email as spam
> because it is not like usual email client behavior.
>
> It is easy to fix.
Do you mean you want to limit which fields will be visible to users
when they register and edit their profile?
You need to use a custom auth_user table and set writable=False for
those fields they cannot edit, and readable=False for those that
should not be visible. For example:
db.define_table('
Hello thank you for replying to my message
I have not seen that, but it looks like exactly what I need
thank you
*cheers
Andrew
On Mon, May 10, 2010 at 10:47 AM, mr.freeze wrote:
> Have you seen this?:
> http://web2pyslices.com/main/slices/take_slice/29
>
>
> On May 10, 12:08 pm, Andrew E
In trunk, give it a try.
On May 10, 2:32 pm, Thadeus wrote:
> As soon as you post the fix I will update the web2py version and keep
> an ear out if anyone has any connectivity issues.
>
> Thanks.
>
> On May 10, 9:35 am, Thadeus Burgess wrote:
>
> > My original concerns are eased, as I thought 12
You make excellent points. I agree with all of them.
On May 10, 1:54 pm, Anthony wrote:
> All, thanks so much for your thoughtful responses -- very helpful and
> encouraging. I can see this is a very active, open, and supportive
> community, and I believe I will give web2py a try. (I followed
> M
As soon as you post the fix I will update the web2py version and keep
an ear out if anyone has any connectivity issues.
Thanks.
On May 10, 9:35 am, Thadeus Burgess wrote:
> My original concerns are eased, as I thought 120 people out of the
> 1000 that visited the site were getting errors [1], w
All, thanks so much for your thoughtful responses -- very helpful and
encouraging. I can see this is a very active, open, and supportive
community, and I believe I will give web2py a try. (I followed
Massimo's advice and posted a similar question on the ROR list, and
Massimo even popped up over the
annotation:
the project time is very short, i have no time to learn python perfect
in this short time.
when i will have more time than i read the book or the docu.
thanks peter
On 10 Mai, 20:41, pk wrote:
> hi,
> i am usual not a coder, i am a designer.
> and i normally using not python or web2py
hi,
i am usual not a coder, i am a designer.
and i normally using not python or web2py, but now we have a project.
thats the reason why i need help. and if nobody has time to help, it´s
also ok,
but i think a mailing list is also a possibilty to help others (also
beginners, in my case).
and i only
Hi peter, since you are a beginner of web2py even python, why not just
come back to learn Python [1] and then web2py [2]? Don't expect to
learn their "syntax" on a maillist. Please, cherish your time, as well
as others. If, after your syntax learning, you have some design
question or puzzles, feel
Have you seen this?:
http://web2pyslices.com/main/slices/take_slice/29
On May 10, 12:08 pm, Andrew Evans wrote:
> Hello I have been trying to set up web2py on debian etch using
> mod_wsgi with no luck
>
> Has anyone got this working if so can they write a tutorial. As I
> understand I need to co
Model:
db.define_table('table_1',
Field('field_1'),
Field('field_2')
)
Controller:
def index():
def magic(form):
form.vars.field_2 = form.vars.field_1
form = SQLFORM(db.table_1)
if form.accepts(request.vars, onvalidatio
Hello I have been trying to set up web2py on debian etch using
mod_wsgi with no luck
Has anyone got this working if so can they write a tutorial. As I
understand I need to compile Python25 or Python26 and mod wsgi from
source
I am doing a fresh install and hope to get this going as my last
attemp
Whenever I use authentication on its basic form:
1. Any user can register something I do not want.
2. Any user can see all the data
I want to be more specific and have control of the registration
process as to where I create the users and group they pertain to and
hence look at their specific dat
It worked perfectly.
On May 8, 11:38 pm, mdipierro wrote:
> There are two problems:
> 1) order is reserved keyword.
> 2) decimal types are treated as string internally and there for
> compute should be
>
> db.order.tipgranted.compute=lambda r:
> float(r['totalsale'])*float(r['tipvalue'])
>
> or
Hi,
I am newbie and I have written with the Example codes. But it does not
quite.
I can 'edit' but not 'add' and 'delete'.
What ist wrong or what is missing ?
Thanks and sorry for my englisch.
The following is part of the code:
--
Controller:
--
@service.json
ok thank you very much,
but i am a beginner of web2py and python.
what i have to do into a controller, what into the view?
how is the syntax?
peter
On 10 Mai, 18:17, Vasile Ermicioi wrote:
> here is a sketch:
>
> db.define_table('what_to_see', Field('html_code', 'text'))
> db.define_table('what
here is a sketch:
db.define_table('what_to_see', Field('html_code', 'text'))
db.define_table('what_to_see_queue', Field('user', db.users),
Field('when_allowed_to_see', 'datetime'))
if user_not_in_queue:
if last_user_allowed_time + 5minutes < time_now:
when_allowed_to_see = time_now
Hi,
i want to do a simple task:
def function_1():
var_field_1=request.vars.field_1
if var_field_1:
return var_field_1
db.define_table('table_1',
Field('field_1','string' ),
Field('field_2', default=function_1)
have anybody a solution?
On 10 Mai, 16:06, pk wrote:
> hi thanks i send you my app to the gmail adress.
> peter
>
> On 10 Mai, 15:46, Vasile Ermicioi wrote:
>
>
>
> > yes, if you already started it I can take a look at what you have
Thank you for the clarification.
Yanni.
On May 6, 2:58 pm, mdipierro wrote:
> They are all alias of each other. You should use Field. The other ones
> are there for backward compatibility.
>
> On May 6, 3:41 pm, Yanni wrote:
>
> > I am confused as to when to use
>
> > SQLField
> > Field
> > db.F
But, as has been pointed out, people might be confused or discouraged
by the look and feel of web2py.com, if all they want is easy, good-
looking websites/webapps. It's great that Massimo is making Drupal and
Wordpress templates to work with web2py. But we should strive to make
web2py.com, web2pysl
My original concerns are eased, as I thought 120 people out of the
1000 that visited the site were getting errors [1], which seems to not
be the case.
If I were to go to all of the trouble to install nginx, I might as
well stop using apache and install cherokee. I have been running my
blog on cher
It seems that the Python installed on that platform doesn't support
threads. I know of no way to lock down a process in *nix to say "You
can only have X number of threads." but that would be stupid. However,
compiling Python w/o threads is common to avoid GIL thread issues.
I'm not sure of
Seems that is it about permisions in threading? or maybe memory?
On Mon, May 10, 2010 at 4:04 PM, Albert Abril wrote:
> With djangoeurope.com you can set up local proxies, which allows you to
> run your own stand-alone web servers (for example lighttpd or Django
> development server).
> Well, I t
hi thanks i send you my app to the gmail adress.
peter
On 10 Mai, 15:46, Vasile Ermicioi wrote:
> yes, if you already started it I can take a look at what you have
With djangoeurope.com you can set up local proxies, which allows you to run
your own stand-alone web servers (for example lighttpd or Django development
server).
Well, I tryed to config web2py with rocket but i got some errors.
I opened a subdomain like: web2py.myhostname.org , and I opened a loca
yes, if you already started it I can take a look at what you have
ok, if user click on the link, link is disable or not display.
one user onetime in the queue. i haven`t experience with ajax only a
little bit with web2py
images should be an example. i can also show a message (it should be a
test that only the user which
is above in the queue can show a text, a im
no really, analyzing and planning is very important,
a few questions:
- what will happen if a user will click (refresh) twice on the link, will it
be added in the queue a few times? that means next to him will wait
times_added * 5minutes
- do you plan using ajax ?
- how will you add and store y
thanks for the very helpful answer...
On 10 Mai, 15:06, Vasile Ermicioi wrote:
> start with planning: models, views and controllers :)
start with planning: models, views and controllers :)
hi together,
i am a web2py and a python beginner. thats the reason why i need help.
I need help to implement an userqueue:
I have a link like "let`s go" for example. Every user who click the
link come into
a queue and then the first see (for a test) a picture for 5 minutes
(for example) after
th
Hi pals,
gluon.tools.Mail is handy but it doesn't not contain the Date header
of a mail. Some email system tend to suspect such email as spam
because it is not like usual email client behavior.
It is easy to fix. Just add a line after the line begins with
"payload['Subject'] = ..." as below:
as been mentioned - it is a pain if there is not a pure python lib (e.g.
MySQLdb) and no default installer
On May 10, 3:15 am, mdipierro wrote:
> What is your impression on web2py on windows?
> Is there any issue that is windows specific?
I use it on Windows. There don't seem to be any platform-specific
issues, and I think it is because python's cross-platform support is
good.
61 matches
Mail list logo