Email 0.1α

A place for users and developers of the Xataface to discuss and receive support.

Email 0.1α

Postby strast » Fri Mar 13, 2009 11:30 am

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
strast
 
Posts: 29
Joined: Thu Feb 05, 2009 6:14 pm

Postby shannah » Fri Mar 13, 2009 2:01 pm

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby strast » Fri Mar 13, 2009 2:14 pm

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
strast
 
Posts: 29
Joined: Thu Feb 05, 2009 6:14 pm

Postby shannah » Fri Mar 13, 2009 2:21 pm

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby strast » Mon Mar 16, 2009 12:57 pm

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'
strast
 
Posts: 29
Joined: Thu Feb 05, 2009 6:14 pm

Postby shannah » Tue Mar 17, 2009 4:50 pm

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby strast » Thu Mar 19, 2009 6:02 am

Thanks Steve.

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

..Steve
strast
 
Posts: 29
Joined: Thu Feb 05, 2009 6:14 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 11 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved