Re: Djangonauts at the hack day?

2006-09-27 Thread Sandro
Woah! In response to Adrian's "make us proud" comment I whipped up a django shirt to wear during the hackday. Check it here http://flickr.com/photos/untorn/254672411/ I'm going to try to get photographed as much as possible with this thing on! --~--~-~--~~~---~--~---

Re: One-To-Many doesn't return a list.

2006-09-27 Thread Tyson Tate
Thanks, again, to everyone who has been looking in to this issue. Russ' checkin (r3830) fixes the admin interface crash (w00t) and I am now able to add my Event objects with no problems. However, I am still getting the "iteration over non-sequence" error with the same model: Full Model: ht

Re: Setting up an new app with a models directory

2006-09-27 Thread Malcolm Tredinnick
On Thu, 2006-09-28 at 02:38 +, Gary Wilson wrote: > Malcolm Tredinnick wrote: > > You also need to have the model in the __all__ export of > > models/__init__.py, otherwise it doesn't get imported into the > > appropriate namespace as part of "import myapp.models". > > Well, adding the model

Re: Importing models from each other.

2006-09-27 Thread Malcolm Tredinnick
On Thu, 2006-09-28 at 02:42 +, Gary Wilson wrote: > Gacha wrote: > > I have two model files, the first is: > > --- > > from proj.base.models import Choice > > > > class User(meta.Model): > > ... > > param = model.Forei

Re: How tune fastcgi for django?

2006-09-27 Thread Shaun Li
May be max to 5 was sufficient for most of cases.-- Shaun Li --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe fro

Re: Importing models from each other.

2006-09-27 Thread Gary Wilson
Gacha wrote: > I have two model files, the first is: > --- > from proj.base.models import Choice > > class User(meta.Model): > ... > param = model.ForeignKey(Choice) > >

Re: Setting up an new app with a models directory

