sfDoctrineGuardPlugin Documentation - symfony1

I am trying to customize sfDoctrineGuardPlugin to fit into my model and tie things together. Problem is I don't see very thorough documentation beyond how to set it up. I could go through and read the code, but it would be nice if there was a reference manual of some sort. Is there such a thing that I just can't find?
My main goal is to use emails for logins, tie in a user id to the rest of my model, etc, but I'm not sure where to start.

Check this one http://www.symfony-project.org/plugins/sfDoctrineApplyPlugin. Yo can see there how they associate the id of the sf_guard_user with the sf_guard_user_profile table.
Otherwise you can check in /plugins/sfDoctrineGuardPlugin/lib/validator/sfGuardValidatorUser.class.php how validates the user and pass

Have you read the readme section here ?
http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin
It was the only doc I have found when I have installed doctrineGuard in my app

There's an extended documentation on the origin sfGuardPlugin which is also suitable for sfDoctrineGuardPlugin :
http://trac.symfony-project.org/wiki/sfGuardPluginExtraDocumentation

I added installation instructions for the forgot password feature on this site.

Related

How to change security group for existing amazon EC2 ubuntu

I have tried to change the instance security group by right click and then "change security groups", but it's grayed out.
Update:-
I have a rails application and I want to give the response from the particular Ip(ex: 12.123.12.456) requests, if the request from that IP(ex: 12.123.12.456) then give the response otherwise drop the request.
so I am trying to change the security group in AWS.
what to do?
It seems like your instance is in EC2-Classic. You can not change security group for EC2-classic instance. You should first migrate your instance to EC2-VPC environment and then you can change security group as and when necessary.
P.S: Better give proper description for your question. With the question posted as above, one can only assume and answer unless you provide the accurate information.
First, you can go on your all instance, then click on your specific instance then scroll down and check the description for that instance and click on your old security instance and also you can change security group

Rails: A user can create other users with different set of permissions

This might be a duplicate of a question already asked but i haven't found the one that suits my condition yet.
I am developing a system where there's a user (not an admin) who is registering himself using devise. What i want is to allow this user to create different users and provide them different set of permissions (so can't be predefined permissions and hence, cant use cancan as far as i am aware). To clarify more, this is the table structure i have come up with yet. Please guide me if i am going on the wrong path here.
USER:
id,
name,
other-details
PERMISSION
id,
name, (name of the section such as gallery, report or users)
create,
edit,
view,
user_id (the user whose permissions are defined here)
Here, create, edit and view are the permissions that the user would have. If the edit is true, he'll be able to edit that particular section. I'm sorry if this is not clear. I found Johan's answer (last one) Database schema for ACL match my scenario however i am not sure if its the right way. Also, i am not sure how to implement the SET mentioned there.
Thanx in advance. Also please feel free to ask for more details if required. I'm clueless about how right this method will be.
P.S: Newbie in Rails Here.
You should use gem devise , cancancan & rolify for it.
Check here for references https://github.com/RolifyCommunity/rolify/wiki/Devise---CanCanCan---rolify-Tutorial.
You should add your all roles with permissions in the ability.rb file

Whitelisting for Article schema

what's the procedure to get whitelisted for using https://developers.google.com/gmail/markup/reference/article schema?
your published form is only working for actions and as I would like to mostly use e-mail notifications for new news (for categories user specificly requests after double opting in) i'm wondering how this is done.
also with regard to your article schema, do you plan to make it compatible with article schema (https://developers.google.com/structured-data/rich-snippets/articles) .. both links claim to be schema.org compatible.
Thank you,
Primoz
You will have to submit a form and provide a email with the schema you're trying to implement. I've noticed the form doesn't include "article" in the selection. I would just state in the description that you're interested in article schemas.
Be sure to check out their guidelines:
https://developers.google.com/gmail/markup/registering-with-google?hl=en#email_sender_quality_guidelines
For your last question, on the bottom of the Article documentation it states "Note: Some of the schemas used by Google are still going through the standardization process of schema.org, and therefore, may change in the future."
You can also refer to: https://developers.google.com/gmail/markup/reference/schema-org-proposals

What is IdentityPart in Orchard CMS good for?

I havent found any mention in Orchard documentation about IdentityPart despite it being used in some main modules like Comments. I took a look at some relevant sources, but it didn't help me to fully understand it's purpose.
So what's it for and when should I use it?
Thanks in advance!
This is part of the import/export feature. In order to be able to move contents around servers reliably and in a repeatable way that takes into account updated and new items, we need a way to identify content items that's not just a simple id. Some contents have a path but not all types do (widgets, users, etc.). The export/import hooks for any part can participate in building the id of the item and in recognizing it on import. The routable part for example implements the use of path. But for those types that do not have routable, you can add the IdentityPart to fulfill that role. The id that gets exported in the end is a composite of all contributed ids.
Makes sense?

Rails 3 best way to create a comment system for posts

my first entry here.
I'm trying to add a comment system to our Posts model. However, I am not sure of the best way to go about it for a number of reasons. I'd like the comment system to be similar to that on Forrst.com but i'd rather have visitors who comment not need an account as the site is our company site not a large community.
Outline of features are:
Visitor can comment on post, entering name, email and comment.
Our team members can comment, i'd like these to be styled differently so would like the system to know it was from one of our team, they will be logged into the system when leaving a comment.
Visitors and team members can reply to a comment. The system needs to know which comment it was in reply to.
Lastly i'd like the system to know if the comment was written by the post author.
I have looked and been trying out acts_as_commentable_with_threading which seems perfect except everyone needs a user account to leave a comment, something I am trying to avoid unless anyone has other thoughts on that?
I have also implemented this myself by creating a comments model and using awesome_nested_set for the threading. Within the comments model I have a user_id which is only populated if the user is logged in (meaning they must be a team member), this seems a little messy though.
Does anyone have any thoughts on this?
Oh, and I would love each person to be notified of a reply to their comment (if pos).
Thanks in advance.
There are lot of tools available to post comments and working with ruby on rails.
http://ruby-toolbox.com/categories/rails_comments.html
also you can customize according your own requirement instead of writing a messy code.
If you do not want to integrate a third-party service like Disqus, you have Juvia The Comments and Commontator. Also you can count with opinio as alternative. but only with Rails 3 and at the moment and as notice the development seems stalled.

Resources