|
[
Permalink
| « Hide
]
Anthony Borrow added a comment - 08/Mar/09 10:45 AM
Mike - One thing that I think may be dangerous for folks is having the default role be administrator. A careless admin could inadvertently give all the parents administrative rights on the server if I am reading this correctly. I would certainly want to warn about this in the installation/usage instructions (which you may have done - I have not looked at those yet). Peace - Anthony
Mike - I saw a typo (access) and a small inconsistency (lack of colon after password). I would replace the default email with:
Welcome to [sitename]. A parent account has been created for you for the student [studentname]. To access this account, go to [siteurl] and login with the username: [username] and the password: [password]. Also, I could envision some sites not wanting an email to be sent so I would probably give an option to not send an email on account creation. Peace - Anthony
I would suggest creating a README.txt file and/or INSTALL.txt file and then follow the standard procedures outlined in http://docs.moodle.org/en/Development:Guidelines_for_contributed_code
moving to component Block: Create parent
code added, component created, CVS write access granted
Thanks for the feedback, m&p entry, docs, readme etc added to todo list.
I can see what you mean about the admin being default, I'd not noticed that- it just defaults to whatever the first entry on the list is which will nearly always be admin. I can't default it to 'parent' as this will need to be created first, I suppose a 'please select a role' entry that won't pass validation would be the best solution. Thanks, Parent or select would both work well. Your list of blocks that you are supporting continues to grow. Thanks again for all your work and many contributions to the Moodle community. Peace - Anthony
I've played with it a bit, now it just displays an error in the block if any of the options are undefined (this includes if parentrole is left on 'select a role').
Is there a way to make settings.php validate? addRule doesn't seem to work- I want to make 'select a role' fail validation. Thanks, Mike - Actually I removed the select a role option line and then went in to the database and deleted all of the block/createparent entries. When I re-installed the block - ensuring a fresh install I think we get the desired behavior with no risk of them choosing something that does not exist. Would that take care of things? Peace - Anthony
I'm happy to leave it like that- I would expect moodle admins to be aware enough to not to set it to admin accidentally.
Mike - Yep, looks fine to me. I also took care of adding some missing language strings for capabilities. Peace - Anthony
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||