[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] 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] 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] 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] 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] 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:23508] Text

2009-06-07 Thread pk
Hi together, I have a Textfield and save the content in a table with ('text'). When i will show the content on a website, how can i show the br ? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:23515] Re: Text

2009-06-07 Thread pk
if the are in the stored data. text is always escaped. On Jun 7, 12:13 pm, pk peter.kirch...@youngdesigners.de wrote: Hi together, I have a Textfield and save the content in a table with ('text'). When i will show the content on a website, how can i show the br ? thanks

[web2py:23664] Delete Content with Security question

2009-06-09 Thread pk
Hi together, how can I delete a content (row) from the table with a security question. for example: Are you sure to delete the project? yes - no thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:23666] Reference in another table

2009-06-09 Thread pk
Hi, I´ve a table called project and i have another table called projectfile. How can i reference automaticlly the project.id in the table projectfile? this is my code, but it`s wrong: db.define_table('projectfile', SQLField('projectid', default=project.id, writable=False,

[web2py:23675] Re: Reference in another table

2009-06-09 Thread pk
ok i will try, thanks for your help On 9 Jun., 13:47, Fran francisb...@googlemail.com wrote: On Jun 9, 10:56 am, pk peter.kirch...@youngdesigners.de wrote: I´ve a table called project and i have another table called projectfile. How can i reference automaticlly the project.id

[web2py:23700] Re: Show only users Project

2009-06-09 Thread pk
') On Jun 9, 7:01 am, pk peter.kirch...@youngdesigners.de wrote: Hi, I've another question: Every user should upload files and i create a table called projectfile. db.define_table('projectfile',                 SQLField('userid', default=auth.user.id if auth.user else 0, writable=False

[web2py:23707] Re: Show only users Project

2009-06-09 Thread pk
),'project.pname','%(pname)s') else you do not have a user id. why are you still on 1.62? ;-) On Jun 9, 9:34 am, pk peter.kirch...@youngdesigners.de wrote: thanks but i get a now an error: Traceback (most recent call last):   File gluon/restricted.py, line 98, in restricted   File /Applications

[web2py:23712] Re: Show only users Project

2009-06-09 Thread pk
ok i`ve solved my problem with if auth.is_logged_in(): db.projectfile.projectname.requires=IS_IN_DB(db (db.project.userid==auth.user.id),'project.pname','%(pname)s') thanks On 9 Jun., 16:44, pk peter.kirch...@youngdesigners.de wrote: now i get the next error :( Traceback (most recent

[web2py:23713] Problem in 1.63.5

2009-06-09 Thread pk
Hi Massimo, I´ve problems when i login in the new version, i get the default page of web2py not my requested page. In 1.62 i haven`t got this problem. Here my code: @auth.requires_login() def index(): redirect(URL(r=request,c='menu',f='index')) ## #

[web2py:23715] Texteditor

2009-06-09 Thread pk
Hi, is there a possibilty to use a texteditor in the html-page (bold-font, newline ...) for the user and after submit it will save it in the table. i need it for an cms for example. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:23721] Re: Problem in 1.63.5

2009-06-09 Thread pk
/2busy/menu/index in the version 1.62 i have no problems, only in the current version thanks On 9 Jun., 17:47, mdipierro mdipie...@cs.depaul.edu wrote: Can you explain better? Is this is a prblem with the stable or the tunk version? On Jun 9, 10:17 am, pk peter.kirch...@youngdesigners.de

[web2py:23727] Re: Problem in 1.63.5

2009-06-09 Thread pk
Hi Annet, it seems to be the same problem. Peter On 9 Jun., 18:09, annet annet.verm...@gmail.com wrote: Peter, Aren't you facing the same problem as I am: http://groups.google.com/group/web2py/browse_thread/thread/d5083ed08c... Annet.

[web2py:23736] Re: Texteditor

2009-06-09 Thread pk
oh thanks, it`s a cool tool. peter On 9 Jun., 18:16, annet annet.verm...@gmail.com wrote: I am using NicEdit: http://nicedit.com/ Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework

[web2py:23980] Delete

2009-06-12 Thread pk
hi together, how can i delete in this code only the requested content from the table, not the whole table content? here my code: {{for projekte in pro:}} {{if projekte.pend = now:}} ispan class=Stil1{{=projekte.cdate}}/span/

[web2py:23984] XML

2009-06-12 Thread pk
Hi, how can i use the XML-Service for my tables? Because i would acces from flex(action script) via xml on my tables. I read there is a service in web2py for this, but how can i use this? thanks Peter --~--~-~--~~~---~--~~ You received this message because you

[web2py:23986] Re: XML

2009-06-12 Thread pk
thanks but how can i give all the content from all tables back as xml? On 12 Jun., 13:49, Fran francisb...@googlemail.com wrote: On Jun 12, 12:20 pm, pk peter.kirch...@youngdesigners.de wrote: how can i use the XML-Service for my tables? Because i would acces from flex(action script) via

[web2py:24000] Re: XML

2009-06-12 Thread pk
but i get an empty page if i try http://127.0.0.1:8000/2busy/default/data/project/select.xml here the code in my model: from gluon.tools import Mail, Auth, Crud, Service # new in web2py 1.56 service = Service(globals()) crud = Crud(globals(),db) def data(): return crud() On 12 Jun.,

[web2py:24013] sort table

2009-06-12 Thread pk
hi, how can i sort or orderby my table, when i will show the newest content on top? i have a field calls timestamp with 'datetime' and now i will show on the html page the newest one on top like 12.06.2009 - Test 10.06.2009 - Test2 ... thanks

[web2py:24018] Re: XML (a proposal and solution)

2009-06-12 Thread pk
/default/data.xml/select/xxx #http://127.0.0.1:8000/app/default/data.html/read/xxx/1 #http://127.0.0.1:8000/app/default/data.xml/read/xxx/1 Comments? Pros? Cons? Massimo On Jun 12, 11:36 am, pk peter.kirch...@youngdesigners.de wrote: I still get Invalid function I don`t know what i have

[web2py:24019] delete command in html

2009-06-12 Thread pk
hi, i ask this today and i need this very important. Can you please help me. for example my html page : 12.05.2009 - Test - delete delete should be a hyperlink when the user clicks on it, it should delete the Test from the table. how can i solve this problem in my html? thanks

[web2py:24023] Re: delete command in html

2009-06-12 Thread pk
hi, i solved now my problem. On 12 Jun., 19:58, pk peter.kirch...@youngdesigners.de wrote: hi, i ask this today and i need this very important. Can you please help me. for example my html page : 12.05.2009 - Test - delete delete should be a hyperlink when the user clicks

[web2py:24025] Re: XML (a proposal and solution)

2009-06-12 Thread pk
)].id0).select().as_list()) Then call it as http://127.0.0.1:8000/[yourappname]/default/table_as_xml/[tablename] On Jun 12, 12:48 pm, pk peter.kirch...@youngdesigners.de wrote: it`s too complex for me ;) i will only show the table as xml and now i`m absolutely overstrained :( please

