Page 1 of 1

Email 0.1α

PostPosted: Fri Mar 13, 2009 11:30 am
by strast
I've just installed the Email module per the INSTALL instructions.
I get no email icon in the list view as expected.
I see the Email.php file is of size 0 bytes. Is this correct?

Xataface 1.1.5 978
php 5.2.0
apache 2.2.3
mysql 5.0.32

PostPosted: Fri Mar 13, 2009 2:01 pm
by shannah
Did you override the [email] action in your application's actions.ini file to set the table(s) that the email action should appear for?

I fear that the instructions don't clearly convey the fact that by default the email action does not appear. You need to override the 'condition' directive of the action in order to make it available to specific tables.

PostPosted: Fri Mar 13, 2009 2:14 pm
by strast
Yes I did. I have the following setting in my actions.ini

Code: Select all
[email > email]
condition="$query['-table'] == 'contacts' or $query['-table'] == 'maillist'"
email_column = "email"
email_table = "sent_email"


Also, is that Email.php file size correct?

Thanks

PostPosted: Fri Mar 13, 2009 2:21 pm
by shannah
Well then, I guess it would have to be one of the 2 other steps of installation where the difficulty lies.

1. That the Email directory resides at path/to/xataface/modules/Email and it readable by the web server.
2. That your application's conf.ini file contains the appropriate section
Code: Select all
[_modules]
modules_Email="modules/Email/Email.php"


If those are both done, it is hard to say what could be happening.

You might want to try accessing the email action directly to see if it is even being picked up.

i.e. enter ..?-action=email in your application url.

PostPosted: Mon Mar 16, 2009 12:57 pm
by strast
When I go direct to the email app, I get a permissions error. I am logged in as ADMIN

Errors
Permission to perform action 'email' denied. Requires permission 'email' but only granted 'view in rss,view,list,calendar,view xml,show all,find,navigate,ajax_load,find_list,find_multi_table,rss,export_csv,export_xml,export_json,view related records,related records feed,edit,add new related record,add existing related record,add new record,remove related record,reorder_related_records,import,translate,new,ajax_save,ajax_form,history,edit_history,copy,update_set,update_selected,select_rows,delete,delete found,delete selected,xml_view'

PostPosted: Tue Mar 17, 2009 4:50 pm
by shannah
When you are logged in as ADMIN do you assign them ALL permissions (e.g. Dataface_PermissionsTool::ALL()?) or does it use a specific role like the 'ADMIN' role.

If you are using a role, you'll need to add the 'email' permission to that role.

E.g. if you are using the ADMIN role you would add the following to your application's permissions.ini file:
Code: Select all
[ADMIN extends ADMIN]
    email=1


Alternatively you could remove the 'email' permission requirement from the email action by adding
Code: Select all
permission=view

to the email action section of your actions.ini file.

PostPosted: Thu Mar 19, 2009 6:02 am
by strast
Thanks Steve.

I had neglected to add the email permission to the ADMIN role. That took care of it.

..Steve