[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

[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

[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 =

[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

[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

[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

[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 >

[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 >> >> va

[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", >

[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/Go

[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 -

[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

[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] 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

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

2011-04-04 Thread pk
massimo.dipie...@gmail.com wrote: This looks like a user error something like f(a=1,a=2) look into the ticket for line 58 of /var/www/web2py/applications/ Kundenportal/views/bewertung/mitarbeiter.html after conversion to .py On Apr 4, 3:47 pm, pk peter.kirch...@youngdesigners.de wrote: hi

[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 peter.kirch...@youngdesigners.de wrote: hmmm, but i some blogs the people means, that should be a bug in python 2.6. this is my code (line 58): div class=portfolio     pimg src={{=URL('static','images

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

2011-04-04 Thread pk
])}} rel=prettyPhoto[photos] title= {{=angestellte.first_name}} {{=angestellte.last_name}}img src={{=URL(r=request,f='download',args=[angestellte.picture])}} alt= class=i-portfolio p-left//a /div {{pass}} On 4 Apr., 23:00, pk peter.kirch...@youngdesigners.de wrote: here is a link of the bug:http

[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 peter.kirch...@youngdesigners.de wrote: my view: div class=portfolio    pimg src={{=URL('static','images/bewertung.png')}} alt=WOGRA Consulting - Bewertung//p    div class=clear/div

[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 jlund...@pobox.com wrote: On Apr 4, 2011, at 2:04 PM, pk wrote: my view: div class=portfolio   pimg src={{=URL('static','images/bewertung.png')}} alt

[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 jlund...@pobox.com wrote: On Apr 4, 2011, at 2:04 PM, pk wrote: my view: div class=portfolio   pimg src={{=URL('static','images/bewertung.png')}} alt=WOGRA Consulting - Bewertung//p   div

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

2011-04-04 Thread pk
. The 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 peter.kirch...@youngdesigners.de wrote: here is a link of the bug:http://bugs.python.org/issue3219 On 4

[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 massimo.dipie...@gmail.com wrote: Hello pk, I do not fully understand the problem. I understand

[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 jlund...@pobox.com wrote: On Mar 8, 2011, at 9:45 AM, DenesL wrote: On Mar 8, 6:03 am, pk

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

2011-03-08 Thread pk
jlund...@pobox.com wrote: On Mar 8, 2011, at 9:45 AM, DenesL wrote: On Mar 8, 6:03 am, pk peter.kirch...@youngdesigners.de wrote: 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

[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: li class=bluea href={{=URL(r=request, c='default', f='user/logout')}}spanlogout/span/a/li my main-controller: @auth.requires_login() def index(): return dict(message=main/index)

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

2011-03-07 Thread pk
i need very badly help... thanks On 7 Mrz., 11:59, pk peter.kirch...@youngdesigners.de wrote: hi together, i have a problem with a redirection. i will not redirected to this link! in my view i have this: li class=bluea href={{=URL(r=request, c='default', f='user/logout')}}spanlogout/span

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

2011-03-07 Thread pk
nobody? On 7 Mrz., 13:22, pk peter.kirch...@youngdesigners.de wrote: i need very badly help... thanks On 7 Mrz., 11:59, pk peter.kirch...@youngdesigners.de wrote: hi together, i have a problem with a redirection. i will not redirected to this link! in my view i have this: li

[web2py] Re: if user going logged out

2011-01-16 Thread pk
=)    return dict(form=auth()) Bruno Rocha http://about.me/rochacbruno/bio 2011/1/13 pk peter.kirch...@youngdesigners.de 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

[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] 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: if user is logged out

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

[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 peter.kirch...@youngdesigners.de

[web2py] Re: need help with db table

2011-01-07 Thread pk
no help??? On 6 Jan., 17:38, pk peter.kirch...@youngdesigners.de 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 peter.kirch

[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 peter.kirch...@youngdesigners.de 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-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 denes1...@yahoo.ca wrote: It works for me. Maybe you had those values in the DB. On Jan 5, 5:51 pm, pk peter.kirch...@youngdesigners.de wrote: hi thanks for your help but i still

[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 peter.kirch...@youngdesigners.de wrote: no i tested it now with a clear table, but i can

[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 peter.kirch...@youngdesigners.de wrote: this combination should not be more than one time in the db

[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: need help with db table

2011-01-05 Thread pk
nobody??? On 5 Jan., 11:49, pk peter.kirch...@youngdesigners.de 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 'freund'. here is my table

[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

[web2py] Re: onlinestatus

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

[web2py] Re: onlinestatus

2011-01-04 Thread pk
')) On 4 Jan., 16:40, Richard Vézina ml.richard.vez...@gmail.com wrote: The model are missing for db.online Richard On Mon, Jan 3, 2011 at 5:13 PM, pk peter.kirch...@youngdesigners.de wrote: hi together, i have a function for the onlineuser: usersall=db(db.online.last_visittime.time

[web2py] Re: onlinestatus

2011-01-04 Thread pk
another table for example friends. On 4 Jan., 21:04, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok and how do you fill up this table? By the way SQLField is deprecated... Use Field() instead. Richard On Tue, Jan 4, 2011 at 2:43 PM, pk peter.kirch...@youngdesigners.de wrote

[web2py] Re: onlinestatus

2011-01-04 Thread pk
4, 4:46 pm, pk peter.kirch...@youngdesigners.de wrote: @auth.requires_login() def keepalive():     import time     db(db.online.id0).delete() #evtl. weglassen     if auth.user.id:         if db(db.online.user_id==auth.user.id).count()==0: db.online.insert(user_id=auth.user.id

[web2py] onlinestatus

2011-01-03 Thread pk
hi together, i have a function for the onlineuser: usersall=db(db.online.last_visittime.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

[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: div{{=XML(%s%s % (str(foto_edit.custom.widget.image).split([)[0], '/div'))}}/div Click here to upload: {{=foto_edit.custom.submit}} {{=foto_edit.custom.end}} how can i handle the

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

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

[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: 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 peter.kirch...@youngdesigners.de 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

[web2py] Re: manual login-form

2010-12-13 Thread pk
can nobody help me? On 12 Dez., 23:44, pk peter.kirch...@youngdesigners.de 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: div id=contenttext pform action= enctype

[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 peter.kirch...@youngdesigners.de 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

[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] 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: div id=contenttext pform action= enctype=multipart/form-data method=posttabletr id=auth_user_email__rowtd class=w2p_fllabel

[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

[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] Re: User login in jquery colorbox

2010-12-11 Thread pk
, Luther Goh Lu Feng elf...@yahoo.com 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 someone with more experience can help. On Dec 12, 12:34 am, pk peter.kirch...@youngdesigners.de wrote: hi

[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' li class=page_itema class=loginframe href={{=URL(r=request, c='default', f='user')}}Anmelden/a/li how can

[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] 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: problem with global variables

2010-06-30 Thread pk
():     session.test = 5     return None On 30 Giu, 07:42, pk peter.kirch...@youngdesigners.de 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     test = 5     return None how can i

[web2py] Re: problem with global variables

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

[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 peter.kirch...@youngdesigners.de wrote: thanks massimo: i still get errors here my model: import time from naoqi import ALBroker from naoqi

[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 peter.kirch...@youngdesigners.de wrote: does session work with: session.broker = ALBroker(pythonBroker,BrokerIP,BrokerPORT,RoboIP,RoboPORT) than here i get

[web2py] Re: Initialize some code for other controllers

2010-06-22 Thread pk
, 10:49 am, Doug Warren doug.war...@gmail.com 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 peter.kirch...@youngdesigners.de wrote: hi together, i need

[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 =

[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});  

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

2010-06-01 Thread pk
, 2010 at 10:30 AM, pk peter.kirch...@youngdesigners.de 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 = $('naospeak').val();        $.ajax({ url: {{=URL

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

2010-06-01 Thread pk
super thanks a lot ;) On 1 Jun., 20:48, Candid roman.bat...@gmail.com 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 peter.kirch

[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: import external libraries

2010-05-25 Thread pk
mean by in the static file/ On May 25, 7:22 am, pk peter.kirch...@youngdesigners.de 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] Re: import external libraries

2010-05-25 Thread pk
thanks massimo i will try it On 25 Mai, 15:13, mdipierro mdipie...@cs.depaul.edu 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 peter.kirch...@youngdesigners.de wrote: thanks for the fast answer

[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 peter.kirch...@youngdesigners.de wrote: thanks massimo i will try it On 25 Mai, 15:13, mdipierro mdipie...@cs.depaul.edu wrote: web2py has a folder called site-packages. If you put your functions there you should

[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 the

[web2py] Re: User stack or queue

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

[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

[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 elff...@gmail.com 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
have anybody a solution? On 10 Mai, 16:06, pk peter.kirch...@youngdesigners.de wrote: hi thanks i send you my app to the gmail adress. peter On 10 Mai, 15:46, Vasile Ermicioi elff...@gmail.com 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 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 elff...@gmail.com wrote: here is a sketch: db.define_table('what_to_see',  Field('html_code', 'text'))

[web2py] Re: User stack or queue

2010-05-10 Thread pk
]http://www.web2py.com/book On May11, 12:21am, pk peter.kirch...@youngdesigners.de 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 the syntax? peter On 10 Mai, 18:17, Vasile Ermicioi elff

[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 peter.kirch...@youngdesigners.de wrote: hi, i am usual not a coder, i am a designer. and i

[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:25904] Re: file in table

2009-07-07 Thread pk
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, pk peter.kirch...@youngdesigners.de wrote: hi, how can i access

[web2py:25915] Re: file in table

2009-07-07 Thread pk
...@cs.depaul.edu wrote: I get that part. I still do not understand the problem without an example. On Jul 7, 6:10 pm, Yarko Tymciurak yark...@gmail.com 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 when

[web2py:25918] Re: file in table

2009-07-07 Thread pk
the browser shows me invalid function On 8 Jul., 02:26, mdipierro mdipie...@cs.depaul.edu wrote: /appname/default/download/ project.plogo.b61441d00860d943.4c6f676f2e706e67.png On Jul 7, 6:38 pm, pk peter.kirch...@youngdesigners.de wrote: for example i can read the child in the xml from

[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 '''?xml version=1.0 encoding=UTF-8? '''+itemlist%s/itemlist % xml(db(db[request.args (0)].id0).select().as_list()) ok this works

[web2py:25778] Re: xml (important)

2009-07-06 Thread pk
On Jul 6, 5:10 am, pk peter.kirch...@youngdesigners.de wrote: hi together, i have a function: def table_as_xml():      from gluon.serializers import xml      response.headers['Content-Type']='text/xml'      return '''?xml version=1.0 encoding=UTF-8?             '''+itemlist%s/itemlist

[web2py:25779] Re: xml (important)

2009-07-06 Thread pk
['Content-Type']='text/xml'       return '''?xml version=1.0 encoding=UTF-8?              '''+itemlist%s/itemlist % xml(db(db [request.vars.id].id0).select().as_list()) and  http://www.test.com/myapp/default/table_as_xml.xml?id=1 On Jul 6, 5:10 am, pk peter.kirch...@youngdesigners.de wrote: hi

[web2py:25782] Re: xml (important)

2009-07-06 Thread pk
/user.html'),) On Jul 6, 10:30 am, pk peter.kirch...@youngdesigners.de wrote: i need this url, when i use httpservice in flex On 6 Jul., 15:55, mdipierro mdipie...@cs.depaul.edu wrote: You can call but it ugly. http://www.test.com/myapp/default/table_as_xml.xml/user I suggest

[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 jlund...@pobox.com wrote: On Jul 6, 2009, at 8:50 AM, Fran wrote: On Jul 6, 4:47 pm, pk peter.kirch...@youngdesigners.de wrote: where can i find routes.py? cp web2py\routes.example.py

[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 peter.kirch...@youngdesigners.de wrote: ok thanks but i dont`t find the routes.example.py i use a mac On 6 Jul., 17:55, Jonathan Lundell jlund...@pobox.com wrote: On Jul 6, 2009, at 8:50 AM

[web2py:25791] Re: xml (important)

2009-07-06 Thread pk
/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 that's all. On Jul 6, 11:14 am, pk peter.kirch...@youngdesigners.de wrote: can you explain in more detailed. what i have

[web2py:25794] Re: xml (important)

2009-07-06 Thread pk
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 On Jul 6, 11:40 am, pk peter.kirch...@youngdesigners.de wrote: ok but now i get

[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 peter.kirch...@youngdesigners.de wrote: i also get this ticket Traceback (most

[web2py:/] Re: xml (important)

2009-07-06 Thread pk
\.html'),) #end On Jul 6, 11:57 am, pk peter.kirch...@youngdesigners.de 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/projectmember.xml throw a ticket On 6 Jul., 18:54, pk

[web2py:/] Re: xml (important)

2009-07-06 Thread pk
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 peter.kirch...@youngdesigners.de wrote: it still doesn`t work On 6 Jul., 19:59, mdipierro mdipie...@cs.depaul.edu wrote: one more try #begin routes_in

[web2py:24963] Re: xml

2009-06-25 Thread pk
: If you use flex you should install pyamf and use the @service.amfrpc to pass data back and forth. You can find an example in AlterEgo Massimo On Jun 24, 4:53 pm, pk peter.kirch...@youngdesigners.de wrote: hmm ok i understand. but i need a way to update my tables in web2py

  1   2   >