[web2py] Options Method not Allow in Rest

2017-04-19 Thread PK
When i request json with ajax delete method, i faced with method not allow. How should i try.Next problem is add {auth: auth_key} in get request i also get method not allow. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Re: Create Register on Restapi

2017-04-09 Thread PK
ogin from apps > and perhaps we can backport to web2py. > > Massimo > > > On Saturday, 1 April 2017 00:35:25 UTC-5, PK wrote: >> >> how can i register from mobile app rest client to web2py??? >> > @request.restful() def login(): respo

[web2py] Create Register on Restapi

2017-03-31 Thread PK
how can i register from mobile app rest client to web2py??? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subs

[web2py] RestApi

2017-03-24 Thread PK
@request.restful() def api(): response.view = 'generic.json' def GET(*args,**vars): patterns = [ "/wishBoxes[wishBoxes]", "/wishBoxes[wishBoxes]/{wishBoxes.name.startswith}", "/boxes[Details]/{Details.Title_id}" ] parser = db.p

[web2py] Emberjs web2py

2017-02-22 Thread PK
If i wanna use emberjs build dist folder with web2py how should i start. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because

[web2py] Re: Web2py Websocket in Rest

2017-02-17 Thread PK
I wanna use real time chatting application with web2py but my front end is android app.So i have to send Rest Json data.Should i use web2py and tornado something like web_socketmessaging.py or should i only use tornado. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Web2py Websocket in Rest

2017-02-13 Thread PK
i tried to use web2py as backend websocket and front end Android Java. CAN I USE websocket messaging in web2py to use real time application ???how should i generate Json data? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source c

[web2py] Re: Rest Json

2017-01-08 Thread PK
On Saturday, January 7, 2017 at 9:45:15 PM UTC, 黄祥 wrote: > > pls try : > ### Change user with email if username is disabled > ### Check patterns in > http://127.0.0.1:8000/application/controller/api/patterns.json > > ## curl > # GET > curl -X GET --user user:password -i > http://127.0.0.1:8000

[web2py] Re: Rest Json

2017-01-07 Thread PK
On Saturday, January 7, 2017 at 2:42:31 PM UTC, PK wrote: > > > > On Thursday, January 5, 2017 at 3:08:46 PM UTC, Leonel Câmara wrote: >> >> PK you need to tell the server you're posting JSON in content-type for >> instance using $.ajax >> >&g

[web2py] Re: Rest Json

2017-01-07 Thread PK
On Thursday, January 5, 2017 at 3:08:46 PM UTC, Leonel Câmara wrote: > > PK you need to tell the server you're posting JSON in content-type for > instance using $.ajax > > var somedict = {a: 1, b: 2}; > > > $.ajax({ > > type: "POST", > u

[web2py] Re: Rest Json

2017-01-04 Thread PK
On Wednesday, January 4, 2017 at 10:04:31 PM UTC, Anthony wrote: > > On Wednesday, January 4, 2017 at 4:42:28 PM UTC-5, 黄祥 wrote: >> >> with >> return response.json(list_of_records) >> >> it return a json format even we request it with *.xml >> curl http://127.0.0.1:8000/a/default/api/test.xml >>

[web2py] Re: Rest Json

2017-01-04 Thread PK
do: > > return response.json(list_of_records) > > Anthony > > On Wednesday, January 4, 2017 at 8:21:52 AM UTC-5, PK wrote: >> >> >> <https://lh3.googleusercontent.com/-4t1AwS6IGqU/WGz2i63928I/ACM/kWTXC_0piTgITvWyn-XQM6teWOjjeiWjACLcB/s1600/Good

[web2py] Rest Json

2017-01-04 Thread PK
Can i remove "content" from restapi return json ? it gives a little trouble when i m trying to get or post json object. -- Resources: - http://web2py.com - http://web2py

[web2py] Re: Retrofit and Web2py