[web2py:24083] rss

2009-06-13 Thread pk
hi together, i can`t create a rss. i tried it with my table news. news has the rows user, timestamp, header and text and is a function calls: def news: in my controller menu. how can i solve my problem for an easy way? thanks for your help. peter

[web2py:24086] Re: rss

2009-06-13 Thread pk
=IS_NOT_EMPTY() db.news.betreff.requires=IS_NOT_EMPTY() db.news.text.requires=IS_NOT_EMPTY() thanks On 13 Jun., 16:55, mdipierro mdipie...@cs.depaul.edu wrote: please post your model and I will send an example. Massimo On Jun 13, 9:52 am, pk peter.kirch...@youngdesigners.de wrote: hi together

[web2py:24093] Re: rss

2009-06-13 Thread pk
:50:25 GMT how can i get this in a nice layout? what i have to do? On 13 Jun., 17:43, pk peter.kirch...@youngdesigners.de wrote: thanks massimo, i will change the fieldname of text. how can i test now this? On 13 Jun., 17:39, mdipierro mdipie...@cs.depaul.edu wrote: def make_rss

[web2py:24101] Re: rss

2009-06-13 Thread pk
='no link') for r in news])     response.headers['Content-Type']='application/rss+xml' ### MISSING     from gluon.serializers import rss     return rss(d) On Jun 13, 10:53 am, pk peter.kirch...@youngdesigners.de wrote: when i now go to the link i got /2busy/rss/make_rssdescriptionSat, 13 Jun 2009

[web2py:24141] Delete

2009-06-14 Thread pk
Hi together, i have a question. i have a talbe project and there i can delete without any problems. i have another table calls projectfile. here is my model: # ## Tabelle File

[web2py:24161] Re: Delete

2009-06-14 Thread pk
time. Have you checked it? Does it not work? Massimo On Jun 14, 11:50 am, pk peter.kirch...@youngdesigners.de wrote: Hi together, i have a question. i have a talbe project and there i can delete without any problems. i have another table calls projectfile. here is my model

[web2py:/] Re: Delete

2009-06-14 Thread pk
a projectfile should reference a project, but a project can have many projectfiles On 14 Jun., 23:37, mdipierro mdipie...@cs.depaul.edu wrote: shouldn't there be a file in projectfile that references a project? Or can a projectfile belong to multiple projects? On Jun 14, 4:13 pm, pk

[web2py:24200] Re: Delete

2009-06-15 Thread pk
the reference should be the name of the project, projectname thanks peter On 15 Jun., 02:40, mdipierro mdipie...@cs.depaul.edu wrote: That is what I thought but I do not see in projectfile any reference field to project. On Jun 14, 4:47 pm, pk peter.kirch...@youngdesigners.de wrote

[web2py:24201] Re: Delete

2009-06-15 Thread pk
this? peter On 15 Jun., 11:49, pk peter.kirch...@youngdesigners.de wrote: the reference should be the name of the project, projectname thanks peter On 15 Jun., 02:40, mdipierro mdipie...@cs.depaul.edu wrote: That is what I thought but I do not see in projectfile any reference field

[web2py:24215] Re: Delete

2009-06-15 Thread pk
On Jun 15, 5:24 am, pk peter.kirch...@youngdesigners.de wrote: i think i have an idea massimo which can possible solve my problem but you have to help me. how can i save the project.id in the projectfile table. the user can choose a self created project over a form and i like to save

[web2py:24220] Re: Delete

2009-06-15 Thread pk
=projectfile) redirect(URL(r=request,c='default/user',f='login')) thanks peter On 15 Jun., 17:16, pk peter.kirch...@youngdesigners.de wrote: ok thanks massimo, i will try it when i come home peter On 15 Jun., 15:42, mdipierro mdipie...@cs.depaul.edu wrote: I think you need something like

[web2py:24222] Re: Delete

2009-06-15 Thread pk
the file when he click the submit then should the projectid saved in my table projectfile. On 15 Jun., 18:12, pk peter.kirch...@youngdesigners.de wrote: ähm massimo, how can i do this: the project_id should change if the youser change the project from the choose list here my function

[web2py:24226] Re: Delete

2009-06-15 Thread pk
what you ask. On Jun 15, 11:55 am, pk peter.kirch...@youngdesigners.de wrote: for perhaps better understanding: on the webpage calls projectfile: User can chose one of his projects (drop down):   - Project1                                                   - Project2

[web2py:24231] userstate

2009-06-15 Thread pk
hi, is there a available command or function to check whether the user (from auth.user) is online or not? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group,

[web2py:24233] Re: userstate

2009-06-15 Thread pk
Massimo On Jun 15, 12:57 pm, pk peter.kirch...@youngdesigners.de wrote: hi, is there a available command or function to check whether the user (from auth.user) is online or not? thanks --~--~-~--~~~---~--~~ You received this message because you

[web2py:24235] Re: userstate

2009-06-15 Thread pk
oh i forget to ask, and how can i now display on the html page, which user are online? thanks massimo for your time ;) On 15 Jun., 20:24, pk peter.kirch...@youngdesigners.de wrote: thanks massimo ;) On 15 Jun., 20:07, mdipierro mdipie...@cs.depaul.edu wrote: Put this in your layout.html

[web2py:24239] Re: userstate

2009-06-15 Thread pk
i need it like so (logic): Folgende User sind online:br /br / {{for onuser in db.auth_user:}} {{if(URL(r=request,c='userstate',f='is_user_online(onuser)')):}} {{=onuser.last_name}} {{pass}} {{pass}} On 15 Jun., 20:48, pk peter.kirch...@youngdesigners.de wrote: oh i forget

[web2py:24244] Re: userstate

2009-06-15 Thread pk
 pm, pk peter.kirch...@youngdesigners.de wrote: i need it like so (logic): Folgende User sind online:br /br / {{for onuser in db.auth_user:}}      {{if(URL(r=request,c='userstate',f='is_user_online(onuser)')):}}           {{=onuser.last_name}}      {{pass}} {{pass}} On 15 Jun., 20

[web2py:24246] Re: userstate

2009-06-15 Thread pk
massimo, there is still something wrong, with the syntax. On 15 Jun., 22:31, mdipierro mdipie...@cs.depaul.edu wrote: {{for user in db((db.online.last_visittime.time()-dt) (db.online.user_id==db.auth_user.id).select():}}   {{=user.auth_user.last_name}}br / {{pass}} On Jun 15, 2:17 pm, pk

[web2py:24253] Re: userstate

2009-06-15 Thread pk
...@cs.depaul.edu wrote: what error? On Jun 15, 3:46 pm, pk peter.kirch...@youngdesigners.de wrote: massimo, there is still something wrong, with the syntax. On 15 Jun., 22:31, mdipierro mdipie...@cs.depaul.edu wrote: {{for user in db((db.online.last_visittime.time()-dt) (db.online.user_id

[web2py:24259] message

2009-06-15 Thread pk
massimo, have you received my message? because there were some problems while sending. peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to

[web2py:24265] Re: message

2009-06-15 Thread pk
ok, no stress massimo, i wondered only why i can`t send it from my adress. On 16 Jun., 00:35, mdipierro mdipie...@cs.depaul.edu wrote: yes. Will look at it later. I am at a conference. On Jun 15, 5:16 pm, pk peter.kirch...@youngdesigners.de wrote: massimo, have you received my message

[web2py:24478] SQL querie

2009-06-19 Thread pk
Hi together, i have a table call projectmember. in there i have a lot of members which sources frequentlich in the table: for example: 1 Müller abcdef 2 Mike abcdef 3 Müller 4 Mike hiadsfasdf 5 Tom aködsfjasödf in my model: db.projecttasks.projectmemberid.requires=IS_IN_DB(db,

[web2py:24496] Re: SQL querie

2009-06-19 Thread pk
no problem i solved my problem ;) thanks anywhere On 19 Jun., 14:28, mdipierro mdipie...@cs.depaul.edu wrote: Are you trying to show last name and fisrt name? Not sure I understand the question. On Jun 19, 4:06 am, pk peter.kirch...@youngdesigners.de wrote: Hi together, i have a table

[web2py:24497] sql IS_NOT_IN_DB()

2009-06-19 Thread pk
hi, how can i check this: i have a table (stand for relation) with this data for example: 1 Müler Project1 2 Mike Project1 3 Müller Project2 4 Den Project 3 i will check that Müller Project1 IS_NOT_IN_DB() not only one require - i need multiple requirements how can i solve this? thanks

[web2py:24532] Re: web2py logo

2009-06-20 Thread pk
hi, i (better we) created the logo. We think the strong typo represent a strong framework. we like the typo, because for such a project would it be perfect, also it`s opensource. the number 2 symbolize a dot between web and py. the brandmark of the people show a big network of developer,

[web2py:24716] update data

2009-06-22 Thread pk
hi together, i need help how can i update in the view a table entry, in my case the row called 'closed' (boolean) in the view i know the project id and i like to set closed True in the view but my code gives me a ticket. {{db(projekte.id).update(closed=True)}} how can i solve this problem?

[web2py:24735] Re: update data

2009-06-22 Thread pk
the presentation. Regards, Julio On Jun 22, 10:05 am, pk peter.kirch...@youngdesigners.de wrote: hi together, i need help how can i update in the view a table entry, in my case the row called 'closed' (boolean) in the view i know the project id and i like to set closed True

[web2py:24736] Re: update data

2009-06-22 Thread pk
thanks massimo, your the best On 22 Jun., 21:15, pk peter.kirch...@youngdesigners.de wrote: i know, but in my project, there will often merge controller and view. but have you an idea to solve my problem? On 22 Jun., 20:45, Speedbird ju...@techfuel.net wrote: Is there a reason why you

[web2py:24740] email send failure

2009-06-22 Thread pk
hi massimo, i got follow ticket: Traceback (most recent call last): File gluon/restricted.py, line 107, in restricted File /Applications/web2py/web2py1.64.3/web2py.app/Contents/ Resources/applications/2busy/controllers/invite.py, line 17, in module File gluon/globals.py, line 100, in

[web2py:24764] Re: email send failure

2009-06-23 Thread pk
=subject) response.flash='Einladung wurde erfolgreich versendet' redirect(URL(r=request,c='menu',f='projectmember')) redirect(URL(r=request,c='default/user',f='login')) On 23 Jun., 07:58, pk peter.kirch...@youngdesigners.de wrote: but the adress isn`t incorrect. this is my

