[web2py:35601] Re: routes problems

2009-11-19 Thread Carlos Aboim
Hi, Thanks for the reply. thi is my routes.py file: http://dpaste.com/hold/122321/ As I posted earlier the url that I want to reach at the beginig (defult) is: http://127.0.0.1:8000/registos/obras/index But it still falls in default welcome page. thank you for your help Carlos Aboim

[web2py:35484] routes problems

2009-11-17 Thread Carlos Aboim
uot;, line 113, in rewrite.load() File "/Users/preimpressao/Desktop/web2py/gluon/rewrite.py", line 50, in load for (k, v) in symbols['routes_in']: ValueError: need more than 1 value to unpack How do I change my default page? Thanks Carlos Aboim --~--~-~--~~--

[web2py:31017] Re: id problem

2009-09-14 Thread Carlos Aboim
Can we see lines 60-70 from this ticket? > > On Sep 14, 5:11 am, Carlos Aboim wrote: >> Hi group, >> >> I have an app that is working ok execpt I am getting a id error from >> DB >> >> Traceback (most recent call last): >>   File "/Users/preimp

[web2py:31016] Re: id problem

2009-09-14 Thread Carlos Aboim
Hi, Sorry for the delay in response but I had a few jobs to finish at my work. So this is the all error ticket lines. http://dpaste.com/hold/93596/ Hope it helps Thanks in advance Carlos Aboim 2009/9/14 mdipierro > > Can we see lines 60-70 from this ticket? > > On Sep 14, 5:1

[web2py:30960] id problem

2009-09-14 Thread Carlos Aboim
Hi group, I have an app that is working ok execpt I am getting a id error from DB Traceback (most recent call last): File "/Users/preimpressao/Desktop/web2py/gluon/restricted.py", line 178, in restricted exec ccode in environment File "/Users/preimpressao/Desktop/web2py/applications/regi

[web2py:30620] Re: error on rendering just a record!

2009-09-10 Thread Carlos Aboim
009/9/10 mdipierro > > That is all. When you visit the page there will be a create form in > the page. > Perhaps I misunderstand what you want to do. > > On Sep 10, 8:14 am, Carlos Aboim wrote: > > I'm sorry I didn't get the point. > > > > What should I do w

[web2py:30605] Re: error on rendering just a record!

2009-09-10 Thread Carlos Aboim
I'm sorry I didn't get the point. What should I do with {{=crud.update(db.cliente, cliente)}} I put it in the view and... thank you CA 2009/9/9 mdipierro > > {{=crud.update(db.cliente,cliente)}} > > On Sep 9, 9:50 am, Carlos Aboim wrote: > > Hey Massimo, > &g

[web2py:30496] Re: error on rendering just a record!

2009-09-09 Thread Carlos Aboim
x27;layout.html'}} > > Clientes arquivados. >{{=cliente.id}} >Nome: {{=A(cliente.nome, _href=URL(r=request, f='show?nome=%s' > % cliente.nome))}} >Contacto: {{=cliente.contacto}} >Email: {{=cliente.email}} >Morada: {{=cliente.morada}}

[web2py:30482] error on rendering just a record!

2009-09-09 Thread Carlos Aboim
nfo has a special caracter it doesnt render giving a unicode error. How do I declare a coding other than in the controller that is already done?! thank you in advanced Carlos Aboim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[web2py:30479] Re: call a controller function...

2009-09-09 Thread Carlos Aboim
hi, I tried the Richard method and worked just fine! Seems more pythonic to me! thanks folks! Carlos Aboim On 9 Set, 00:46, Richard wrote: > You need to specify the othercontrolleror it will stay in obras: > > URL(r=request, c='clientes', f='insert') > > On

[web2py:30411] call a controller function...

2009-09-08 Thread Carlos Aboim
request, f='clientes/insert'))}} #link from where I want call the onther controller function. When I 'click it' returns me a invalid function error. Made sense?! If any trouble to understand I'll try explain other way!! thank you Carlos Aboim --~--~-~--~~---

[web2py:30394] Re: init app

2009-09-08 Thread Carlos Aboim
> Then edit the routes_in like this: > > routes_in = ( >('/', '/records/default/index'), > ) > > That's it. > > > On Sep 8, 12:52 pm, Carlos Aboim wrote: > > Hi everyone, > > I know if I call my app init that will be the default ap

[web2py:30387] init app

2009-09-08 Thread Carlos Aboim
Hi everyone, I know if I call my app init that will be the default app. But can I have the same default app with a name choosen my be?? Not welcome or init, perhaps records thanks Carlos Aboim --~--~-~--~~~---~--~~ You received this message because you are

[web2py:30291] Re: how to restore Login to default/index

2009-09-07 Thread Carlos Aboim
It's a little bit strange.. I have in the default/layout the rigth code (as welcome app as reference) and in the menu, 'authentication' and the link after it doenst show... Any clues? thank you Carlos Aboim 2009/9/7 mdipierro > > > > On Sep 7, 8:14 am, Carlos Ab

[web2py:30280] Re: how to restore Login to default/index

2009-09-07 Thread Carlos Aboim
y app index page! Thanks Carlos Aboim 2009/9/7 weheh > > I'm not sure exactly which link you're referring to. However, you can > easily create any link you like using the A() and URL() helpers. If > you can figure out which link is missing and what the proper URL > sho

[web2py:30274] how to restore Login to default/index

2009-09-07 Thread Carlos Aboim
Hi folks, I made a mistake and deleted the link to login in the main page. I have compared my app and the welcome app, I think both controlers have def user() and both views have default/user but the link is still gone. How I cant retrive it back? thank you --~--~-~--~~~--

[web2py:29500] can't import csv data file

2009-08-27 Thread Carlos Aboim
Hi list, I want import some data from a CSV file through admin but it keeps getting me error. CSV is made with Excel app, by default those CSV files came with semi- colon (;) and not coma (,) which I chaged outside Excel. I exported some data that was in web2py app and follow that format but stil

[web2py:29382] Re: web2py book, 2nd Ed

2009-08-26 Thread Carlos Aboim
Sorry for my opinionI should it must be free for downloading. I think it whould help to improve the interest of new users on web2py. thanks for everything anyaway!! Carlos Aboim 2009/8/26 Jason Brower > > Congrats! Very happy for you! > I will recommend it to everyone and by it o

[web2py:28820] Re: How do I get a cross reference model name?

2009-08-17 Thread Carlos Aboim
I don't want the number of the reference (that it shows) I want the 'string' tht is associated to it! Not the cliente_id: ex: 1, 2, 3, 4 But the name of the cliente in cliente.name field! Carlos Aboim 2009/8/17 mdipierro > > I do not see anything wrong in it. If

[web2py:28815] Re: How do I get a cross reference model name?

2009-08-17 Thread Carlos Aboim
ring in it!! thank you and apologize for the mess Carlos Aboim 2009/8/17 mdipierro > > This correct. Can you explain better what you mean by "it did not > work". Which is the controller that does not work. What is the view. > What do you get instead? > > On Aug 17,

[web2py:28814] Re: web2py 1.66.0 is out

2009-08-17 Thread Carlos Aboim
YAh Thanks!! It worked pretty smooth, who knows, know it better!! :-) Carlos Aboim 2009/8/17 Jonathan Lundell > On Aug 17, 2009, at 4:52 AM, Carlos Aboim wrote: > > Could you be more especific with the commands?? > I am really sorry, show me the way! > > > The usage st

[web2py:28805] Re: web2py 1.66.0 is out

2009-08-17 Thread Carlos Aboim
Could you be more especific with the commands?? I am really sorry, show me the way! Thanks Aboim 2009/8/17 Kuba Kucharski > > you have to go with > python web2py -u UPGRADE.. > > to upgrade welcome and admin apps.. > > -- > Kuba > > > > --~--~-~--~~~---~--~~ You

[web2py:28788] Re: web2py 1.66.0 is out

2009-08-17 Thread Carlos Aboim
server. When the welcome pages show up no diferences and no upgrade! What am I doing wrong? thank you Carlos Aboim On 17 Ago, 09:43, Pynthon Pynthon wrote: > Ok, but what do you guys suggest me? I see in the new chapters you gave us > you used DAL? > > 2009/8/17 mdipierro > > &

