I have a controller as follows
def stream():
id = request.args(0)
record = db.items[id]
if record:
return response.stream(record.filepath)
else:
return False
When playing in Totem Media Player, the files play, but when
attempting to seek ahead in the song it receives
Thank you Yarko for accepting my challenge and I am looking forward
to get your answer.
When I need to do this, I do it with making a memory-based table, and
SQLFORM or SQLFORM.factory, and do whatevervalidationI need.
I do not want to discuss your solution though personally I do not like
any
Hi,
I programmed a psychological experiment in flash and store answers/
results in a sqlite database using web2py (behind nginx server +
fastcgi) and pyamf. Everything seems to be all right when I test it,
but with as few as 2 simultaneous users I (sometimes) run into
trouble. A try with seven
I love you! Uninstall, reinstall, restart apache, worked a charm.
Would love you know what the probem was, but at least it's fixed now!
Thank you all for your input, I'm sure I'll be back with more problems
soon, this group is great!
On Apr 2, 4:07 am, Thadeus Burgess thade...@thadeusb.com
See
http://stackoverflow.com/questions/54998/how-scalable-is-sqlite
[...] there is nothing that prevents using an Sqlite database in a
multi-user environment, but every transaction (in effect, every SQL
statement that modifies the database) takes a lock on the file, which
will prevent other users
On Apr 1, 5:04 pm, carlo syseng...@gmail.com wrote:
sorry for this out of sync answer but though I managed some tricks
to tackle the (problem of) validation in pure html forms during these
years, I would be curious about an answer to Mengu's request of
showing how to make validation with
problems could be at any levels: flash, sqlite, pyamf, web2py
sqlite is known to have problems with concurrency..
what is the remote error that you get? (even if you consider it not too
important)
web2py usually creates tickets when is a problem at the web2py level (server
side execution code)
This problem is definitely at Sqlite level.
Everything seems to be all right when I test it == single user
but with as few as 2 simultaneous users I (sometimes) run into
trouble == database locked by transaction
Sqlite has no problems with concurrency, it is a simple, fast, very
high quality,
thank you Yarko for your always informative answers and for your
natural attitude to understand there are different point of views (I
wish I had someone like you in my company :-).
Just to come close to something I will show an example (though not
particularly smart):
my controller:
To Yarko latest post I did not read:
in either way you are doing this (db field type, or FORM-INPUT), the
way is similar:
totally agree.
One thing: I think it is never underlined enough that you do not
necessarily have to pass the form to the view so that having FORM +
requires helpers in the
Yay!
I have seen this happen before when attempting to switch between
easy_install and apt-get... egg files get left around, or easy_install
creates an egg and apt-get just installs source... so you end up with
two places and things get confused.
-Thadeus
On Fri, Apr 2, 2010 at 5:08 AM,
2.28.2
So it is a Totem issue and not a setting in Rocket?
If so, that is fine by me.
-Thadeus
On Fri, Apr 2, 2010 at 6:54 AM, mr.freeze nat...@freezable.com wrote:
What version of Totem are you using? Looks like they fixed it by
buffering the downloaded portion locally on 2.28 and
On Apr 2, 10:32 am, Jonathan Lundell jlund...@pobox.com wrote:
I think I've seen an answer to this one, but I can't find it.
I've got a form with two Field's, both IS_IPV4(). The validation I'm after is
that one or both must be present; the only invalid case is both of them null.
sort
Mengu:
I'd be glad to look at your IDE. The link is broken though.
I am not a power user, but a learner, and I use IDE as a way to
explore code.
On Apr 1, 10:51 pm, Mengu whalb...@gmail.com wrote:
yet another complex, powered by jetbrains ide. i think these guys know
how to develop but don't
Thank You Yarko,
but in the tools.py file I couldn't find the text string Change password
that is show on the second row in the Change password page.
auth.messages.submit_button = T('Submit')
I didn´t find any auth.messages in the tools.py file. When I tried to but
auth.messages.submit_button
There was talk about this a few months back, and I even have a dev
branch that does exactly this. There *are* some concerns, that's why I
have not yet submitted that to Massimo until I resolve GIL/locking/etc
issues.
On Apr 2, 12:07 am, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 1, 2010,
Thanks for the tip.
db('NOT %s' % (db.Record.Group_id!=ID |
db.Record.Name.belongs(List_of_names))).delete() works, but its
always nice to have alternatives (especially alternatives that don't
force you to find the boolean complement of the expression each time).
btw, its not biggy, but just to
It gives me the following error:
ImportError: No module named applications.mlinks.modules
On Fri, Apr 2, 2010 at 5:48 AM, mr.freeze nat...@freezable.com wrote:
I was able to create a new app, copy clienttools.py to the modules
directory and import with the code below. Perhaps there is an
I'm just curious and kindly want to remind logo problem at this moment, is that
a problem or website was hacked or website is supposed to do so?
Frank
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to
Kenneth -
On Apr 2, 2:20 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com
wrote:
Thank You Yarko,
but in the tools.py file I couldn't find the text string Change password
that is show on the second row in the Change password page.
This is because it is views/default/user.html which is
but that IDE has no web2py support, seems to have no Mercurial support
and also it is not free: thumbs down for PyCharm!
On 2 Apr., 01:38, mikech mp.ch...@gmail.com wrote:
Pycharm:http://www.jetbrains.com/pycharm/index.html
--
You received this message because you are subscribed to the Google
Frank, can you explain more? Why do you think it is hacked? I recently
moved servers so maybe your dns is old. What do you get when you ping
it?
On Apr 2, 3:09 pm, Frank thethinkbo...@gmail.com wrote:
I'm just curious and kindly want to remind logo problem at this moment, is
that
a problem or
I can't seem to get a custom validator to be called on a Field of type
'upload' when editing a record in appadmin. It works on the other text
fields or when inserting a new record.
The validator doesn't do anything yet, but here's the what I was
starting with to make sure it worked:
class
this is a preview, and until release you can request web2py support
and if you don't know, many ide-s are not free :)
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe
Frank thethinkbo...@... writes:
I'm just curious and kindly want to remind logo problem at this moment, is
that
a problem or website was hacked or website is supposed to do so?
Frank
very strange, this only happen in Firefox not in IE 8 and Chrome.my firefox is
3.6.2.
I can not post
Don't forget that idle has a file window, with a useful class browser
(and completion)... (vpython has made some nice contributions to
idle);
That with your favorite editor is not bad;
for quick html, css there is always:
http://htmledit.squarefree.com/
or for jquery:
Hi, Freeze,
my ping results which is normal:
C:\Documents and Settings\Administratorping www.web2pyslices.com
Pinging web2pyslices.com [76.73.68.69] with 32 bytes of data:
Reply from 76.73.68.69: bytes=32 time=216ms TTL=53
Reply from 76.73.68.69: bytes=32 time=220ms TTL=53
Reply from
is same problem from other people?
It works well for me, tested in Opera, Firefox and Konqueror.
Jose
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group,
A basketball player? Weird! Can you try clearing your browser cache to
see if it goes away?
On Apr 2, 3:39 pm, Frank thethinkbo...@gmail.com wrote:
Frank thethinkbo...@... writes:
I'm just curious and kindly want to remind logo problem at this moment, is
that
a problem or website was
That is... odd!
Looks normal here.
-Thadeus
On Fri, Apr 2, 2010 at 3:09 PM, mr.freeze nat...@freezable.com wrote:
A basketball player? Weird! Can you try clearing your browser cache to
see if it goes away?
On Apr 2, 3:39 pm, Frank thethinkbo...@gmail.com wrote:
Frank thethinkbo...@...
On Apr 2, 2010, at 12:25 PM, AchipA wrote:
There was talk about this a few months back, and I even have a dev
branch that does exactly this. There *are* some concerns, that's why I
have not yet submitted that to Massimo until I resolve GIL/locking/etc
issues.
It also occurs to me that I can
hi, freeze,
it goes away after I delete the cache of firefox, it really wired that I do not
know why, it only happen in web2pyslices.com not other sites and I never see
this basketball player before.
sorry for bothering you for my own troble.
Frank
--
You received this message because you
No problem. Maybe a file of the same name and path was cached before
dns had propagated fully.
On Apr 2, 4:28 pm, Frank thethinkbo...@gmail.com wrote:
hi, freeze,
it goes away after I delete the cache of firefox, it really wired that I do
not
know why, it only happen in web2pyslices.com not
Is there any way to determine the number of queries pending in a
transaction (before db.commit())
-Thadeus
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this
Do you have an __init__.py in your modules folder?
On Apr 2, 3:02 pm, Miguel Goncalves goncalvesmig...@gmail.com wrote:
It gives me the following error:
ImportError: No module named applications.mlinks.modules
On Fri, Apr 2, 2010 at 5:48 AM, mr.freeze nat...@freezable.com wrote:
I was able
yes I have one but it is empty.
On Fri, Apr 2, 2010 at 4:01 PM, mr.freeze nat...@freezable.com wrote:
Do you have an __init__.py in your modules folder?
On Apr 2, 3:02 pm, Miguel Goncalves goncalvesmig...@gmail.com wrote:
It gives me the following error:
ImportError: No module named
Mind that return False is the same as return False, in fact you must
return a dict() a string, a helper, a stream or anything else will be
serialized with str()
On Apr 2, 1:17 am, Thadeus Burgess thade...@thadeusb.com wrote:
I have a controller as follows
def stream():
id = request.args(0)
db.table.field1.requires=IS_NULL_OR(IS_IPV4())
db.table.field2.requires=IS_NULL_OR(IS_IPV4()) if request.vars.field1
else IS_IPV4()
On Apr 2, 10:32 am, Jonathan Lundell jlund...@pobox.com wrote:
I think I've seen an answer to this one, but I can't find it.
I've got a form with two Field's,
The issue is just a missing backet
db((db.Record.Group_id==ID)(!
db.Record.Name.belongs(List_of_names))).delete()
On Apr 1, 1:01 pm, Magnitus eric_vallee2...@yahoo.ca wrote:
Thanks for both replies :).
So, if ``db().select(db.Record.Name)`` acts like a tuple, then I can
do something like
I think this was fixed in trunk a couple of weeks ago.
Massimo
On Apr 2, 3:35 pm, Chris crflei...@gmail.com wrote:
I can't seem to get a custom validator to be called on a Field of type
'upload' when editing a record in appadmin. It works on the other text
fields or when inserting a new
the process that checks for the crontab runs but it does not spawns
additional processes if nothing to do.
On Apr 2, 4:14 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 2, 2010, at 12:25 PM, AchipA wrote:
There was talk about this a few months back, and I even have a dev
branch that
do not know.
On Apr 2, 4:46 pm, Thadeus Burgess thade...@thadeusb.com wrote:
Is there any way to determine the number of queries pending in a
transaction (before db.commit())
-Thadeus
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post
Thank you Yarko.:-)
Massimo
On Apr 2, 5:23 pm, Yarko Tymciurak resultsinsoftw...@gmail.com
wrote:
Hi Kenneth -
Separately, I'm sending Massimo a patch which I think fixes this.
Either wait for the update and try it, or temporarily replace your
gluon/tools.py file (only if you have a very
On Apr 2, 2010, at 5:14 PM, mdipierro wrote:
db.table.field1.requires=IS_NULL_OR(IS_IPV4())
db.table.field2.requires=IS_NULL_OR(IS_IPV4()) if request.vars.field1
else IS_IPV4()
Ah, that's the one I remember. Now I have to decide between this approach and
Yarko's.
Nice to have two
You should have a __init__.py in all folders in path:
applications/__init__.py
applications/mlinks/__init__.py
applications/mdlinks/modules/__init__.py
make sure they are there. That is the only possible problem.
On Apr 2, 7:08 pm, Miguel Goncalves goncalvesmig...@gmail.com wrote:
yes I have
I am not sure I completely understand but if you have time to
experiment and want to send me a patch or web2py_ajax.html I will be
happy to look at it and probably inlcude it.
On Apr 1, 3:59 pm, DenesL denes1...@yahoo.ca wrote:
This means that any script included in the returned ajax call data
#1
form.accepts is a filter that moves request.vars into form.vars after
parsing and also populates form.errors. accepts should never be called
twice. Why do you want to do it? I am sure there is a different way to
achieve what you need.
#2
web2py retrieves sessions before your application code
becase form=SQLFORM() is already a server side representation of the
DOM. It is not an abstract object.
after form=SQLFORM() you are supposed to be able to do
form.element(name)[attribute](value) for example and other DOM
manipulations.
If form were a more abstract object and if its DOM
Did we ever have them? I do not think I remove everything, or did I?
On Apr 1, 3:26 pm, Thadeus Burgess thade...@thadeusb.com wrote:
And why did we lose our classes
.title
.comment
.help
??
-Thadeus
On Thu, Apr 1, 2010 at 2:24 PM, Thadeus Burgess thade...@thadeusb.com wrote:
So why
Can you send me a patch?
On Apr 1, 3:27 pm, Thadeus Burgess thade...@thadeusb.com wrote:
And what about ``ol``, ``p``, ``fieldset`` ?
-Thadeus
On Thu, Apr 1, 2010 at 2:26 PM, Thadeus Burgess thade...@thadeusb.com wrote:
And why did we lose our classes
.title
.comment
.help
??
h. I think it may be this line in newcron.py
logging.info('WEB2PY CRON (%s): %s executing %s in %s at
%s' \
% (ctype, app, task.get('cmd'),
os.getcwd(), datetime.datetime.now()))
should it be .warn instead of .info?
You just need to specify the format. It will make for you both
validator and represent attribute.
#model
db.define_table(food,
Field(desc, string),
format='%(desc)s'
)
db.define_table(ate,
Field(food_id, db.food)
)
#controller
form=crud.update(db.ate,ate_id)
On Apr 1, 2:22 pm, Avik
On Apr 2, 2010, at 5:33 PM, mdipierro wrote:
h. I think it may be this line in newcron.py
logging.info('WEB2PY CRON (%s): %s executing %s in %s at
%s' \
% (ctype, app, task.get('cmd'),
os.getcwd(),
On Apr 2, 2010, at 5:18 PM, mdipierro wrote:
the process that checks for the crontab runs but it does not spawns
additional processes if nothing to do.
Understood. But when it has something to do, if it's lightweight (like expiring
sessions), why run another process ever?
I'm only talking
I agree. This should be an option but we do not have it yet.
Massimo
On Apr 2, 7:43 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 2, 2010, at 5:18 PM, mdipierro wrote:
the process that checks for the crontab runs but it does not spawns
additional processes if nothing to do.
654,000 from Indonesia
Abd Shomad
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more options,
On Apr 2, 7:14 pm, mdipierro mdipie...@cs.depaul.edu wrote:
db.table.field1.requires=IS_NULL_OR(IS_IPV4())
db.table.field2.requires=IS_NULL_OR(IS_IPV4()) if request.vars.field1
else IS_IPV4()
Thank you for this, Massimo - this is a nice, compact idiom for using
existing validators; I hadn't
Yes. No one solution is obviously better. It is good to have some
options.
Massimo
On Apr 2, 8:45 pm, Yarko Tymciurak resultsinsoftw...@gmail.com
wrote:
On Apr 2, 7:14 pm, mdipierro mdipie...@cs.depaul.edu wrote:
db.table.field1.requires=IS_NULL_OR(IS_IPV4())
On Apr 2, 2010, at 8:05 PM, mdipierro wrote:
Yes. No one solution is obviously better. It is good to have some
options.
Yarko's approach allows for a more general error message, at the expense of not
associating it with a particular input field. In my case, I think I see a way
of phrasing
You can also do
db.table.field1.requires=IS_NULL_OR(IS_IPV4())
db.table.field2.requires=IS_NULL_OR(IS_IPV4())
def at_least_one(form):
if not form.vars.field1 and not form.vars.field2:
form.errors.field2='cannot be empty if field1 is empty'
form.errors.field1='cannot be
Hi Yarko,
thanks for all your work recently. I am particularly interested in
your work about layout.html. It is already in trunk and it will be in
stable but I face some recurrent problems (even with previous version)
and perhaps we can do even better.
every time I make a new app and
That was it.
I was missing : applications/__init__.py
It works now.
Thanks to both of you!!!
On Fri, Apr 2, 2010 at 5:21 PM, mdipierro mdipie...@cs.depaul.edu wrote:
You should have a __init__.py in all folders in path:
applications/__init__.py
applications/mlinks/__init__.py
Hi Jose,
This program does what you ask:
http://www.web2py.com/sc2009
You can find source and examples:
http://www.web2py.com/examples/static/sc/sc_dna_talk.pdf
http://www.web2py.com/examples/static/sc/web2py.app.dna.w2p
This is part of a tutorial I gave at Supercomputing 2009.
Massimo
On
On Apr 2, 11:06 pm, mdipierro mdipie...@cs.depaul.edu wrote:
You can also do
db.table.field1.requires=IS_NULL_OR(IS_IPV4())
db.table.field2.requires=IS_NULL_OR(IS_IPV4())
def at_least_one(form):
if not form.vars.field1 and not form.vars.field2:
form.errors.field2='cannot be
On Apr 2, 11:31 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
Hi Yarko,
thanks for all your work recently. I am particularly interested in
your work about layout.html. It is already in trunk and it will be in
stable but I face some recurrent problems (even with previous version)
65 matches
Mail list logo