[web2py:24762] Re: email send failure

2009-06-22 Thread pk
,message) server = smtplib.SMTP('smtp.fh-augsburg.de:25') server.sendmail(fromaddr, toaddrs, msg) server.quit() thanks On 23 Jun., 01:51, mdipierro mdipie...@cs.depaul.edu wrote: It says the format of the destination address is (addresses are) incorrect. On Jun 22, 4:06 pm, pk

[web2py:24820] message to html page

2009-06-23 Thread pk
hi, how can i get the successfully send message for email sending without form? def einladen(): if auth.is_logged_in(): email_empfaenger=db(db.projectmember.id==request.args (0)).select()[0] empfaengermail=email_empfaenger.memberemail subject='Einladung als

[web2py:24842] response.flash

2009-06-23 Thread pk
hi, how can i send response.flash to another view the view is in menu/member and the controller which i would send the response calls invite and in the function sendit i will send the response to the menu/ member.html page thanks --~--~-~--~~~---~--~~ You

[web2py:24876] Try and Error

2009-06-24 Thread pk
hi, how can i check this command. if it doesn`t work i will send an error message to the view code in model: server.sendmail(fromaddr, toaddrs, msg) thanks peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:24884] Re: Try and Error

2009-06-24 Thread pk
On 24 Jun., 12:00, DenesL denes1...@yahoo.ca wrote: You can use try:   server.sendmail(fromaddr, toaddrs, msg) except some_exception:   # what to do when that happens ... See the python documentation tutorial section 8, Errors and Exception, for details.

[web2py:24889] xml

2009-06-24 Thread pk
hi, the thing is, i update my xml, which i get from the function table_as_xml() in flex (action script) and then i would send it back. is it heavy to read the xml and update the table? how can i solve this? thanks peter --~--~-~--~~~---~--~~ You received this

[web2py:24898] Re: xml

2009-06-24 Thread pk
ok is it very tricky? because i`m a python beginner... On 24 Jun., 18:48, mdipierro mdipie...@cs.depaul.edu wrote: web2py does have code to import XML. you have to use the Python SAX library to parse it. On Jun 24, 10:19 am, pk peter.kirch...@youngdesigners.de wrote: hi,  the thing

