Custom import tool

i want to develop a custom import tool for all data type.

  1. i create a doctype
  2. then give a button fileld type
  3. next i tried to chk that the button is working or not , and it is working
    but i wont be able to get the clue thet how to link it with the files which are in pc.

i also tried it in a different way.

  1. i create a doctype
  2. add a html field and write html code
  3. using html i can browse and able to attach any type of documents but here i dont know how to call py file

it will be very helpful for me if anyone give me a hint.

You can look at existing data import tool code.

thanks a lot.