2006-09-27 Thread Gary Wilson
Malcolm Tredinnick wrote: > You also need to have the model in the __all__ export of > models/__init__.py, otherwise it doesn't get imported into the > appropriate namespace as part of "import myapp.models". Well, adding the model modules to __all__ doesn't work either (isn't this for when you do

Re: How tune fastcgi for django?

2006-09-27 Thread mamcxyz
Any idea? Is not clear the question? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send emai

Re: "slice" xhtml content and keep it valid xhtml?

2006-09-27 Thread SmileyChris
... and feel free to email me any specific questions about my patch. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubs

Re: Can Django's Send Email handle SSL... or is it something else?

2006-09-27 Thread Malcolm Tredinnick
Hi Tom, You've described about 14 things in this email, so it's not really clear what problem you are trying to debug. On Wed, 2006-09-27 at 17:50 +0100, Tom Smith wrote: > My service provider requires it for SMTP... I have set the EMAIL_PORT > but the email doesn't seem to go... Do you mean

Re: web stats, mod_python profiler

2006-09-27 Thread Malcolm Tredinnick
On Wed, 2006-09-27 at 16:20 +, rp wrote: > Does anyone have an example of using > the mod_python profiling support: > > "django.core.handlers.profiler-hotshot" > > It's mentioned on this page: > (http://code.djangoproject.com/wiki/ProfilingDjango) > Never used it (yet), but from reading th

Re: Setting up an new app with a models directory

2006-09-27 Thread Malcolm Tredinnick
On Wed, 2006-09-27 at 14:06 +, Gary Wilson wrote: > Malcolm Tredinnick wrote: > > When you have models in a deeper structure like this, you need to > > explicitly tell the model what the app name is. You do this as follows: > > > > class SimpleTest(models.Model): > > ... > >

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Tom Smith
On 28 Sep 2006, at 00:56, Steven Armstrong wrote: > > On 09/27/06 23:49, Tom Smith wrote: >> Thanks, it all seems to work except for when I store a list of >> objects in the database and try to get it out I get a string (that >> looks like a list of objects) >> > products = Product.objects.f

Re: Windows XP and Django

2006-09-27 Thread Kenneth Gonsalves
On 28-Sep-06, at 2:52 AM, [EMAIL PROTECTED] wrote: > I am a total Noob when It comes to Django and was wondering if > there is > any way that I can get it running on my XP machine with relative ease > or if its better for me to install UBUNTU or some other Linux flav? easier on yourself if yo

Re: problem whit admin login

2006-09-27 Thread Kenneth Gonsalves
On 27-Sep-06, at 7:24 PM, Marco Amato wrote: > $ django-admin.py createsuperuser name [EMAIL PROTECTED] you cant have '@' in the user name -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this mes

Re: date format other than YYYY-MM-DD

2006-09-27 Thread Don Arbow
This was answered here last month:http://groups.google.com/group/django-users/browse_frm/thread/f0e7d503401a7186/1d378aa769159983?#1d378aa769159983As Jay mentioned, you need to use the object value, not the formfield. The date filter requires a datetime instance, which the formfield is not  and so

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Steven Armstrong
On 09/27/06 23:49, Tom Smith wrote: > Thanks, it all seems to work except for when I store a list of > objects in the database and try to get it out I get a string (that > looks like a list of objects) > > >>> products = Product.objects.filter(title__contains='Dog')[:10] > >>> sub = Subscr

Re: Windows XP and Django

2006-09-27 Thread Paul Barry
I actually just got python and django running on my Windows XP box no problem. I kept notes of my setup, here they are, hopefully you find them helpful. 1. Install Python 2.4 http://www.python.org/ftp/python/2.4.3/python-2.4.3.msi I put it in the default location of c:\Python24. If you don't

Re: date format other than YYYY-MM-DD

2006-09-27 Thread viestards
> Using the 'date' filter, you can format the output however you want, > within templates. > > For example, to format a date as "September 17, 2006", you would do > the following in a template: > > {{ object.pub_date|date:"F d, Y" }} thanks for reply, but will it work on forms? Right now I get:

Re: date format other than YYYY-MM-DD

2006-09-27 Thread Jay Parlar
On 9/27/06, viestards <[EMAIL PROTECTED]> wrote: > > Hi everyone! > > As far as I know date format is hardcoded into Django as -MM-DD. > Is there any way to change it globally? > If not what is best way to change date format in forms to other? For > now, I change date format in view from dd.mm

date format other than YYYY-MM-DD

2006-09-27 Thread viestards
Hi everyone! As far as I know date format is hardcoded into Django as -MM-DD. Is there any way to change it globally? If not what is best way to change date format in forms to other? For now, I change date format in view from dd.mm. but I doubt it's the best way to do such things. Viesta

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Tom Smith
Thanks, it all seems to work except for when I store a list of objects in the database and try to get it out I get a string (that looks like a list of objects) >>> products = Product.objects.filter(title__contains='Dog')[:10] >>> sub = Subscription(email="[EMAIL PROTECTED]", name="Tom Smit

Re: Easy thumbs in your models

2006-09-27 Thread zenx
you're right, that's better. thank you!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

Windows XP and Django

2006-09-27 Thread [EMAIL PROTECTED]
I am a total Noob when It comes to Django and was wondering if there is any way that I can get it running on my XP machine with relative ease or if its better for me to install UBUNTU or some other Linux flav? I am looking for a CMS to learn and I have decided that Django is the one because it of

Windows XP and Django

2006-09-27 Thread [EMAIL PROTECTED]
I am a total Noob when It comes to Django and was wondering if there is any way that I can get it running on my XP machine with relative ease or if its better for me to install UBUNTU or some other Linux flav? I am looking for a CMS to learn and I have decided that Django is the one because it of

Re: get the content-type in a template?

2006-09-27 Thread Derek Hoy
On 9/26/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > hi, > > i many times use the object's content-type's "model" attribute, > when generating URLs for certain actions. > > and i many times need to get the given object's content-type > in the template. > > unfortunately i haven't found any way

Re: Easy thumbs in your models

2006-09-27 Thread Andrew Gwozdziewycz
Of course you have to "import os.path"On Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thum

Re: Easy thumbs in your models

2006-09-27 Thread Andrew Gwozdziewycz
See belowOn Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thumbs when deleting the objectIn

Re: Importing models from each other.

2006-09-27 Thread Gacha
Nope, it didn't work :( but thx for a try --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

Re: Easy thumbs in your models

2006-09-27 Thread zenx
In delete function use: super(MyClass, self).delete() instead of super(Artista, self).delete(). I think everything else is ok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Can Django's Send Email handle SSL... or is it something else?

2006-09-27 Thread Tom Smith
My service provider requires it for SMTP... I have set the EMAIL_PORT but the email doesn't seem to go... My message content is HTML (is this ok?) My last error is... Connection unexpectedly closed, but I've also had...SMTP AUTH extension not supported by server (for gmail)... (60, 'Operat

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Steven Armstrong
On 09/27/06 16:45, Tom Smith wrote: > Hello > > currently I am storing a list of python instances in the > request.session but would like to make a persistent copy of this list > and store it permanently... > > I don't want to just make the timeout of the session a long time in > the futu

Re: Importing models from each other.

2006-09-27 Thread Steven Armstrong
On 09/27/06 16:03, Gacha wrote: > I have two model files, the first is: > --- > from proj.base.models import Choice > > class User(meta.Model): > ... > param = model.ForeignKey(Choice) > > ---

web stats, mod_python profiler

2006-09-27 Thread rp
Does anyone have an example of using the mod_python profiling support: "django.core.handlers.profiler-hotshot" It's mentioned on this page: (http://code.djangoproject.com/wiki/ProfilingDjango) Thanks! Raman --~--~-~--~~~---~--~~ You received this message becau

Re: Django Forums

2006-09-27 Thread [EMAIL PROTECTED]
I like your forum design. I only have reservations because I've seen the same thing happen in a number of projects -- splitting and distributing information across too many sites. Django has a central Web site, with comment mechanism, and Django-related RSS aggregation, and a number of (pretty ac

Re: Confused: staff / active users

2006-09-27 Thread Waylan Limberg
On 9/27/06, Enrico <[EMAIL PROTECTED]> wrote: > > Hi all, > > I got a little confused about the auth docs. > Both is_staff and is_active designates that a user can log into the > admin, so... what's the real difference? My (limited) understanding is that a User who `is_active` is a user in the sy

Re: help,build docs problem

2006-09-27 Thread Kjell Magne Fauske
I noticed the same problem some time ago. I modified the build_doucmentation.py script. I added the following method to class DjangoHTMLTranslator(html4css1.HTMLTranslator to get it working properly: def visit_section(self, node): self.section_level += 1 if node['ids']:

Re: Model-level DB cache

2006-09-27 Thread Hawkeye
I had the same reaction at first... "this has to be a transaction issue", but I decided to give it a try. I'm working from trunk, and here's what I did to recreate the problem: == {{ In manage.py shell }} >>> a = Foo.objects.all() >>> a [< Foo: Foo 5>, < Foo: Foo 6>, < Foo: Foo 7>, < Foo

Re: problem whit admin login

2006-09-27 Thread [EMAIL PROTECTED]
I think it asks you if you want to create a superuser if you type - manage.py syncdb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegro

Re: Model-level DB cache

2006-09-27 Thread Greg Plesur
Thanks to everyone for the replies here. Just to be clear: I don't think that this is a transactions issue. The Django-side part of this problem doesn't have transactions enabled, and the MySQL-side is just a direct transactionless operation on the DB that can be seen immediately by other cl

Re: Importing models from each other.

2006-09-27 Thread Gacha
Yes, I already know that :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMA

Pickling Sessions (or lists of instances)

2006-09-27 Thread Tom Smith
Hello currently I am storing a list of python instances in the request.session but would like to make a persistent copy of this list and store it permanently... I don't want to just make the timeout of the session a long time in the future, because each user could have multiple lists of o

Easy thumbs in your models

2006-09-27 Thread zenx
I needed to make this and I hope it helps some people there. Features: - Generate thumbs from ImageFields when creating the models (file.jpg -> thumbnail saved as: file.thumbnail.jpg) - Showing thumbs in admin - Deleting thumbs when deleting the object In your models.py: =

Example adding FilterSpec

2006-09-27 Thread [EMAIL PROTECTED]
Evening all, I was looking at filterspecs last night because I was trying to see if RelatedFilterSpec could display the field's verbose name and not the relation's meta verbose_name (ala f.rel.to._meta.verbose_name). So poking around in the source for a while I came up with the following solution

Re: Importing models from each other.

2006-09-27 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > You need to pass the model name as a string: > user = model.ForeignKey("User") Actually i'm seeing you knew that already, yes to use the technique above you need to have all models in the same file. Lorenzo --~--~-~--~~~---~--~~ You r

Re: Importing models from each other.

2006-09-27 Thread [EMAIL PROTECTED]
Gacha wrote: > user = model.ForeignKey(User) You need to pass the model name as a string: user = model.ForeignKey("User") Lorenzo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Djangonauts at the hack day?

2006-09-27 Thread Adrian Holovaty
On 9/26/06, Sandro <[EMAIL PROTECTED]> wrote: > Any fellow djangonauts going to be at the hackday? I'm going, hope to > see some of you there! I was wanting to go, but I've got a previous engagement for that weekend. Have a good time, and make us proud! Adrian -- Adrian Holovaty holovaty.com

Re: Setting up an new app with a models directory

2006-09-27 Thread Gary Wilson
Malcolm Tredinnick wrote: > When you have models in a deeper structure like this, you need to > explicitly tell the model what the app name is. You do this as follows: > > class SimpleTest(models.Model): > ... > class Meta: > app_label="appfolder" > > This

Importing models from each other.

2006-09-27 Thread Gacha
I have two model files, the first is: --- from proj.base.models import Choice class User(meta.Model): ... param = model.ForeignKey(Choice) --- and the

Re: problem whit admin login

2006-09-27 Thread Marco Amato
nope - it is what you gave when you did createsuperuser - you *did*create the superuser? No, I doest find the createsuperuser comand ..$ django-admin.py createsuperuser name [EMAIL PROTECTED] passwordError: Your action, 'createsuperuser', was invalid. Run "/usr/bin/django-admin.py --help" for help.

Confused: staff / active users

2006-09-27 Thread Enrico
Hi all, I got a little confused about the auth docs. Both is_staff and is_active designates that a user can log into the admin, so... what's the real difference? I've made some tests combining active, staff and superuser: - Only active: no login - Only staff: login but no default permissions -

Re: threadlocals, created_by and save problem

2006-09-27 Thread kmganesh
the problem is corrected using: editable=False in created_by and updated_by, i have also updated the wiki. cheers, Ganesh. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: problem whit admin login

2006-09-27 Thread Kenneth Gonsalves
On 27-Sep-06, at 6:36 PM, Marco Amato wrote: > The password and the user is tha same of the mysql databases, right ? nope - it is what you gave when you did createsuperuser - you *did* create the superuser? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~-

problem whit admin login

2006-09-27 Thread Marco Amato
HI !I am a newbie , my roblem is that I can login in the admin panel http://127.0.0.1:8000/admin/The password  and the user is tha same of the mysql databases, right ? The same  that in setting.py are DATABASE_USER and DATABASE_PASSWORD !Thanks and sorry for the stupid question Bye --~--~

Re: SlugField is not unique?

2006-09-27 Thread DavidA
Gábor Farkas wrote: > hi, > > i've just checked and SlugField does not imply unique=True. > > i somehow always assumed that it does. > > so before i go and add the unique=True to all my SlugFields, > > is there any reason to have non-unique SlugFields? > > as far as i understand, SlugFields are mo

Re: "slice" xhtml content and keep it valid xhtml?

2006-09-27 Thread Gábor Farkas
Luke Plant wrote: > On Wednesday 27 September 2006 08:09, Gábor Farkas wrote: > >> i have the following problem: >> >> >> in a page-template, i have to display the first 100 characters of >> some html content. >> >> the problem is, that if i simply slice the html-content as if it were >> plaintex

threadlocals, created_by and save problem

2006-09-27 Thread Ganesh KM
Hi,    i am using http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser to automatically add updated_by and created_by info, class Entry(models.Model):    name = models.CharField('name', maxlength=100)     content = models.TextField('content')     created_by = models.ForeignKey(User, relat

Re: Recurring data model question

2006-09-27 Thread Devraj Mukherjee
Thanks James. On 9/27/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 9/27/06, Devraj Mukherjee <[EMAIL PROTECTED]> wrote: > > Well for the first category it doesn't. Has anyone come across this > > before? If so how did you solve it? Thanks for your time. > > http://www.djangoproject.com/doc

Re: "slice" xhtml content and keep it valid xhtml?

2006-09-27 Thread Malcolm Tredinnick
On Wed, 2006-09-27 at 09:09 +0200, Gábor Farkas wrote: > hi, > > i have the following problem: > > > in a page-template, i have to display the first 100 characters of some > html content. > > the problem is, that if i simply slice the html-content as if it were > plaintext, then sometimes so

Re: SlugField is not unique?

2006-09-27 Thread Malcolm Tredinnick
On Wed, 2006-09-27 at 09:18 +0200, Gábor Farkas wrote: > hi, > > i've just checked and SlugField does not imply unique=True. > > i somehow always assumed that it does. > > so before i go and add the unique=True to all my SlugFields, > > is there any reason to have non-unique SlugFields? > > a

Re: How to create unions (or how to extend a QuerySet)?

2006-09-27 Thread Holger Schurig
I found a way. Using the extra() directive, I create another field, e.g. is_new. I then can use this as a sort criteria. There's no need to output this field: list = Device.objects .extra(select={'is_new': 'name LIKE "New Device%%"'}) .order_by('-is_new', 'parent', 'name') -

Re: Model-level DB cache

2006-09-27 Thread Michael Radziej
Greg Plesur schrieb: > Hi all, > > I'm a new subscriber to this list, and am having an issue that I'm > hoping you can help me with (I also posted this as a trouble-ticket, > because I'm not seeing any references to this issue anywhere and it > seems buggy): > > It looks like my models are ca

Re: Does raising 404 makes use django's auth system?

2006-09-27 Thread Michael Radziej
Filipe schrieb: > works perfectly. Haven't detected any side effect yet. > thanks. Good to know! Perhaps you should file a ticket that context_processors.auth should behave better when there's no session. If you do, please include a link to this thread. Michael --~--~-~--~~-

Re: "slice" xhtml content and keep it valid xhtml?

2006-09-27 Thread Luke Plant
On Wednesday 27 September 2006 08:09, Gábor Farkas wrote: > i have the following problem: > > > in a page-template, i have to display the first 100 characters of > some html content. > > the problem is, that if i simply slice the html-content as if it were > plaintext, then sometimes some tags ge

Re: How to create unions (or how to extend a QuerySet)?

2006-09-27 Thread Michael Radziej
Holger Schurig schrieb: > I have a list that looks like this: > >list = Device.objects.all().order_by('parent', 'name') > > and I use this list in a view. Works fine. However, I want to > have the items with a special name at the top of the generated > list. I can easily create two lists,

Re: threadlocals with limit_choices_to in models

2006-09-27 Thread Luke Plant
On Thursday 21 September 2006 21:56, Kr0n wrote: > ibson wrote: > > Apologiz for saying it worked!!! It doesn't work after some times > > even after restarting apache every 15 minutes!!! > > So the question is always there. And it seems I am not the only to > > hav this problem > > Yep. I've also

Re: Recurring data model question

2006-09-27 Thread James Bennett
On 9/27/06, Devraj Mukherjee <[EMAIL PROTECTED]> wrote: > Well for the first category it doesn't. Has anyone come across this > before? If so how did you solve it? Thanks for your time. http://www.djangoproject.com/documentation/models/m2o_recursive/ -- "May the forces of evil become confused o

Recurring data model question

2006-09-27 Thread Devraj Mukherjee
I am trying to create a class I call "Category" that will contain Items, these Categories can be nested within each other (much like eBay or Amazon). I tried to use the following menthod to do that but the administration interface wont let me create entries because the ForeignKey must have a value

Re: Model-level DB cache

2006-09-27 Thread Ivan Sagalaev
Greg Plesur wrote: > But I would _not_ expect to see this: >>>> x=SomeModel.objects.all() # This gets a QuerySet into x >>>> value = x[0] # Some operation to actually fill x's cache >>>> print len(x) # Verify that there are some entries in the table >2 > >>>> y=SomeMode

Re: Making a date_created field work

2006-09-27 Thread Ivan Sagalaev
James Bennett wrote: > Default values are *only* filled in when the field is displayed on an > end-user form. If you don't want to display a field, but still > automatically fill it in, you have two options: > > 1) Have your view code fill it in before doing manipulator validation > 2) Set 'blank

Re: Does raising 404 makes use django's auth system?

2006-09-27 Thread Filipe
Michael Radziej wrote: > You need to copy the specific settings from > django.conf.global_settings to your settings module, it is: > > TEMPLATE_CONTEXT_PROCESSORS = ( > 'django.core.context_processors.auth', > 'django.core.context_processors.debug', > 'django.core.context_processors

Re: SlugField is not unique?

2006-09-27 Thread zenx
Hi Gábor, I think it's just for making it more flexibile, but in the most cases you will use unique=True in your SlugFields. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

help,build docs problem

2006-09-27 Thread kongkongxiangbo 孔祥波
I use build_documentation.py( http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/docs/parts/build_documentation.py ) to build django docs. It's no error, but when I view html,I found : 21 22 Installation 23 Authentication support is bundled as a Django applic

How to create unions (or how to extend a QuerySet)?

2006-09-27 Thread Holger Schurig
I have a list that looks like this: list = Device.objects.all().order_by('parent', 'name') and I use this list in a view. Works fine. However, I want to have the items with a special name at the top of the generated list. I can easily create two lists, which have the two items in it: li

SlugField is not unique?

2006-09-27 Thread Gábor Farkas
hi, i've just checked and SlugField does not imply unique=True. i somehow always assumed that it does. so before i go and add the unique=True to all my SlugFields, is there any reason to have non-unique SlugFields? as far as i understand, SlugFields are mostly used in URLs which imho imp

"slice" xhtml content and keep it valid xhtml?

2006-09-27 Thread Gábor Farkas
hi, i have the following problem: in a page-template, i have to display the first 100 characters of some html content. the problem is, that if i simply slice the html-content as if it were plaintext, then sometimes some tags get cut in the half etc... so, is there a way to do this slicing w