How to create custom view for register form, login form, profile form and even reset password form in Web2Py?
If you want to manage and customize the authentication forms in web2py.
Let's say you wanna add more fields and make the profile more complete.
You need to overload the default user table and to add more fields to it.
After that you have to create, controllers and views for login, register, profile , password reset.
Monday, 12 September 2011
Sunday, 26 June 2011
Sunday, 20 March 2011
The simplest way to use GitHub on Windows 7 with GUI
I tried some git clients, I read loads tutorials. Now I am going to write about simpliest and easiest way to commit, pull, push and clone code files using Git respository and particularly GitHub.com.
I tryed these 4:
Cygwin + git + ssh. It worked. But Its console based.
msysgit + putty stuff. Partly worked. Issue with ssh certificates
TortoiseGit - Tortoise didnt work for me too. Only clone function.
GitExtensions - It's using msysgit + Kdiff external programs. Its GUI based interface. But I couldn't make it work.
After these trials. I removed all software. Deleted all folders and C:\users\username\.ssh folder where rsa keys are stored.
I tryed these 4:
Cygwin + git + ssh. It worked. But Its console based.
msysgit + putty stuff. Partly worked. Issue with ssh certificates
TortoiseGit - Tortoise didnt work for me too. Only clone function.
GitExtensions - It's using msysgit + Kdiff external programs. Its GUI based interface. But I couldn't make it work.
After these trials. I removed all software. Deleted all folders and C:\users\username\.ssh folder where rsa keys are stored.
Labels:
Programming
Monday, 10 January 2011
C# useful Shell functions
Get current user's StartUp folder path:
Environment.GetFolderPath(Environment.SpecialFolder.Startup) - returns string with startup path
Get list of StartUp processes started from the Register and StartUp folder:
ManagementClass mangnmt = new ManagementClass("Win32_StartupCommand");
ManagementObjectCollection mcol = mangnmt.GetInstances();
foreach (ManagementObject strt in mcol)
{
string[] lv = new String[4];
lv[0] = strt["Caption"].ToString();
lv[1] = strt["Location"].ToString();
lv[2] = strt["Command"].ToString();
lv[3] = strt["Description"].ToString();
listView1.Items.Add(new ListViewItem(lv, 0));
}
Environment.GetFolderPath(Environment.SpecialFolder.Startup) - returns string with startup path
Get list of StartUp processes started from the Register and StartUp folder:
ManagementClass mangnmt = new ManagementClass("Win32_StartupCommand");
ManagementObjectCollection mcol = mangnmt.GetInstances();
foreach (ManagementObject strt in mcol)
{
string[] lv = new String[4];
lv[0] = strt["Caption"].ToString();
lv[1] = strt["Location"].ToString();
lv[2] = strt["Command"].ToString();
lv[3] = strt["Description"].ToString();
listView1.Items.Add(new ListViewItem(lv, 0));
}
Labels:
Programming
Subscribe to:
Posts (Atom)