[web2py:24907] Re: xml

2009-06-24 Thread pk
can you probably help me massimo? i think it`s too difficult for me as beginner. peter On 24 Jun., 21:14, mdipierro mdipie...@cs.depaul.edu wrote: it is a bit tricky. http://www.devshed.com/c/a/Python/Parsing-XML-with-SAX-and-Python/ Massimo On Jun 24, 12:42 pm, pk peter.kirch

[web2py:24922] Re: xml

2009-06-24 Thread pk
for web2py (importing xml records) but I am swamped for the next month. I am sure other people here will be able to help. Massimo On Jun 24, 2:29 pm, pk peter.kirch...@youngdesigners.de wrote: can you probably help me massimo? i think it`s too difficult for me as beginner. peter On 24 Jun

[web2py:24927] Re: xml

2009-06-24 Thread pk
Python provides the SAX library so that you can customize it with the XML parsing rules that you need. It would make sense to give web2py the ability to read the same XML that it generates but the XML that is generated . Massimo On Jun 24, 4:30 pm, pk peter.kirch...@youngdesigners.de wrote

[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

[web2py:25001] Re: xml

2009-06-25 Thread pk
ok, then i have to wait... thanks On 25 Jun., 15:06, mdipierro mdipie...@cs.depaul.edu wrote: xml import? do not know. not a priority. On Jun 25, 1:44 am, pk peter.kirch...@youngdesigners.de wrote: puh it`s to tricky... i think i have to wait still there is a function to read the same

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

  1   2   >