UserClassID for user/register & WF : conflict in some cases

Author Message

Xavier Gouley

Friday 29 June 2007 11:06:21 am

Hi,

Changing UserClassID value seems to be the easiest way to change User class to use while registering new user from a site. Unfortunately, this param is also used in the Workflow processes, to assign a WF element to it's owner.

In result, if you want to use User class for BackOffice users, and have another class (User2) to use in the FrontOffice registration, you can't use the UserClassID param, because Workflows won't work properly.

Furthermore, when you want to add a workflow process to the user registration (before publication, with a simple approbation), the new user will be lost in the workflow process...

What solution ?

- make a extension, with a copy of user/register module ? :(
( - I don't want to hear anything about a kernel hack )

I think this UserClassID param should be duplicated (one for Workflows, and the other for registration), but this supposes a hack :( , or a fix by eZsystems :)

Other solutions ?

Thanks !

Xavier G. (Smile)

Smile France - eZpublish developper

Norman Leutner

Friday 21 September 2007 1:17:23 am

Be the way it should be possible to use different user classes within the user/register module.

For example a class for normal users and a class for dealers.
So dealers may register by themselve with /user/register/classid

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

André R.

Friday 21 September 2007 1:23:55 am

Hi Xavier, and welcome to the community!

If you haven't done so yet, could you please make a bug issue on this?
Because it certainly smalls like a bug :)

BTW: You are probably the first, first poster I have met that didn't want to solve everything by hacking the kernel :)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:22:20
Script start
Timing: Jan 31 2025 03:22:20
Module start 'layout'
Timing: Jan 31 2025 03:22:20
Module start 'content'
Timing: Jan 31 2025 03:22:20
Module end 'content'
Timing: Jan 31 2025 03:22:20
Script end

Main resources:

Total runtime0.0590 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.3750151.2422
Module start 'layout' 0.00730.0170 739.6172220.7500
Module start 'content' 0.02420.0331 960.36721,001.8672
Module end 'content' 0.05730.0016 1,962.234433.9922
Script end 0.0590  1,996.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00498.3455140.0004
Check MTime0.00122.0066140.0001
Mysql Total
Database connection0.00091.606210.0009
Mysqli_queries0.008013.545130.0027
Looping result0.00000.059410.0000
Template Total0.00122.010.0012
Template load0.00091.528310.0009
Template processing0.00030.486410.0003
Override
Cache load0.00061.076210.0006
General
dbfile0.010918.445880.0014
String conversion0.00000.027140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs