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
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
--~--~-~--~~--
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
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
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
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
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
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}}
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
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
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
--~--~-~--~~---
> 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
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
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
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
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
--~--~-~--~~~--
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
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
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
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,
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
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
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
>
>
&
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
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
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&
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
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
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
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
{{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
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
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
#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
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
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
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
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
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
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
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
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
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:
&
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
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
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
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
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
48 matches
Mail list logo