if you have that file saved as modules\validator.py you mispelled the imports
from validator*s* import hi vs from validator import hi The latter is perfectly fine. PS: if you use the "shortcut" instead of the longer applications.appname.modules.filename "pattern" be careful on which name you use: try to prefix your module with the app name, so there will no problem in conflicting imports (maybe with poorly packaged external libraries), e.g. save file as niphlod_validation.py under modules and use from niphlod_validation import hi On Tuesday, February 19, 2013 2:50:56 PM UTC+1, Alec Taylor wrote: > > Perfect, thanks. > > On Wed, Feb 20, 2013 at 12:48 AM, Johann Spies > <johann...@gmail.com<javascript:>> > wrote: > > > > > > On 19 February 2013 15:30, Alec Taylor <alec.t...@gmail.com<javascript:>> > wrote: > > > >> How do I import variables, functions and classes from my > >> <appname>\modules folder? > > > > > > from applications.appname.modules.modulefile import * > > > > Regards > > Johann > > -- > > Because experiencing your loyal love is better than life itself, > > my lips will praise you. (Psalm 63:3) > > > > -- > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "web2py-users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to web2py+un...@googlegroups.com <javascript:>. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.