the erro is:

>>>> dir = os.path.basename(os.getcwd())
>>>> appname = turbogears.util.get_project_name()
>>>> dir.decode("utf-8")
u'webcap'
>>>> appname.decode("utf-8")
u'webcap\r'

conclusion: the function get_project_name() return \r in the end of
string
dir != appname because has an \r in the end of string

X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.11.88.14 with SMTP id l14mr43289cwb;
        Mon, 22 May 2006 10:54:51 -0700 (PDT)
X-Google-Token: A0E_0gwAAADFD_Zmr48vwgCviAZctWf9
Received: from 200.146.37.218 by 38g2000cwa.googlegroups.com with HTTP;
        Mon, 22 May 2006 17:54:51 +0000 (UTC)
From: "Leonardo" <[EMAIL PROTECTED]>
To: "TurboGears" <[email protected]>
Subject: Re: tg-admin update (is named wrongly)
Date: Mon, 22 May 2006 17:54:51 -0000
Message-ID: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
   <[EMAIL PROTECTED]>
   <[EMAIL PROTECTED]>
   <[EMAIL PROTECTED]>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.0.3) 
Gecko/20060426 Firefox/1.5.0.3,gzip(gfe),gzip(gfe)
Mime-Version: 1.0
Content-Type: text/plain

the erro is:

>>>> dir = os.path.basename(os.getcwd())
>>>> appname = turbogears.util.get_project_name()
>>>> dir.decode("utf-8")
u'webcap'
>>>> appname.decode("utf-8")
u'webcap\r'

conclusion: the function get_project_name() return \r in the end of
string
dir != appname because has an \r in the end of string


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to