[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] 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] 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
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
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
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
; > [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
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] 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
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] 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
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
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] 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: 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] 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] 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: 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] 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 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] 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
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
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:23277] auth()-Objekt

2009-06-04 Thread pk
Hello together, I`ve a little problem, I think. I`ve got a index-Site which contains the auth()-Object (with Login, Register ...). All of them are working. If a User log-in correct, a new site (menu) will called. How can I show the name of the log-in User on the new site? Thanks for your help P

[web2py:23280] Re: auth()-Objekt

2009-06-04 Thread pk
Wow, thanks for the highspeed-help ;) i love web2py greets from augsburg, germany --~--~-~--~~~---~--~~ 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@googlegroups.

[web2py:23330] Insert in Table

2009-06-05 Thread pk
Hi together, I´m a beginner of coding web2py and now I have (I think) a little problem: After a successfull login the user gets shown a new page calls menu.html. he can there create new projects. Therefore I create a new table: db.define_table('project', SQLField('userid'),

[web2py:23343] Re: Insert in Table

2009-06-05 Thread pk
ok thanks for the the very fast help greets On 5 Jun., 15:38, mdipierro wrote: > SQLField('userid', default=auth.user.id if auth.user else 0, > writable=False, readable=False), > > On Jun 5, 8:01 am, pk wrote: > > > Hi together, > > > I´m a beginner of

[web2py:23344] multiple choise from collection

2009-06-05 Thread pk
hello, i know i ask very much, but i´m very interested in web2py. ok i have two tables. first = projects and second = members. the user can create projects on the website (projectname, startdate ...) can i create a multiple option box where i can select members from the table members for every pro

[web2py:23348] Re: multiple choise from collection

2009-06-05 Thread pk
mbers','text') > db.define_table('member',SQLField('name')) > db.project.members.requires=IS_IN_SET(db,'member.id','%(name) > s',multiple=True) > > multiple=True will do the trick. > The list of members will be stores as &q

[web2py:23414] Registration in web2py version 1.63

2009-06-06 Thread pk
Hi together, I´ve a question. I´m using the auth()-Object and when the user try to register himself he got a E-Mail to verify his E-Mail adress. I loaded today the new web2py version 1.63 and I try to register a new user, but I don`t get a verification E-Mail. Do you know what the problem can be?

[web2py:23415] old version

2009-06-06 Thread pk
Hi together, where can I find the previous version of web2py (version before 1.63) ? thanks 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 web

[web2py:23416] Problem with the new version

2009-06-06 Thread pk
Hi, i use the auth()-Object and in my default controler i used for example this code: @auth.requires_login() def index(): redirect(URL(r=request,c='menu',f='index')) but for the first time, when the youser loged in succesful, he gets the http://127.0.0.1:8000/admin/default/site only at fir

[web2py:23438] Re: Problem with the new version

2009-06-06 Thread pk
with registration. when a user register he doesn`t get a verify email. thanks On 6 Jun., 16:51, mdipierro wrote: > which web2py version? what would you excpect exactly? I am confused by > the url names. > > On Jun 6, 7:05 am, pk wrote: > > > Hi, > > > i use the a

[web2py:23442] Re: Registration in web2py version 1.63

2009-06-06 Thread pk
ok thanks for your help. dear peter On 6 Jun., 16:56, mdipierro wrote: > haha... this is missing in the slides. I should add it. > > On Jun 6, 9:27 am, Fran wrote: > > > On 6 June, 11:25, pk wrote: > > > > I´ve a question. I´m using the auth()-Object and when

[web2py:23444] Re: Problem with the new version

2009-06-06 Thread pk
ok thanks, and what can i do now? is this a problem of my code? thanks On 6 Jun., 18:04, mdipierro wrote: > found the problem. somebody also submited a ticket (perhaps you). > fixing now. a typo was introduced in the trunk version. > > Massimo > > On Jun 6, 10:57 am, pk wr

[web2py:23440] Re: old version

2009-06-06 Thread pk
thanks for your help greets peter On 6 Jun., 15:43, Mariano Mara wrote: > 2009/6/6 pk > > > > > Hi together, > > > where can I find the previous version of web2py (version before > > 1.63) ? > > thanks > > Peter > > If you're using the

[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 ? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fram

[web2py:23515] Re: Text

2009-06-07 Thread pk
red data. text > is always escaped. > > On Jun 7, 12:13 pm, pk wrote: > > > Hi together, > > > I have a Textfield and save the content in a table with ('text'). When > > i will show the content on

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

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

[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 wrote: > On Jun 9, 10:56 am, pk wrote: > > > 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? > >

[web2py:23678] Show only users Project

2009-06-09 Thread pk
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, readable=False), SQLField('procreator', default=auth.user

[web2py:23700] Re: Show only users Project

2009-06-09 Thread pk
ou want to specify a filter as first argument of IS_IN_DB > > db.projectfile.projectname.requires=IS_IN_DB(db > (db.project.userid==auth.user.id), >             'project.pname', '%(pname)s') > > On Jun 9, 7:01 am, pk wrote: > > > Hi, &g

[web2py:23707] Re: Show only users Project

2009-06-09 Thread pk
.userid==auth.user.id),'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 wrote: > > > thanks but i get a now an error: > > Traceback (most recent call last): > >  

[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 wrote: > now i get the next error :( > Traceback (most recent c

[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 wrote: > Can you explain better? Is this is a prblem with the stable or the > tunk version? > > On Jun 9, 10:17 am, pk wrote: > > > Hi Massimo, >

[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 wrote: > Peter, > > Aren't you facing the same problem as I am: > > http://groups.google.com/group/web2py/browse_thread/thread/d5083ed08c... > > Annet. --~--~-~--~~~---~--~~ You received th

[web2py:23736] Re: Texteditor

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

[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:}} {{=projekte.cdate}}  -  {{=A(projekte.pname,_href=URL (r=request,f="show",ar

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

[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 wrote: > On Jun 12, 12:20 pm, pk wrote: > > > how can i use the XML-Service for my tables? > > Because i would acces from flex(action script) via xml on my tables. I > > re

[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., 15:

[web2py:24011] Re: XML

2009-06-12 Thread pk
quot;experimental" because it is using a > default serializer on your own data. You would have do define your own > serializer. > > Massimo > > On Jun 12, 8:56 am, pk wrote: > > > but i get an empty page if i > > tryhttp://127.0.0.1:8000/2busy/default/d

[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:24017] Re: sort table

2009-06-12 Thread pk
ok thanks, On 12 Jun., 19:32, Fran wrote: > On Jun 12, 6:14 pm, pk wrote: > > > 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

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

2009-06-12 Thread pk
> def data(): return dict(data=crud()) > #http://127.0.0.1:8000/app/default/data.html/select/xxx > #http://127.0.0.1:8000/app/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 > > Co

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

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

2009-06-12 Thread pk
ml(db(db[request.args(0)].id>0).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 wrote: > > > it`s too complex for me ;) > > i will only show the table as xml > > and no

[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
_user.last_name') db.news.uservorname.requires=IS_IN_DB(db,'auth_user.first_name') db.news.cdate.requires=IS_NOT_EMPTY() db.news.betreff.requires=IS_NOT_EMPTY() db.news.text.requires=IS_NOT_EMPTY() thanks On 13 Jun., 16:55, mdipierro wrote: > please post your model and I will send a

[web2py:24090] Re: rss

2009-06-13 Thread pk
#x27; is not a valid field name in SQL. Soon or later it will break > something. > > Massimo > > On Jun 13, 10:03 am, pk wrote: > > > # > > ## Tabelle News > > #

[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 wrote: > thanks massimo, i will change the fieldname of text. > how can i test now this? > > On 13 Jun., 17:39, mdipierro wrote: > > > def make_rss(): > >     news = db(db.news.id

[web2py:24101] Re: rss

2009-06-13 Thread pk
gt; description=r.text,link='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 wrote: > > > when i no

[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
ked it? > Does it not work? > > Massimo > > On Jun 14, 11:50 am, pk wrote: > > > Hi together, > > > i have a question. i have a talbe project and there i can delete > > without any problems. > > i have a

[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 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 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 wrote: > > > a proj

[web2py:24201] Re: Delete

2009-06-15 Thread pk
? peter On 15 Jun., 11:49, pk wrote: > the reference should be the name of the project, projectname > thanks > peter > > On 15 Jun., 02:40, mdipierro wrote: > > > That is what I thought but I do not see in "projectfile" any reference > > field to "

[web2py:24215] Re: Delete

2009-06-15 Thread pk
e.project.id==id).delete() # delete files >     db(db.project.id==id).delete() # and delete the project > > Hope this makes sense. > > Massimo > > On Jun 15, 5:24 am, pk wrote: > > > i think i have an idea massimo which can possible solve my problem > > but you have to h

[web2py:24220] Re: Delete

2009-06-15 Thread pk
select (orderby=db.projectfile.cdate) return dict(form=form, projectfile=projectfile) redirect(URL(r=request,c='default/user',f='login')) thanks peter On 15 Jun., 17:16, pk wrote: > ok thanks massimo, > > i will try it when i come home > > peter &g

[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 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
id.requires=IS_IN_DB(db,'project.id','%(name) > s') > > in my previous example should do what you ask. > > On Jun 15, 11:55 am, pk wrote: > > > for perhaps better understanding: > > > on

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

[web2py:24233] Re: userstate

2009-06-15 Thread pk
me >     if not db.online[auth.user.id]: >         db.online.insert(user_id=auth.user.id,last_visit=time.time()) >     else: >         db(db.online.user_id==auth.user.id).update(last_visit=time.time > ()) > > and use this function to check > > def is_user_online(user_id): >    

[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 wrote: > thanks massimo ;) > > On 15 Jun., 20:07, mdipierro 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: {{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 wrote: > oh i forget to ask, > >

[web2py:24244] Re: userstate

2009-06-15 Thread pk
thanks massimo, your the best ;) have you receive the logo? peter On 15 Jun., 22:31, mdipierro wrote: > {{for user in db((db.online.last_visit>time.time()-dt) > (db.online.user_id==db.auth_user.id).select():}} >   {{=user.auth_user.last_name}} > {{pass}} > > On Jun 1

[web2py:24246] Re: userstate

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

[web2py:24253] Re: userstate

2009-06-15 Thread pk
3:04, mdipierro wrote: > what error? > > On Jun 15, 3:46 pm, pk wrote: > > > massimo, there is still something wrong, with the syntax. > > > On 15 Jun., 22:31, mdipierro wrote: > > > > {{for user in db((db.online.last_visit>time.time()-dt) > > > (db

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

[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 wrote: > yes. Will look at it later. I am at a conference. > > On Jun 15, 5:16 pm, pk wrote: > > > massimo, > > have you received my message? because there

[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, 'projectmem

[web2py:24496] Re: SQL querie

2009-06-19 Thread pk
no problem i solved my problem ;) thanks anywhere On 19 Jun., 14:28, mdipierro wrote: > Are you trying to show last name and fisrt name? Not sure I understand > the question. > > On Jun 19, 4:06 am, pk wrote: > > > Hi together, > > > i have a table call projectme

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

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

[web2py:24735] Re: update data

2009-06-22 Thread pk
bvious logic from the > presentation. > > Regards, > > Julio > > On Jun 22, 10:05 am, pk 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 t

[web2py:24736] Re: update data

2009-06-22 Thread pk
thanks massimo, your the best On 22 Jun., 21:15, pk 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 wrote: > > > Is there a reason why you can't put th

[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 File "gluon/globals.py", line 100, in Fil

[web2py:24764] Re: email send failure

2009-06-22 Thread pk
;,\ subject=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 wr

[web2py:24762] Re: email send failure

2009-06-22 Thread pk
uot;From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s"% (fromaddr,toaddrs,subject,message) server = smtplib.SMTP('smtp.fh-augsburg.de:25') server.sendmail(fromaddr, toaddrs, msg) server.quit() thanks On 23 Jun., 01:51, mdipierro wrote: > It says the format of the destinatio

[web2py:24771] error while installing web2py app

2009-06-23 Thread pk
hi, my app is about 350 MB great and my friend can`t install the app (error: unable to install ...) i packed what can be the problem? thanks peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework

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

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

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

[web2py:24884] Re: Try and Error

2009-06-24 Thread pk
On 24 Jun., 12:00, DenesL 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 mess

  1   2   >