2017-01-02 Thread PK
On Monday, January 2, 2017 at 5:29:32 AM UTC, Massimo Di Pierro wrote: > > Can you elaborate? > > On Sunday, 1 January 2017 23:16:57 UTC-6, PK wrote: >> >> {"content": [{"name": "Harry Potter and the Philosopher's Stone", "price&qu

[web2py] Web2py BackEnd Android Front End

2017-01-02 Thread PK
My Json Data is Like this . When i get it From android i can't get json data. but i used the same json data from other link it works well. Is web2py need some trick to

[web2py] Retrofit and Web2py

2017-01-01 Thread PK
{"content": [{"name": "Harry Potter and the Philosopher's Stone", "price": 1000, "id": 5, "stock": 700}, {"name": "Harry Potter and the Chamber of Secrets", "price": 1200, "id": 6, "stock": 1500}, {"name": "Harry Potter and the Prisoner of Azkaban", "price": 700, "id": 7, "stock": 800}]} is

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
behaviour that you are witnessing is therefore correct (and it > makes sense - why should you give two values to the same keyword > argument and get away with it). > > On Apr 4, 4:00 pm, pk wrote: > > > > > > > > > here is a link of the bug:http://bugs.

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
ok now it works fine ;) thanks for your help!!! peter On 4 Apr., 23:15, Jonathan Lundell wrote: > On Apr 4, 2011, at 2:04 PM, pk wrote: > > > > > my view: > > > > >   > >   > > > > {{for angestellte in mitarbeiter:}} >

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
oh ok i will try it, but why works that fine on my local system??? 8] it is both the same app / file On 4 Apr., 23:15, Jonathan Lundell wrote: > On Apr 4, 2011, at 2:04 PM, pk wrote: > > > > > my view: > > > > >   > >   > > > > {{for angest

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
hi massimo, but if it is a user error, why it works fine on my local system??? peter On 4 Apr., 23:04, pk wrote: > my view: > > >     >     > > {{for angestellte in mitarbeiter:}} >     >     src="{{=URL(r=request,f='download',args=[angestellte.pic

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
my view: {{for angestellte in mitarbeiter:}} {{pass}} On 4 Apr., 23:00, pk wrote: > here is a link of the bug:http://bugs.python.org/issue3219 > > On 4 Apr., 23:00, pk wrote: > > > > > > > > > hmmm, but i some blogs the people means, th

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
here is a link of the bug: http://bugs.python.org/issue3219 On 4 Apr., 23:00, pk wrote: > hmmm, but i some blogs the people means, that should be a bug in > python 2.6. > > this is my code (line 58): > > >     >     > > > On 4 Apr., 22:53, Massimo Di Pierro

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
py/applications/ > Kundenportal/views/bewertung/mitarbeiter.html after conversion to .py > > On Apr 4, 3:47 pm, pk wrote: > > > > > > > > > hi together, > > > on my local system (i use python 2.5) all works fine. > > but since i installed

[web2py] problems with python 2.6 (i think)

2011-04-04 Thread pk
hi together, on my local system (i use python 2.5) all works fine. but since i installed my app on the webserver (python 2.6.6) i get the follow error: 88.64.63.144.2011-04-04.21-57-50.b68db5d8-aa6c-497c-93f4-f596f726dbc4 Version web2py™ Version 1.94.6 (2011-03-27 18:20:38) Python Python

[web2py] Re: redirection to /default/user/profile

2011-03-08 Thread pk
nks for your help! On 8 Mrz., 19:06, Jonathan Lundell wrote: > On Mar 8, 2011, at 9:45 AM, DenesL wrote: > > > > > > > > > > > > > On Mar 8, 6:03 am, pk wrote: > >> hi massimo, > > >> the problem is if i click the link logout, i get redir

[web2py] Re: redirection to /default/user/profile

2011-03-08 Thread pk
here is my app: http://www.hs-augsburg.de/~pk/web2py/Kundenportal.zip i have no idea what the problem is... :( i hope somebody can help me badly... On 8 Mrz., 19:06, Jonathan Lundell wrote: > On Mar 8, 2011, at 9:45 AM, DenesL wrote: > > > > > > > > > > &

[web2py] Re: redirection to /default/user/profile

2011-03-08 Thread pk
hi massimo, the problem is if i click the link logout, i get redirected to the link: ...user/profile but this is wrong! i will redirected to the index page On 8 Mrz., 00:15, Massimo Di Pierro wrote: > Hello pk, > > I do not fully understand the problem. I understand the code but n

[web2py] Re: redirection to /default/user/profile

2011-03-07 Thread pk
nobody? On 7 Mrz., 13:22, pk wrote: > i need very badly help... > thanks > > On 7 Mrz., 11:59, pk wrote: > > > > > > > > > hi together, > > > i have a problem with a redirection. i will not redirected to this > > link! >

[web2py] Re: redirection to /default/user/profile

2011-03-07 Thread pk
i need very badly help... thanks On 7 Mrz., 11:59, pk wrote: > hi together, > > i have a problem with a redirection. i will not redirected to this > link! > in my view i have this: logout > > my main-controller: > @auth.requires_login() > def index(): >     r

[web2py] redirection to /default/user/profile

2011-03-07 Thread pk
hi together, i have a problem with a redirection. i will not redirected to this link! in my view i have this: logout my main-controller: @auth.requires_login() def index(): return dict(message="main/index") default-controller: def index(): if auth.is_logged_in(): redirect(URL(r=r

[web2py] Re: if user going logged out

2011-01-16 Thread pk
;myuser_id'] > > > def user(): > >    if request.args(0) == 'logout': > >        db(db.nao.userid==session['myuser_id']).update(db.nao.ipadress="") > >    return dict(form=auth()) > > > Bruno Rocha > >http://about.me/rochacbr

[web2py] if user going logged out

2011-01-13 Thread pk
hi one question: def user(): if request.args(0) == 'logout': query return dict(form=auth()) what is if i need there the auth.user.id??? this is my query: db(db.nao.userid==auth.user.id).update(db.nao.ipadress="") is this possible? if not how can i do this? peter

[web2py] Re: if user is logged out

2011-01-12 Thread pk
one question: def user(): if request.args(0) == 'logout': db(query).delete() return dict(form=auth()) what is if i need there the auth.user.id??? this is my query: db(db.nao.userid==auth.user.id).update(db.nao.ipadress="") On 12 Jan., 22:55, pk wrote: &g

[web2py] Re: if user is logged out

2011-01-12 Thread pk
super thanks so much! :) On 12 Jan., 22:45, Bruno Rocha wrote: > Ops, Sorry, Copy & Paste mistake! > > forget my last mail. > > This the code > > def user(): >     if request.args(0) == 'logout': >         #do something here >         db(query).delete() >     return dict(form=auth()) > > -- > >

[web2py] if user is logged out

2011-01-12 Thread pk
hi togehter, how can i edit my own commands (for example i will delete something in a db table) if user get logged out? where can i do this? thanks peter

[web2py] Re: need help with db table

2011-01-07 Thread pk
no help??? On 6 Jan., 17:38, pk wrote: > or just better: > how can i avoid this with the selection box: IS_IN_DB()? > because i will also not that friends.hauptperson == friends.freund > > i need help very badly... > thanks > > On 6 Jan., 17:24, pk wrote: > >

[web2py] Re: need help with db table

2011-01-06 Thread pk
or just better: how can i avoid this with the selection box: IS_IN_DB()? because i will also not that friends.hauptperson == friends.freund i need help very badly... thanks On 6 Jan., 17:24, pk wrote: > this combination should not be more than one time in the db table: > nueva_vido    

[web2py] Re: need help with db table

2011-01-06 Thread pk
11 5 nueva_vido makir 2011-01-05 23:47:54 False db.friends.freund.requires = IS_NOT_IN_DB(db(db.friends.hauptperson==request.vars.hauptperson),db.friend s.freund) On 6 Jan., 15:16, pk wrote: > no i tested it now with a clear table, but i can still add the same >

[web2py] Re: need help with db table

2011-01-06 Thread pk
no i tested it now with a clear table, but i can still add the same values On 6 Jan., 14:51, DenesL wrote: > It works for me. > Maybe you had those values in the DB. > > On Jan 5, 5:51 pm, pk wrote: > > > > > > > > > hi thanks for your help

[web2py] Re: need help with db table

2011-01-06 Thread pk
is it perhaps possible to solve it with: IS_EXPR ??? if yes, how? thanks On 5 Jan., 23:51, pk wrote: > hi thanks for your help but i still get this: > > friends.id      friends.userid  friends.hauptperson     friends.freund > friends.freundseit      friends.bestaetigt

[web2py] Re: need help with db table

2011-01-05 Thread pk
hi thanks for your help but i still get this: friends.id friends.userid friends.hauptperson friends.freund friends.freundseit friends.bestaetigt 9 5 nueva_vido makir 2011-01-04 18:09:46 False 11 5 nueva_vido makir 2011-01-05 23:47:54 Fals

[web2py] Re: need help with db table

2011-01-05 Thread pk
nobody??? On 5 Jan., 11:49, pk wrote: > hi, > i know that i can check one field with IS_NOT_IN_DB() > but i need the two fields which deposit not together in one row, > in my case 'hauptperson' and 'fr

[web2py] need help with db table

2011-01-05 Thread pk
hi, i know that i can check one field with IS_NOT_IN_DB() but i need the two fields which deposit not together in one row, in my case 'hauptperson' and 'freund'. here is my table: # ## Tabelle Freunde

[web2py] Re: onlinestatus

2011-01-04 Thread pk
> > On Jan 4, 4:46 pm, pk wrote: > > > > > > > > > @auth.requires_login() > > def keepalive(): > >     import time > >     db(db.online.id>0).delete() #evtl. weglassen > >     if auth.user.id: > >         if db(db.online.user_id==aut

[web2py] Re: onlinestatus

2011-01-04 Thread pk
e user from another table for example friends. On 4 Jan., 21:04, Richard Vézina wrote: > Ok and how do you fill up this table? > > By the way SQLField is deprecated... Use Field() instead. > > Richard > > > > > > > &

[web2py] Re: onlinestatus

2011-01-04 Thread pk
#x27;last_visit','integer')) On 4 Jan., 16:40, Richard Vézina wrote: > The model are missing for db.online > > Richard > > > > > > > > On Mon, Jan 3, 2011 at 5:13 PM, pk wrote: > > hi together, > > > i have a function for the o

[web2py] Re: onlinestatus

2011-01-04 Thread pk
can nobody help me??? On 3 Jan., 23:13, pk wrote: > hi together, > > i have a function for the onlineuser: > > usersall=db(db.online.last_visit>time.time()-dt) > (db.online.user_id==db.auth_user.id).select(db.auth_user.ALL) > return TABLE(*[TD(user.user_name) for user

[web2py] onlinestatus

2011-01-03 Thread pk
hi together, i have a function for the onlineuser: usersall=db(db.online.last_visit>time.time()-dt) (db.online.user_id==db.auth_user.id).select(db.auth_user.ALL) return TABLE(*[TD(user.user_name) for user in usersall]) but i will to get all the onlineuser which are friends of mine. here is my fr

[web2py] messages for community app - some examples?

2010-12-29 Thread pk
hi, i will create an app for a community. and i need now the messages function (inbox, sent...) have somebody experience with this? can somebody help me? thanks peter

[web2py] css handling at custom form

2010-12-27 Thread pk
hi together, i need very important help: i have this code example: {{=foto_edit.custom.begin}} Image file: {{=XML("%s%s" % (str(foto_edit.custom.widget.image).split("[")[0], ''))}} Click here to upload: {{=foto_edit.custom.submit}} {{=foto_edit.custom.end}} how can i handle the css for

[web2py] Upload files with accepting only (png, gif, jpg)

2010-12-21 Thread pk
hi, how can i realise this? thanks peter

[web2py] Re: reset password

2010-12-20 Thread pk
or better to customize it. for example: user_name: email: (button: reset) On 21 Dez., 04:00, pk wrote: > hi together, > > i hope somebody can help me. > > can i reset the password without the default/user/ > request_reset_password ? > i will create an own controller for t

[web2py] reset password

2010-12-20 Thread pk
hi together, i hope somebody can help me. can i reset the password without the default/user/ request_reset_password ? i will create an own controller for this for example reset/ request_reset_password is it possible? thanks peter

[web2py] Re: manual login-form

2010-12-13 Thread pk
can nobody help me? On 12 Dez., 23:44, pk wrote: > hi, > i hope somebody of you can help me very fast. > > how can i set the form-ID for the form (loginform) > > if i post the code {{=loginform}} > i get this code automaticly: > > > method="post"> cl

[web2py] manual login-form

2010-12-12 Thread pk
hi, i hope somebody of you can help me very fast. how can i set the form-ID for the form (loginform) if i post the code {{=loginform}} i get this code automaticly: E-Mail: Passwort:   Angemeldet bleiben Passwort vergessen?

[web2py] login form with a popup

2010-12-12 Thread pk
hi together, have somebody of you an example app or a code to make the login form with a popup like javascript colorbox for example?? thanks peter

[web2py] Re: User login in jquery colorbox

2010-12-12 Thread pk
how can i trap the submit button in this form? but in my view there is only {{=form}} peter On 12 Dez., 00:59, pk wrote: > thanks for your help, > but i am a beginner of web2py :( > can i send you perhaps my app and you tell me > what i have exactly to do? > that would be n

[web2py] Re: User login in jquery colorbox

2010-12-11 Thread pk
#x27;s not an ajax request. > > > On Sat, Dec 11, 2010 at 5:45 PM, Luther Goh Lu Feng > > wrote: > >> Yes, you are clearer now. I don't know the answer but maybe your login > >> should be an ajax submission using jquery's ajax calls. Maybe

[web2py] Re: User login in jquery colorbox

2010-12-11 Thread pk
hi, here are the pix. the loginview: http://www.hs-augsburg.de/~pk/pix/login.png after the user submit a redirect works in the colorbox: http://www.hs-augsburg.de/~pk/pix/redirect.png but this redirect should not be shown in the colorbox! i hop it is clearer? thanks peter On 11 Dez., 17:29

[web2py] User login in jquery colorbox

2010-12-11 Thread pk
Hi together, it works fine to display the login formular in my jquery colorbox. but now i have a question. if user login successfully, i get a refresh to the userpage in the little colorbox. but i will close the colorbox before refreshing with this js-command: $.colorbox.close() have anybody an i

[web2py] Re: in link i will post a string

2010-12-10 Thread pk
my js: var button = "Anmelden"; console.log(button); $.ajax({ url: "{{=URL(r=request,c='default',f='user')}}", button: button }); my default-controller: return(request.vars.button) but why is the return value: none ?? thanks

[web2py] in link i will post a string

2010-12-10 Thread pk
Hi together, i think it is a very small problem. i need a stringvariable that i post to the function user in my default controller when the user is clicking this link: string = 'Anmelden' Anmelden how can i do this? and how can i catch the string in the controller like this? def user(): m

[web2py] Re: problem with global variables

2010-06-30 Thread pk
but without session, it works. but i need for example broker in every controllerfunction (in each controller) On 30 Jun., 16:38, pk wrote: > does session work with: > > session.broker = > ALBroker("pythonBroker",BrokerIP,BrokerPORT,RoboIP,RoboPORT) > > than here i get

[web2py] Re: problem with global variables

2010-06-30 Thread pk
does session work with: session.broker = ALBroker("pythonBroker",BrokerIP,BrokerPORT,RoboIP,RoboPORT) than here i get an error On 30 Jun., 16:19, pk wrote: > thanks massimo: > i still get errors here my model: > > import time > from naoqi import ALBroker &g

[web2py] Re: problem with global variables

2010-06-30 Thread pk
1.28s On 30 Jun., 15:12, mdipierro wrote: > I think you want a session variable, not a global variable > > test=session.test > > def changingtest(): >     session.test = 5 >     return None > > On 30 Giu, 07:42, pk wrote: > > > hi together, > > &

[web2py] Re: problem with global variables

2010-06-30 Thread pk
;     session.test = 5 >     return None > > On 30 Giu, 07:42, pk wrote: > > > hi together, > > > i need help to solve this problem: i have a global variable in the > > model like: > > > test = None > > > def changingtest(): > >     global test

[web2py] problem with global variables

2010-06-30 Thread pk
hi together, i need help to solve this problem: i have a global variable in the model like: test = None def changingtest(): global test test = 5 return None how can i access to the variable test in every controllerfunction? thanks for your fast help peter

[web2py] Re: Initialize some code for other controllers

2010-06-22 Thread pk
10:49 am, Doug Warren wrote: > > > The normal way seem to be to add that code to a model file, but it > > will be visible/executed for all controllers in the application. > > > On Mon, Jun 21, 2010 at 5:34 AM, pk > > wrote: > > > hi together, > > >

[web2py] Initialize some code for other controllers

2010-06-21 Thread pk
hi together, i need help. i need an init to initialize some code like this (importing apis etc.): import time from naoqi import ALBroker from naoqi import ALProxy RoboIP = "192.168.0.101" RoboPORT = 9559 BrokerIP = "127.0.0.1" BrokerPORT = 999

[web2py] Re: calling a fuction from javascript (jquery)

2010-06-01 Thread pk
super thanks a lot ;) On 1 Jun., 20:48, Candid wrote: > For your example it's easier to use $.post: > > $.post("your_url", {naotext: naotext}) > > In NaoSpeak function on the server you can access naotext as > request.vars.naotext > > On Jun 1, 12:17 pm, pk

[web2py] Re: calling a fuction from javascript (jquery)

2010-06-01 Thread pk
t; > On Tue, Jun 1, 2010 at 10:30 AM, pk wrote: > > hi i need help, > > > how can i call a function from jquery with parameters for example: > > > $('nao_speak').click(function(event){ > >        event.preventDefault(); > >        var naotext = $

[web2py] calling a fuction from javascript (jquery)

2010-06-01 Thread pk
hi i need help, how can i call a function from jquery with parameters for example: $('nao_speak').click(function(event){ event.preventDefault(); var naotext = $('naospeak').val(); $.ajax({ url: "{{=URL(r=request,c='speak',f='NaoSpeak')}}", naotext});   console.log

[web2py] Re: import external libraries

2010-05-25 Thread pk
ok thanks and how can i start python 2.6 under windows? thanks massimo On 25 Mai, 15:52, mdipierro wrote: > I see you have a binary library. You must use the python version to > run web2py that you used to build the binary module. > > On May 25, 8:45 am, pk wrote: > > > &g

[web2py] Re: import external libraries

2010-05-25 Thread pk
in web2py.py or on top of the handler you use. > > Massimo > > On May 25, 8:19 am, pk wrote: > > > > > thanks massimo i will try it > > > On 25 Mai, 15:13, mdipierro wrote: > > > > web2py has a folder called site-packages. If you put your functions >

[web2py] Re: import external libraries

2010-05-25 Thread pk
thanks massimo i will try it On 25 Mai, 15:13, mdipierro wrote: > web2py has a folder called site-packages. If you put your functions > there you should be able to import them. > > On May 25, 8:11 am, pk wrote: > > > > > thanks for the fast answer. > > i mean

[web2py] Re: import external libraries

2010-05-25 Thread pk
t you mean by "in the > static file"/ > > On May 25, 7:22 am, pk wrote: > > > > > hi together, > > > how can i import other external libraries in web2py? is it possible to > > load up libs in the static file? > > can somebody give me an example? > > thanks > > > peter

[web2py] import external libraries

2010-05-25 Thread pk
hi together, how can i import other external libraries in web2py? is it possible to load up libs in the static file? can somebody give me an example? thanks peter

[web2py] Re: User stack or queue

2010-05-10 Thread pk
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

[web2py] Re: User stack or queue

2010-05-10 Thread pk
; > [1]http://docs.python.org/tutorial/ > [2]http://www.web2py.com/book > > On May11, 12:21am, pk wrote: > > > > > 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

[web2py] Re: User stack or queue

2010-05-10 Thread pk
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

[web2py] Re: User stack or queue

2010-05-10 Thread pk
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

[web2py] Re: User stack or queue

2010-05-10 Thread pk
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

[web2py] Re: User stack or queue

2010-05-10 Thread pk
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

[web2py] Re: User stack or queue

2010-05-10 Thread pk
thanks for the very helpful answer... On 10 Mai, 15:06, Vasile Ermicioi wrote: > start with planning: models, views and controllers :)

[web2py] User stack or queue

2010-05-10 Thread pk
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

[web2py:25918] Re: file in table

2009-07-07 Thread pk
the browser shows me invalid function On 8 Jul., 02:26, mdipierro wrote: > /appname/default/download/ > project.plogo.b61441d00860d943.4c6f676f2e706e67.png > > On Jul 7, 6:38 pm, pk wrote: > > > for example i can read the child in the xml f

[web2py:25915] Re: file in table

2009-07-07 Thread pk
art. I still do not understand the problem without an > example. > > On Jul 7, 6:10 pm, Yarko Tymciurak wrote: > > > I think pk may be doing xml databinding with flex, which Oracle and Postgres > > and IBM's DB2 support; > > > I was first made aware of it wh

[web2py:25904] Re: file in table

2009-07-07 Thread pk
gt; >   def download(): return response.download(request,db) > > than the URL is > >  http://hostname:port/[app]/[controller]/download/[filename] > > and filename is the one stored in db.mytable.myimage, not the original > filename. > > Massimo > > On Jul 7, 5:12 pm

[web2py:25898] file in table

2009-07-07 Thread pk
hi, how can i access to the url of a image which i load up in the table. because i have another application (not web2py) and read the table with xml. now i need to access to the file. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:/] Re: xml (important)

2009-07-06 Thread pk
matter of > getting the regex right. > I can help you but you may want to read about it in the book. It is > well documented. > > Massimo > > On Jul 6, 1:09 pm, pk wrote: > > > it still doesn`t work > > > On 6 Jul., 19:59, mdipierro wrote: > > >

[web2py:/] Re: xml (important)

2009-07-06 Thread pk
app/default/ > table_as_xml/$user\.html'),) > #end > > On Jul 6, 11:57 am, pk wrote: > > >http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember > > if i try this, this works fine > > but still:http://127.0.0.1:8000/2busy/default/table_as_xml/project

[web2py:25795] Re: xml (important)

2009-07-06 Thread pk
http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember if i try this, this works fine but still: http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml throw a ticket On 6 Jul., 18:54, pk wrote: > i also get this ticket > Traceback (most recent call last): &g

[web2py:25794] Re: xml (important)

2009-07-06 Thread pk
ote: > my mistake. try this > > #begin > routes_in=(('/myapp/default/table_as_xml/$user.html','/myapp/default/ > table_as_xml.xml/$user'),) > routes_out=(('/myapp/default/table_as_xml.html/$user','/myapp/default/ > table_as_xml/$user.html&#x

[web2py:25791] Re: xml (important)

2009-07-06 Thread pk
lace this text in it: > > #begin > routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/ > table_as_xml.xml/user'),) > routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/ > table_as_xml/user.html'),) > #end

[web2py:25787] Re: xml (important)

2009-07-06 Thread pk
can you explain in more detailed. what i have to do to change the routes.py On 6 Jul., 18:11, pk wrote: > ok thanks but i dont`t find the routes.example.py > i use a mac > > On 6 Jul., 17:55, Jonathan Lundell wrote: > > > On Jul 6, 2009, at 8:50 AM, Fran wrote: > >

[web2py:25786] Re: xml (important)

2009-07-06 Thread pk
ok thanks but i dont`t find the routes.example.py i use a mac On 6 Jul., 17:55, Jonathan Lundell wrote: > On Jul 6, 2009, at 8:50 AM, Fran wrote: > > > On Jul 6, 4:47 pm, pk wrote: > >> where can i find routes.py? > > > cp web2py\routes.example.py web2py\routes.

[web2py:25782] Re: xml (important)

2009-07-06 Thread pk
27;,'/myapp/default/ > table_as_xml/user.html'),) > > On Jul 6, 10:30 am, pk wrote: > > > i need this url, when i use httpservice in flex > > > On 6 Jul., 15:55, mdipierro wrote: > > > > You can call but it ugly. > > > >http://www.t

[web2py:25779] Re: xml (important)

2009-07-06 Thread pk
ponse.headers['Content-Type']='text/xml' >       return ''' >              '''+"%s" % xml(db(db > [request.vars.id].id>0).select().as_list()) > > and > >  http://www.test.com/myapp/default/table_as_xml.xml?id=1 >

[web2py:25778] Re: xml (important)

2009-07-06 Thread pk
s_xml(): >       from gluon.serializers import xml >       response.headers['Content-Type']='text/xml' >       return ''' >              '''+"%s" % xml(db(db > [request.vars.id].id>0).select().as_list()) > > and > >  http:

[web2py:25769] xml (important)

2009-07-06 Thread pk
hi together, i have a function: def table_as_xml(): from gluon.serializers import xml response.headers['Content-Type']='text/xml' return ''' '''+"%s" % xml(db(db[request.args (0)].id>0).select().as_list()) ok this works fine. but how can i create the weblink with .xml

  1   2   >