User account's login for object name pattern

Author Message

Piotrek Karaś

Thursday 03 January 2008 4:40:48 am

<b>Is it possible to use user account's login to define object name pattern?</b> I mean, is there a system way, any special notation for the object name pattern?

Generally the goal is to force object names to be based on user logins. We've just experimented a bit with user class and when you <b>remove first name</b> and <b>last name</b> (or at least place user account as the first attribute in the class) as well as <b>get rid of object name pattern declaration</b>, then the systems magically follows the "first attribute" rule and out of all fields (login, passwords, e-mail) <b>takes login</b> to build object name. The question remains: how intensional is that behavior? Should we rely on it, or is it likely to alter in the future versions (of eZ4)?

The other issue is security. Do you think revealing user login to the public increases risks in this context?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Maxime Thomas

Monday 07 January 2008 8:54:38 am

I guess it's the same if you get only one attribute with a file or a picture, you wannot have a name.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Piotrek Karaś

Monday 07 January 2008 9:21:42 am

Seems like you're right, same situation. But in case of user account datatype it is login is chosen for object name generation. I would like to know if that will be a consistent behavior in the next eZ versions.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 18 2025 16:05:58
Script start
Timing: Jan 18 2025 16:05:58
Module start 'layout'
Timing: Jan 18 2025 16:05:58
Module start 'content'
Timing: Jan 18 2025 16:05:59
Module end 'content'
Timing: Jan 18 2025 16:05:59
Script end

Main resources:

Total runtime0.7431 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.0469152.6406
Module start 'layout' 0.00780.0038 740.687539.4766
Module start 'content' 0.01160.7302 780.1641547.5313
Module end 'content' 0.74170.0013 1,327.695312.1250
Script end 0.7430  1,339.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5722160.0003
Check MTime0.00200.2628160.0001
Mysql Total
Database connection0.00270.367110.0027
Mysqli_queries0.689792.8156570.0121
Looping result0.00050.0613550.0000
Template Total0.707595.220.3537
Template load0.00390.521220.0019
Template processing0.703694.688220.3518
Template load and register function0.00010.013610.0001
states
state_id_array0.00130.179510.0013
state_identifier_array0.00070.098620.0004
Override
Cache load0.00350.4672130.0003
Sytem overhead
Fetch class attribute can translate value0.00040.054720.0002
Fetch class attribute name0.00130.176650.0003
XML
Image XML parsing0.00090.120620.0004
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00080.1139230.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs