@anthony
for now Linkfindr IE compatibility is not my prio ;)
@lyn2py
it took 3 months
@massimo
I thanked Yarko because he helped me a lot more than 3 years ago when I was
a beginner with web2py,
I wasn't aware about current top 10, I wrote this email really fast, looks
like I haven't given i
Hi,
Long time no see. Some of you may remember me, I was very active here :)
This is my profile http://experts4solutions.com/e4s/default/expert/21
I am really gratefull for help of Web2py community. Without you, guys, this
wouldn't be possible.
In one sentence: I created a startup using WEB2PY.
A
>and nothing more!
>There is no prompt and I cann't input anything - seems it hangs.
it works perfectly, if you want to use the same console after starting
the server you can start web2py in background:
python web2py.py -i 127.0.0.1 -p 8001 &
and than run
python web2py.py -S app -N
for python
nope, afaik
Bruno, Pbreit, the discussion was starting to get really interesting,
please don't let it go OT
On Fri, Jan 7, 2011 at 9:43 PM, Stefaan Himpe wrote:
> first they laugh at you then they fight you then you win
http://www.mail-archive.com/web2py@googlegroups.com/msg32314.html
:)
> Comments below the original post for full explanation.
ok, I thought there is smth more there that I missed ;)
2011/1/4 Branko Vukelić :
> Look at the comments below the post.
?
hi,
that is a very good question. April, f.e:
http://www.mail-archive.com/web2py@googlegroups.com/msg34855.html
--
Kuba
+1
that is a good solution indeed, thanks for the fast response
--
Kuba
or do I really have to go with onaccept= in every form I created.. and
disable compute field
Looks like I have a problem. I want to compute field like this and it
works FINE:
Field('logo_small','upload',writable=False,readable=False,widget=uploadWidget,compute=lambda
r: THUMB(r)),
def THUMB(r):
try:
image=r['logo']
except:
#yes, None is deleting my thumbnail
+1
nevermind. my problem was dbio=False in the wrong place.
I have
form=crud.update(db.table,id)
and then in the view
{{=form.custom.begin}}
{{form.custom.widget.name}}
{{=form.custom.widget.logo}}
{{=form.custom.widget.twitter_link}}
{{=form.custom.submit}}
{{=form.custom.end}}
but this way the form is not getting populated, also values that I
ommit i
> Field('assigned_to','list:reference auth_user'),
>
> In the case of 2, how to represent as 'db.auth_user.first_name' for multiple
> users
requires=IS_IN_DB(db,'auth_user.id','%(first_name)s',multiple=True)
> requests per second to Django with Apache and mod_wsgi:
> http://nosql.mypopescu.com/post/1409154668/disqus-scaling-the-worlds-largest-django-application
exactly and already mentioned in this thread
>Real WORLD scalable implementations are VERY CUSTOM thing.
>like for example:
>http://python.m
Web2py is waiting for the first brave ONE to (be able to) GO and try
to SCALE. I believe this person will get a lot of attention and
resources from community and Massimo himself.
Real WORLD scalable implementations are VERY CUSTOM thing.
like for example:
http://python.mirocommunity.org/video/188
> Can session files be turned of ?
you can turn off sessions by
session.forget()
and also store sessions in the database
that is how it works on GAE. In every default db.py you have:
if request.env.web2py_runtime_gae:
db = DAL('gae')
session.connect(request, response, db=db)
> But damn. The list is wrong in so many ways.
+1
@michele
yeap, IP-based security sucks.
@massimo
this sounds good, although stealing creditentials/intercepting
communication is most probable in the networks hidden over NAT - hence
in this case it will not work.
--
Kuba
If you have a router, then your machine's MAC address will go no
further than that. Your router's MAC address will show up in packets
sent further upstream, until that too is replaced by the MAC address
of the next device - likely either your modem or your ISP's router.
So your MAC address doesn't
guys, I think that was intended as sarcasm by Massimo..
stay cool ;)
--
Kuba
> a solution can be putting a new action similar to the following in the
> controller:
>
> @auth.requires_login()
> def onlogin_add_permission():
> if not auth.has_permission(auth.user_group(auth.user.id), 'create',
> 'my_table'):
> auth.add_permission(auth.user_group(auth.user.id),'create',
> does the following work for you?
>
>
>
> def onlogin_add_permission():
> if not auth.has_permission(auth.user_group(form.vars.id), 'create',
> 'my_table'):
> auth.add_permission(auth.user_group(form.vars.id),'create','my_table')
>
>
> auth.settings.login_onaccept = onlogin_add_permissi
ok, if it disappers on unpluging network, that it is not that issue, sorry
Just a hyphotesis, I've seen the issue you are describing many times.
It always disapears when I move from Rocket to Apache/WSGI. It seems
to me that it got smth to do with handling static files.
--
Kuba
one more thing, w/o registration process I cannot do:
auth.settings.register_onaccept=lambda
form:auth.add_permission(auth.user_group(form.vars.id),'create','my_table')
how to handle it then? I tried to search for the place in the code
where the group for the user is created but I cannot find it e
thx, really, it saved my time, it works that way
--
Kuba
Hi, long time no see, guys
I did exact thing like in the book
from gluon.contrib.login_methods.linkedin_account import LinkedInAccount
auth.settings.login_form=LinkedInAccount(request,KEY,SECRET,RETURN_URL)
(yeap I had inserted key etc, and yes, I haven't sent it in my ticket
to all the public, I
huge part creation is about modifying smth that was previously there.
there are a lot of things that can be used in a bad or good
way(photoshop?). and yes, they are still on the market. let's leave
the choice between good and evil to the people. I don't really care SO
MUCH about "clone" feature(alt
yes, but I am on the GPRS connection now, I am not able to test it so
the results be reliable, I will try to do that asap
"sometimes, once every few hits, page loads significantly slower
weirdest thing is when you re-click the link it loads instantly, when
you left it working to load on itself, it is slow.. like 4 to 8
seconds"
some people report more, 20 seconds, 1 minute.
Tim, can you reproduce this? Have you trie
>> therefore your problem is not the same that some other
>> problems experienced with apache/WSGI.
exactly,
> look at Iceberg, Rahul, MikeEllis in this thread
I was just pointing out that I am not the only one seeing
"rocket-specific-problem"
> You said: "I moved to apache/WSGI from Rocket. For me the problem
> disappears." therefore your problem is not the same that some other
> problems experienced with apache/WSGI.
look at Iceberg, Rahul, MikeEllis in this thread
>You also said you cache.ram all
> requests. Can you try remove the cac
On Wed, Jul 21, 2010 at 1:54 PM, mdipierro wrote:
>> On the other hand, Kuba, who started this thread, later said "I moved to
>> apache/WSGI from Rocket. For me the problem disappears." So I guess there
>> is a standalone rule #5: Use apache/WSGI etc. instead of the built-in Rocket
>> ?
>
> I
I used it but I encountered limitations when using access tokens to
get api data, this is paid service by jainran then, so the question is
will it still be cool to be in trunk?
> The web server was restarted and the database reset in between each ab
> test
but AFAIK ab tends to be unreliable.. it is also my conclusion from
benchmarking rocket vs cherrypy
try httperf?
> - Both my develop machine (windows xp home edition with latest ServicePack),
> and my production machine (a Linux), have such issue occasionally. Both
> environments uses web2py's built-in server, rocket or cherrypy. Both serve no
> more than 10 people or so.
> @Massimo: You can check your pr
> What could it be?
let's rule things out
> - cron when it runs spikes CPU usage. DO NOT USE. In production run
not the case. no cron, no cpu spikes
> - web2py session lock (the the same user can only access one page at
I have session.forget..
> - sqlite lock (depending on the query and the comp
cultural clubs, coffe places, museums, organizations, theatres,
old-school cinemas, ngos are the actors here. they set they info,
profile etc, and add events they organize. so people from Warsaw can
have information about those events - fast and easier than facebook or
(overloaded with ads and to m
Hi, people,
I would like to present you WRSZW project
http://wrszw.pl
it is about events in Warsaw, capital of Poland, fully non-commercial
initiative of places in my city.
polish only but english is coming,
web2py rocks. it was a pleasure to make it happen :)
--
Kuba
I had prepared some mini-portal, I have 1000 unique visits a day
but there is a performance issue
bandwidth is ok
memory is ok
processor load is ok
cache.ram is set for almost all of the queries, and is set for 1 hour
but
sometimes, once every few hits, it loads signifacantly slower
weirdest thi
Hi, selecta
Do you have a fixed version?
--
Kuba
this appliance is awfully bugged with indentation errors more than 40
errors inside?
--
Kuba
ok, maybe howesc!=cfhowes, sory ;) I thought it is yours.
--
Kuba
hey, howesc
If you could provide working application package w/o facebook keys of
course it would be neat because I did not manage to get your slice
fully working.
--
Kuba
hi, MCM
the web2py community is very much interested in facebook graphApi
intergration with web2py, can you make it plugin/model?
I use some graph api calls in my applications but it is simple token
exchange, no integration with app. but I know the subject, maybe I can
help.
thx for all your effo
I mean with db.insert for example
still think the question is little different than in this thread:
"How to upload a file without using SQLFORM"
http://groups.google.com/group/web2py/browse_thread/thread/9f22f1d8c04b1b69?pli=1
because I am asking about doing it in controllers without providing
f
somewhere in my controllers I have:
pic=fetch("https://graph.facebook.com/"+str(event['id'])+"/picture?access_token="+access_token)
I get pic: jpeg stream - in response,
but how do I upload a picture from some url directly to the db?
--
Kuba
thx
I do this know and it is much better than from appadmin:
auth.settings.register_onaccept=lambda
form:auth.add_permission(auth.user_group(form.vars.id),'create','ctm_table1')
maybe this is why no one encountered this so far - everyone is doing
all this stuff automatically
although the workarou
THE PROBLEM IS ABOUT APPADMIN AND RENDERING DEFAULT CRUD ON
AUTH_PERMISSION TABLE.
to reproduce:
1: initialize new app
2: add a table in db.py
3: go here: http://127.0.0.1:8001/app/appadmin/insert/db/auth_permission
and check whether you can assign permissions to your new table in
dropbox(table na
from my experience with pyamf:
I got the same, my conclusion was
web2py process restart is needed. for me it started to work after
rebooting web2py. don't know why and if it is a coincidence or not.
--
Kuba
I get service not found when using this:
@service.amfrpc3('testing_domain')
def addvalues(a,b): return a+b
from client:
from pyamf.remoting.client import RemotingService
client =
RemotingService('http://127.0.0.1:8001/warsawbackpanel/default/call/amfrpc3')
service = client.getService('testing
sory, I've missed previous thread about it
http://docs.djangoproject.com/en/dev/releases/1.2/
"Support for multiple database connections in a single Django instance."
django is catching up ;)
--
Kuba
On Thu, May 6, 2010 at 9:37 PM, mdipierro wrote:
> There is something being planned. A lot of what used to be in T3
> (modules/t2.py) is not in web2py core.
>
>
(modules/t2.py) is NOW in web2py core.
> I tried rebooting the server but after some time it starts to consume
> a lot of memory again. There's only one user for now
do you have some kind of automated actions(like xml-rpc calls, js
scripts using json-rpc) and you forgot to disable sessions for this
actions with session.forget?
you can safely extract new version into your old web2py version folder
although it is recommended to do the backup of your applications
anyway.
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
> I meant to enter user and password from a form
??
you mean you want to authenticate to your database with creditentials
from auth_user table???
--
Kuba
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
Can you show us the line with a query code?
--
Kuba
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
SUMMARIZE:
could we improve web2py documentation dramatically w/o creating a lot
of new content just by tagging?
FULL:
After Massimo's post in "Preventing login after Auth.register; Adding
groups to the register form"
>It is in the book but it is called form_factory. web2py support both
>names
> form=SQLFORM.factory(db.auth_user,Field('group1')):
btw this
( I mean concatenating/passing "table definition" like f.e
"db.some_table" along with Field('some_field') in the
SQLFORM.factory() )
is not in the book(?) and it doesn't look google-able to me anywhere else
this maybe obvious from p
Massimo,
Is it possible to have this as a trigger/checkbox in admin as an
OPTIONAL behaviour for all errors(not only LOAD components)?
this way we left the default behaviour and allow alternate.
I personally hate opening new tab/window for error browsing since it
almost always takes <1sec to fin
I don't think so, please post :)
--
Kuba
On Thu, Apr 15, 2010 at 4:49 AM, DenesL wrote:
> Nobody else? Need more time?
> Speak up or else... I will will post the answer.
>
>
> --
> To unsubscribe, reply using "remove me" as the subject.
>
hi, thadeus
there was whole thread about this:
http://www.mail-archive.com/web2py@googlegroups.com/msg10329.html
--
Kuba
On Wed, Apr 7, 2010 at 10:55 PM, Thadeus Burgess wrote:
> Does the DAL support database ENUM types?
>
> -Thadeus
>
> --
> You received this message because you are subscr
Hi,
here they are:
http://web2py.com/book/default/section/12/9
+ use newest stable
--
Kuba
--
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 e
Massimo,
Isn't this the same issue?
http://groups.google.com/group/web2py/browse_thread/thread/a907fdafd432636c?pli=1
--
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
> You can also do 'python web2py.py -S newapp' and it will prompt to
> create the app if it doesn't exist
shouldn't this go into python web2py.py -h in a "-S" section
?
or we could add new option "-g" (generate) witha description "creates
new application"
just wondering.
--
Kuba
--
You recei
hi
you don't need python to do that
you just have to create basic app folder structure
like here:
http://gluonframework.wordpress.com/2010/03/02/shell-only-web2py/
or just
# cp welcome/ your_app/
--
Kuba
On Tue, Apr 6, 2010 at 5:58 PM, Mengu wrote:
> Hi,
>
> Is it possible to create new
Hi
Web2py-binary-runs-it's-own-python.-you-have-to-use-source-version.
On 4 Apr 2010 15:08, "Sky" wrote:
Hi,
I've installed Python 2.6 and web2py in my windows.
but web2py runs under python 2.5 ( i didn't installed 2.5 ), so my
installed site-packages are not available for web2py.
any one can h
I remember massimo's answer in this subject, calling them yes - with
executesql, but writing no, as they are db platform specific
--
Kuba
--
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.
I need to draw charts realtime
I do:
$("#plot").load('http://127.0.0.1:8001/monitoring/default/plotme2',
'', call2back);
in plotme2 I have:
=PLOT(..
Which is javascript HELPER from Massimo's appliance
I am loading the site with js code but javascipt is not getting
executed - so I don't get to s
I mean your example for month/year/day seems fine but there is a
problem with time
--
Kuba
--
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
but this
IS_DATE(format=T('%H:%M:%S'))
gives me 00:00:00
where in db I have
14:39:23
why?
--
Kuba
--
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,
Hi
in datatables
datetime is displayed like this:
2010-03-26 13...
by default so i cannot see minutes and seconds
How to change this behaviour?
I have this problem with appadmin but also when using sortable table plugin
I tried setting bAutoWidth but either it doesn't work or I do smth wrong
So /var/www..
--
Kuba
--
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, visit thi
yes, there may be no "home" in Debian, but the proper user always have
some directory assigned in /etc/passwd
mysql:x:116:122:MySQL Server,,,:/var/lib/mysql:/bin/false
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send
web2py application are higher level. Like php scripts in www
directory. They are edtable. They are apps within web2py. They are
isolated and independent. They sometimes contain sqlite data inside.
web2py is about user-developers. So in some way applications are "user
data". Applying default securit
There are two type of "apps":
the core, web2py itself
applications that runs in the web2py environment. Those have to be
editable. This is a hard case, since web2py is "kind of an OS itself",
this should be solved with /var.
--
Kuba
--
You received this message because you are subscribed to t
you expect overhead from this? ;)
def benchmark2():
return dict(data="test")
--
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
> I am assuming that in all your tests you did not use web2py. I
wrong assumption. I even published my model&controller at the
beginning of this thread.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...
> ach! I meant to say: web2py.com
nice one.
yes. stability and funcionality over speed. I just wanted to learn
where are the borders(and how to benchmark properly).
--
Kuba
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to
ALL POWER I CAN GET FROM quad core Xeon @ 2.33GHz
ONLY SOME STABLE RECORDS HERE:
Request rate: 929.0 req/s (1.1 ms/req) QUAD CHERRYPY
Request rate: 877.6 req/s (1.1 ms/req) QUAD ROCKET
Request rate: 1478.0 req/s (0.7 ms/req) CHERRYPY SOLO
Request rate: 1544.2 req/s (0.6 ms/req) ROCKET SOLO
QUAD
One instance of each, with 10 calls in a connection as it is closer to
reallife scenario:
(numbers speak for themselves)
CHERRYPY:
r...@kubatron:/home/kuba/httperf-0.9.0/src# ./httperf --hog --server
192.168.0.1 --port=8000 ==uri=/vae/default/benchmark2
--num-conns=1 --num-calls=10
httperf -
>
> My point here was about the general web2py population rather than your
> "thing". No offense intended, but you have a special case. web2py handles
> web-services but that is not it's primary function.
yes, true, I was just explaining my httperf thinking
>I think Massimo wishes
> to primari
On Fri, Mar 19, 2010 at 2:48 PM, mdipierro wrote:
> Can you also do me a favor? Can you benchmark sneaky.py (in web2py/
> gluon/)? In my tests it was faster than cherryby and I thought rocket
> was an improvement over it.
ok, as soon as I get back to my testing environment again
--
You received
>Just looking over the httperf command, Kuba used --num-calls=1 This would not
>be an accurate real-world test because it creates a new connection for every
>request whereas most >browsers span requests over only a few connections.
>Nicholas Piel's test used --num-calls=10 for testing HTTP/1.1
I like Rocket too. I would like it to be better than Cherrypy
--
Kuba
--
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.
>Are these numbers consistent with Tim numbers? Could this be dues to a
>different memory usage?
1. Tim?
2. I have a lot of free memory while testing
I wrote email to an author of the blog entry about wsgi webserver
benchmarks - Nicholas Piël
http://nichol.as/benchmark-of-python-web-servers
In
the last one is doubled rocket solo w/o a header..
--
Kuba
--
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...@googlegro
I've changed methodics a bit so I repeat my measurments for ROCKET at
the end of the file.
Methodics: Increase rate till errors show
@Massimo
as you can see quad cherrypy is faster than quad rocket. but when you
look closer to "SOLO" comparision you can see that both servers are
hitting SAME WALL
I've changed methodics a bit so I repeat my measurments for ROCKET at
the end of the file.
Methodics: Increase rate till errors show
@Massimo
as you can see quad cherrypy is faster than quad rocket. but when you
look closer to "SOLO" comparision you can see that both servers are
hitting SAME WALL
with 4x Rocket via Pound all is ok, with Rocket Solo I get 4703
addrunavail errors(in httperf this should never happened and it
renders this benchmarks useless) per 1 connections. I think this
might be about linux tweaking. Do ANYONE have some more experience
with setting sysctl environment for
@Tim
do you have the fix already in launchpad? if yes can you tell me how
to replace rocket with the newest one inside web2py?
--
Kuba
--
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.co
voice over ip data engine ( routing, billing, gui-backend, etc )
--
Kuba
--
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+unsubs
http://web2py.com/book/default/section/11/12?search=pound
http://www.apsis.ch/pound/
kernel is 2.6.31-14-server not PAE of course.. sorry for mistakes.
I didn't mentioned but I had also executed some sysctl and ulimit
tweaking before benchmarking.
I ran tests again with the same configuration v
> I was going to say "extend/include" not import
and even this is not true as I see now for small layout
--
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 grou
1 - 100 of 214 matches
Mail list logo