[web2py:28786] Re: How do I get a cross reference model name?

2009-08-17 Thread Carlos Aboim
Hi, Didn't worked, maybe I missing something or do some error! this is my real model, with te last line added as suggested is it correct? thank you Carlos Aboim # coding: utf8 import datetime now = datetime.datetime.now() registos=SQLDB("sqlite://registos.db") registos.define

[web2py:28625] How do I get a cross reference model name?

2009-08-14 Thread Carlos Aboim
x27;upload',default='')) And I want to render the 'owner' field of the 'dogs' table with the 'name' from 'users' table or better dogs.owner = users.name I'm just getting the _id of that field (integer) Can I do this?? Thank you Carlos

[web2py:28622] Re: show information stored in database

2009-08-14 Thread Carlos Aboim
Ohh My good!! In fact!! I blame myself for such failure. You are absolutly wright! Thank you! I will be back for sure! I am a rookie! Carlos Aboim 2009/8/14 DenesL > > > > On Aug 14, 5:39 am, Carlos Aboim wrote: > > Hi group > > > > This is my trouble: I can&

[web2py:28619] Re: show information stored in database

2009-08-14 Thread Carlos Aboim
I don't get any error! The values from variables do not apear in the redered page! Aboim 2009/8/14 mdipierro > > What error do you get when you visit http://.../ver/[id] ? > > On Aug 14, 4:39 am, Carlos Aboim wrote: > > Hi group > > > > This is my trouble: I

[web2py:28612] show information stored in database

2009-08-14 Thread Carlos Aboim
return dict(obra = obra) the view: {{extend 'layout.html'}} Obra nº. {{obra.numero}} {{obra.nome}} I don't know if you need more info to help, if you do please let e know! thank you Carlos Aboim --~--~-~--~~~---~--~~ You received this message beca

[web2py:28511] Re: problems on HTML list representation

2009-08-13 Thread Carlos Aboim
Hi that's correct!! thanks Aboim 2009/8/13 mdipierro > > I think you want > >{{for obra in obras:}} >{{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args = > [obra.id])),' ',obra.nome)}} # 2 lines > {{pass}} > > > O

[web2py:28504] Re: problems on HTML list representation

2009-08-13 Thread Carlos Aboim
Yeah you're wright! I express my self in a wrong way In fact both are two fields - obra.numero and obra.nome I just can't separete them in the same line Thanks Carlos Aboim 2009/8/13 Sebastian E. Ovide > did you try this ? > > {{=LI(A(123,_href="someurl"),&qu

[web2py:28501] problems on HTML list representation

2009-08-13 Thread Carlos Aboim
{{for obra in obras:}} {{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args = [obra.id]))}}{{=LI(obra.nome)}} # 2 lines {{pass}} I need your help Thank you Carlos Aboim --~--~-~--~~~---~--~~ You received this message because yo

[web2py:28441] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
hold/78289/ last and actual models http://dpaste.com/hold/78807/ thanks again for your pacience be happy Carlos Aboim 2009/8/12 Carlos Aboim > I have copied and pasted you reply code but it seems not working! > > I cant tell what it is! > > Do you know any exemples online that a

[web2py:28436] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Try cut and paste the code I posted into your admin. > > > > On Aug 12, 8:25 am, Carlos Aboim wrote: > > Thank you for your breafly replies, > > It is well seen, but I am affraid it is not that yet!! > > > > How I wish it whould...! > > > > the for

[web2py:28435] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
#x27; field it doesn't show up. As both fields are setSQLField('', registos.), I belive that as to be with something on it! What do you folks think?? thanks Carlos Aboim 2009/8/12 Carlos Aboim > Thank you for your breafly replies, > It is well seen, but I am af

[web2py:28433] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
ppear a dropdown list with the IS_IN_SET() values wright?? but in fact it turns the background of the box into magenta but no dropdown list :-( I don't know what to do! Carlos Aboim 2009/8/12 mdipierro > > I think I know why it did not work before. > > you have > > r

[web2py:28430] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
less: now = request.now what were the changes you made. It seems to me that is the same code? Have you changed something else? thanks Carlos Aboim 2009/8/12 mdipierro > > This workd for me: > > import datetime > > now = request.now > > registos=SQL

[web2py:28425] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Ok, I've send it earlier but no problem here it is :-) http://dpaste.com/hold/78289/ Hope it helps! Thanks in advanced Carlos Aboim 2009/8/12 mdipierro > > Just send me the model then. > > Massimo > > On Aug 12, 5:41 am, Carlos Aboim wrote: > > Tell me what f

[web2py:28422] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Tell me what files you whould need. Because this is just the model of a future app. I am populating the database througth the admin page... I am not a very well experienced user! Sorry for some lack of understanding :-) Carlos Aboim 2009/8/12 mdipierro > > Please email me the relevant

[web2py:28415] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
I changed the fields name as suggested but no sucess!! Any further clues? Thanks Carlos Aboim 2009/8/12 Yarko Tymciurak > Since you are having troubles, can I suggest you rename the following: > > registos.obra.cliente > and > registos.obra.vendedor > > to > &g

[web2py:28411] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
k! thank you C Aboim 2009/8/12 mdipierro > > The only things I can think of are: > 1) requires is mispelled > 2) requires is overwritten somewhere else > > Can you post the code? > > On Aug 12, 3:23 am, Carlos Aboim wrote: > > Hi, > > In fact I was using require

