user_date_id: anyone know what this is?

Discussion for TimeTrex open source community developers.
Locked
kabirrkhan
Posts: 2
Joined: Fri Feb 21, 2014 2:35 pm

user_date_id: anyone know what this is?

Post by kabirrkhan »

I'm writing a quick pygtk-psycopg2 application to punch people in and out. The punch and punch_control tables are fairly straight forward except for the punch_control.user_date_id column

Anyone know what this is exactly or how its generated?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: user_date_id: anyone know what this is?

Post by shaunw »

If you are trying to write data directly to the database you are doing it wrong, you should use the API instead as it will do all the heavy lifting (including dealing with punch_control records) for you.
kabirrkhan
Posts: 2
Joined: Fri Feb 21, 2014 2:35 pm

Re: user_date_id: anyone know what this is?

Post by kabirrkhan »

I don't think there is an API for python.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: user_date_id: anyone know what this is?

Post by shaunw »

TimeTrex's API works with SOAP and JSON (similar to REST), so it works from any language, including Javascript.
Locked