#2345: AdminController/Catwalk disable entry of primary key fields
-------------------------------------------------------------------+--------
 Reporter:  danielfalk                                             |        
Owner:       
     Type:  defect                                                 |       
Status:  new  
 Priority:  normal                                                 |    
Milestone:       
Component:  TurboGears                                             |      
Version:  2.0.1
 Severity:  normal                                                 |   
Resolution:       
 Keywords:  needs feedback, admin, catwalk, primary key, disabled  |  
-------------------------------------------------------------------+--------
Comment (by danielfalk):

 Replying to [comment:3 Chris Arndt]:
 > Ok, sorry, didn't read the ticket properly, I guess. If you can provide
 a test case that would be helpful.

 OK, here are the basic steps:

 1) Make a model using SQLAlchemy with entity "MyEntity" where all or part
 of the PK does not autoincrement.
 2) Run paster setup-app development.ini and paster serve development.ini
 3) Go to http://127.0.0.1:8080/admin/ and login.  Click the MyEntity link,
 then click the "New" link.  It will provide inputs for all the fields
 defined on MyEntity.  Except the PK(s) will not be editable.

 For step #1, here are a couple of ways to make a PK that doesn't
 autoincrement:
 - PK where all or part of the PK is also a foreign key
 - Use a String/Unicode type for the PK column

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2345#comment:4>
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.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to