[web2py:28407] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Hi, In fact I was using requires=[IS_IN_SET(…)] Changed to requires=IS_IN_SET(), but still doesn't work!! help!! Thanks Carlos Aboim 2009/8/11 mdipierro > > requires=IS_IN_SET() > > validation+dropdown > > requires=[IS_IN_SET()] > > validation but

[web2py:28358] dropdown list from model references doesn't work

2009-08-11 Thread Carlos Aboim
eter but it doesn't show up no dropdown menus Any better aproach?? thank you Carlos Aboim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2

[web2py:28349] Re: input model data help

2009-08-11 Thread Carlos Aboim
Thank you !! Worked just fine! 2009/8/11 mdipierro > > db.table.field.comment='.' > > or > > db.table.field.comment=A > ('help',_href='instructions_url',_target='_blank') > > > On Aug 11, 6:50 am, Carlos Aboim wrote: &

[web2py:28341] input model data help

2009-08-11 Thread Carlos Aboim
say that a field is an email field (IS_EMAIL ok but...) and if I have no information to put in, how do the model accepts a blank entry in that e-mail field? thank you Carlos Aboim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[web2py:28306] Re: how to use a verbosly name in the model table

2009-08-10 Thread Carlos Aboim
Hi everybody, Solved!! Should be a list, and not a dictionay!! Sorry for the inconvinience! Carlos Aboim 2009/8/10 Carlos Aboim > Hi Benigno, > > I think it should be working but I get the following error. > > http://dpaste.com/hold/9/ > > I ask for help from the

[web2py:28304] Re: how to use a verbosly name in the model table

2009-08-10 Thread Carlos Aboim
Hi Benigno, I think it should be working but I get the following error. http://dpaste.com/hold/9/ I ask for help from the group! can anyone tlme what's going wrong?? thanks Carlos Aboim 2009/8/10 Benigno > > Carlos, >I am not completelly sure I understand you, but I t

[web2py:28298] how to use a verbosly name in the model table

2009-08-10 Thread Carlos Aboim
he way, how do I insert several option in a model field, as Django folks do with lists using the attribute 'choices', like this model.StringField('vendedor', choices=['A', 'B', 'C', ...]) resulting in a dr

[web2py:28165] problem with (supose) yaml file

2009-08-07 Thread Carlos Aboim
l/bin/python2.5 ERROR:root:Application configuration file not found in /Users/ preimpressao/Desktop/web2py I have pointed the root folder for web2py app to deploy but no sucess!! I have tried to find that conf file manually but I couldn't findit neigther! Any sugestions?? Thanks Ca