From marijnh at gmail.com Sun Sep 8 18:10:53 2013 From: marijnh at gmail.com (Marijn Haverbeke) Date: Sun, 8 Sep 2013 20:10:53 +0200 Subject: What is the easiest way to get the col-type of a slot? In-Reply-To: References: Message-ID: I don't think there's a way to do it using exported functions. This isn't a use case I had considered before. On Sun, Sep 8, 2013 at 5:12 PM, Sabra Crolleton wrote: > Feeling a bit brain dead at the moment. I am trying to do a sanity check on > user-input before the data gets put in a dao-class. That requires simply > checking the col-type for the slot, comparing it to the type for the data > and, if they do not match, rejecting the data. > > I can do it looping through postmodern:dao-column-slots using > postmodern::column-type, but is there a way of doing it with exported > functions? > > Sabra From sabra.crolleton at gmail.com Sun Sep 8 15:12:39 2013 From: sabra.crolleton at gmail.com (Sabra Crolleton) Date: Sun, 8 Sep 2013 08:12:39 -0700 Subject: What is the easiest way to get the col-type of a slot? Message-ID: Feeling a bit brain dead at the moment. I am trying to do a sanity check on user-input before the data gets put in a dao-class. That requires simply checking the col-type for the slot, comparing it to the type for the data and, if they do not match, rejecting the data. I can do it looping through postmodern:dao-column-slots using postmodern::column-type, but is there a way of doing it with exported functions? Sabra -------------- next part -------------- An HTML attachment was scrubbed... URL: