#920: change identity prompt in quickstart
----------------------+-----------------------------------------------------
 Reporter:  fredlin   |       Owner:  anonymous 
     Type:  defect    |      Status:  new       
 Priority:  low       |   Milestone:  0.9       
Component:  Identity  |     Version:  0.9a6     
 Severity:  trivial   |    Keywords:  quickstart
----------------------+-----------------------------------------------------
 origin identity prompt in quickstart is:

 {{{
 Do you need Identity (usernames/passwords) in this project? [no]:
 }}}

 The identity prompt in quickstart notice me to type 'yes' to trigger
 identity functions,

 and it's annoying to type 'yes', 'no' to trigger Identity template(I've to
 use two hands to type that:P ).

 I just found to accept abbrev type (y/n) is possible in the code
 (quickstart.py),

 So why not change '[no]' to unix type 'yes/no[default value]' for better
 guidance(cause its a 'quickstart')

 The prompt is:

 {{{
 Do you need Identity (usernames/passwords) in this project? yes/no[n]
 }}}

 ----

 and for consist, I suggest to change following prompt from

 {{{
 Select your provider sqlobject or sqlalchemy [sqlobject]:
 }}}

 to

 {{{
 Select your provider: sqlobject/sqlalchemy[sqlobject]:
 }}}

 and make 'so' or 'sa' can be recognize as 'sqlobject' or 'sqlalchemy'


 code is here(in quickstart.py)

 {{{
 #!diff
 Index: quickstart.py
 ===================================================================
 --- quickstart.py       (revision 1516)
 +++ quickstart.py       (working copy)
 @@ -131,7 +131,7 @@
          doidentity = None
          while not doidentity:
              doidentity = raw_input("Do you need Identity "
 -                        "(usernames/passwords) in this project? [no] ")
 +                        "(usernames/passwords) in this project?
 yes/no[n]: ")
              doidentity = doidentity.lower()
              if not doidentity or doidentity.startswith('n'):
                  self.identity="none"
 @@ -142,10 +142,14 @@
              doidentity = None

          while not self.identity:
 -            self.identity = raw_input("Select your provider sqlobject or
 sqlalchemy [sqlobject]: ")
 +            self.identity = raw_input("Select your provider:
 sqlobject/sqlalchemy [sqlobject]: ")
 +            if (self.identity=='so'):
 +                self.identity== "sqlobject"
 +            if (self.identity=='sa'):
 +                self.identity== "sqlalchemy"
              if not self.identity:
                  self.identity = "sqlobject"
 -            if self.identity not in ["sqlobject", "sqlalchemy"]:
 +            if self.identity not in ["sqlobject", "sqlalchemy", 'so',
 'sa']:
                  print "Please enter one of 'sqlobject(so)',
 'sqlalchemy(sa)'"
                  self.identity = ""
                  continue

 }}}

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/920>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to