Ya actually my data is large I want all the values of the field processed seq in table plugin_seq .I am getting all the unwanted information like the path with the processed sequnce.I am sure that basic code to process the sequence is correct as I have verified it in python but when I am implementing the same in web2py the output is not the same .I have tried with values = [r.process_seq for r in db().select(db.plugin_seq.processed_seq)] but the output is generating the same unwanted stuff by iterating the loop several times .
On Tue, Jun 12, 2012 at 8:44 PM, Anthony <abasta...@gmail.com> wrote: > On Tuesday, June 12, 2012 1:33:33 PM UTC-4, praveen krishna wrote: >> >> I want to extract all the attributes of a single column in a table .The >> column name is processed sequence .I tried with the above code but its not >> working . >> > > Are you saying you want all the values stored in the processed_seq field > of the db.plugin_seq table, perhaps in a list? If so, you could do > something like: > > values = [r.process_seq for r in db().select(db.plugin_seq.processed_seq)] > > If there are a very large number of records, there are ways to make that a > little more efficient. > > Anthony >